Search found 37 matches

by aivarannamaa
Tue Jun 02, 2020 9:36 pm
Forum: Development of MicroPython
Topic: Trying to write MicroPython debugger via sys.settrace
Replies: 5
Views: 439

Re: Trying to write MicroPython debugger via sys.settrace

I'm not good with C, so instead of looking at the code I simply ask -- would it be possible to create a native module which would expose this array of locals to MicroPython code (eg. the code running inside sys.settrace handler)? It would be really nice if it was possible to build a firmware or Unix...
by aivarannamaa
Sun May 24, 2020 4:55 am
Forum: Other Boards
Topic: NUCLEO-F767ZI Mac OS connection issues
Replies: 4
Views: 757

Re: NUCLEO-F767ZI Mac OS connection issues (rshell)

If you would be so kind as to point me in the right direction, I would make the edits to the rshell source code, but I am not nearly comfortable enough with the uPython environment to do this without any guidance. I would try adding dev.flush() after dev.write(...) in main.send_file_to_remote
by aivarannamaa
Sun May 17, 2020 6:45 pm
Forum: General Discussion and Questions
Topic: does mpy take precedence over py?
Replies: 1
Views: 113

Re: does mpy take precedence over py?

It seems to be vice versa: https://docs.micropython.org/en/latest/reference/mpyfiles.html When searching a particular directory foo.py is looked for first and if that is not found then foo.mpy is looked for, then the search continues in the next directory if neither is found. As such, foo.py will ta...
by aivarannamaa
Sun May 17, 2020 12:04 pm
Forum: Development of MicroPython
Topic: Disabling REPL echo in Unix port
Replies: 0
Views: 514

Disabling REPL echo in Unix port

When I do `stty -echo` either in the shell before starting `python3` or as `os.system("stty -echo")`, the REPL stops local echoing. Neither of this works with `micropython`. Is this a bug or feature? I know that bare-metal ports include Raw-REPL, which doesn't echo, but this is missing from the Unix...
by aivarannamaa
Sat May 16, 2020 1:17 pm
Forum: Programs, Libraries and Tools
Topic: I can’t interact with micropython by Popen
Replies: 10
Views: 525

Re: I can’t interact with micropython by Popen

@rockindy, if you are on Unix, then you can make it work via pty. Here is my own experiment of reading python commands from sys.stdin and forwarding them to micropython in a subprocess: import subprocess import os import pty master, slave = pty.openpty() proc = subprocess.Popen(["micropython"], stdo...
by aivarannamaa
Thu Apr 02, 2020 5:19 pm
Forum: ESP32 boards
Topic: Script only works when input to the REPL
Replies: 7
Views: 347

Re: Script only works when input to the REPL

Have you tried uploading it as main.py?
by aivarannamaa
Thu Mar 26, 2020 6:21 am
Forum: General Discussion and Questions
Topic: My IDE configuration using Notepad++, ampy and Tera Term
Replies: 20
Views: 1732

Re: My IDE configuration using Notepad++, ampy and Tera Term

If you are interested I can try to help you to find and debug this issues... Sure! Please copy your issue and workaround to https://github.com/thonny/thonny/issues I have started refactoring the MicroPython part of Thonny. Hopefully next version will be more reliable. Code completion can be invoked...
by aivarannamaa
Mon Mar 02, 2020 5:53 pm
Forum: General Discussion and Questions
Topic: My IDE configuration using Notepad++, ampy and Tera Term
Replies: 20
Views: 1732

Re: My IDE configuration using Notepad++, ampy and Tera Term

stanely wrote:
Sun Mar 01, 2020 5:06 pm
Does this happen mostly when you're receiving or sending data?
I don't know, it is not clear from the reports.
by aivarannamaa
Sun Mar 01, 2020 2:53 pm
Forum: General Discussion and Questions
Topic: My IDE configuration using Notepad++, ampy and Tera Term
Replies: 20
Views: 1732

Re: My IDE configuration using Notepad++, ampy and Tera Term

This is probably off topic from this thread, but are you using flow control when communicating to MicroPython targets? I'm using Ampy and esptool at crazy fast baud rates without any issues, ever. I can't imagine all of that would work reliably without use of CTS/RTS flow control. I assumed I can't...
by aivarannamaa
Sun Mar 01, 2020 11:15 am
Forum: General Discussion and Questions
Topic: My IDE configuration using Notepad++, ampy and Tera Term
Replies: 20
Views: 1732

Re: My IDE configuration using Notepad++, ampy and Tera Term

Having thought that Thonny was going do all of this for me I found that it was very unreliable for a variety of reasons, crashing and raising errors on the device. I'm Thonny's author. The main problem is that I haven't been able to reproduce most of the reported crashes. The serial communication j...