I'm having trouble transferring files to my NUCLEO-F767ZI on Mac OS. I can connect via REPL fine using:
screen /dev/tty.usbmodem1413 115200
But when I try to use rshell or uPyLoader neither can succeed in getting past just connecting (rshell waits on checking if ubinascii.unhexlify exists ... and if I manually check in REPL the test returns True). And uPyLoader can't transfer the needed "Init transfer files".
I can use uPyLoader on my PC without any issues.
Anyone have success with the NUCLEO-F767ZI on Mac OS?
Thanks.
NUCLEO-F767ZI Mac OS connection issues
- aivarannamaa
- Posts: 171
- Joined: Fri Sep 22, 2017 3:19 pm
- Location: Estonia
- Contact:
Re: NUCLEO-F767ZI Mac OS connection issues
Similar issue was reported for my IDE (https://github.com/thonny/thonny/issues/936).
I solved it by flushing the target file after each written block. This can be useful for rshell as well.
I solved it by flushing the target file after each written block. This can be useful for rshell as well.
Aivar Annamaa
https://thonny.org
https://thonny.org
Re: NUCLEO-F767ZI Mac OS connection issues
Apologies for re-opening an old thread, but I have been agonizing over this exact same issue for a while now and am in desperate need of a fix. What exactly do you mean by:
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.
Thanks in advance for the help!
?I solved it by flushing the target file after each written block. This can be useful for rshell as well.
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.
Thanks in advance for the help!
Re: NUCLEO-F767ZI Mac OS connection issues
Same here, for NUCLEO-L476 (also fails with Thonny). I suspect that the ST-Link v2.1 which sits between USB and the STM32's UART is not quite up to this task. Perhaps the on-board STM32F103 which implements the ST-Link chokes on 115200 baud, when too much end-to-end data is trying to get through. I've had many issues with serial communication in other non-µPy projects.
Maybe lowering the serial baud rate will alleviate the problem (e.g. 19200 baud, this probably requires a µPy custom build). But if the deeper problem is inadequate handling of back-pressure in the serial <=> usb chain, then it'll never become a robust setup.
Maybe lowering the serial baud rate will alleviate the problem (e.g. 19200 baud, this probably requires a µPy custom build). But if the deeper problem is inadequate handling of back-pressure in the serial <=> usb chain, then it'll never become a robust setup.
- aivarannamaa
- Posts: 171
- Joined: Fri Sep 22, 2017 3:19 pm
- Location: Estonia
- Contact:
Re: NUCLEO-F767ZI Mac OS connection issues (rshell)
I would try adding dev.flush() after dev.write(...) in main.send_file_to_remote
Aivar Annamaa
https://thonny.org
https://thonny.org