Page 1 of 1

NUCLEO-F767ZI Mac OS connection issues

Posted: Mon Jul 29, 2019 5:39 pm
by sungkhum
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.

Re: NUCLEO-F767ZI Mac OS connection issues

Posted: Tue Oct 15, 2019 8:43 pm
by aivarannamaa
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.

Re: NUCLEO-F767ZI Mac OS connection issues

Posted: Fri May 22, 2020 8:09 pm
by walecka
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:
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

Posted: Sat May 23, 2020 4:53 pm
by jcw
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.

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

Posted: Sun May 24, 2020 4:55 am
by aivarannamaa
walecka wrote:
Fri May 22, 2020 8:09 pm
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