Can't connect to my board with rshell, File Size Issues with pyboard.py
Posted: Thu May 21, 2020 8:38 pm
Big Picture:
I am working on an STM32 B-L475E-IOT01A discovery board. I am trying to upload a few libraries I have written onto my board, and have run into issues with both rshell and pyboard.py
Rshell:
I have been unable to connect to my board via Rshell. whenever I enter the command
I get the following results before the command line hangs until I press ^C
I get the same result if I specify a baudrate of 115200, which is what I normally use to connect to the REPL.
When I enter the command: I get the following results before the the command line hangs:
Again, nothing changes if I specify a baudrate, or if I use the -a flag, as I have seen suggested in a few forum posts. I also have to perform a hard reset (unplug/replug-in my board) each either of these things happens. Hopefully someone on here has had experience with the same issue and can help me resolve this!
Pyboard.py:
My issue with the pyboard tool is that, while I am able to upload short snippets of code and run short scripts with it, I have issues when the python file size gets too big. When the file size exceeds 224 bytes, the command window hangs and again I must do a hard reset of the chip. I have written code in the REPL that works perfectly, but when I try to upload or run the exact same file using pyboard.py, I run into this issue, so I am pretty positive this is not related to errors in my code.
To further prove this, once I caught on to what was happening, I tested this empirically by creating a file where I simply assigned variables (a=1 b=2 etc...). This script uploads successfully until the file size reaches the 224 byte mark, where the issue arises again. Hopefully someone has an easy fix for this, as I seem to have discovered what is causing the problem.
Thanks in advance for the help! And for providing the entire uPython suite in the first place!
I am working on an STM32 B-L475E-IOT01A discovery board. I am trying to upload a few libraries I have written onto my board, and have run into issues with both rshell and pyboard.py
Rshell:
I have been unable to connect to my board via Rshell. whenever I enter the command
Code: Select all
rshell connect serial /dev/tty.usbmodem14113
Code: Select all
Trying to connect to REPL connected
Testing if sys.stdin.buffer exists ...
When I enter the command:
Code: Select all
rshell -p /dev/tty.usbmodem14113
Code: Select all
Using buffer-size of 32
Connecting to /dev/tty.usbmodem14113 (buffer-size 32)...
Trying to connect to REPL connected
Testing if ubinascii.unhexlify exists ...
Pyboard.py:
My issue with the pyboard tool is that, while I am able to upload short snippets of code and run short scripts with it, I have issues when the python file size gets too big. When the file size exceeds 224 bytes, the command window hangs and again I must do a hard reset of the chip. I have written code in the REPL that works perfectly, but when I try to upload or run the exact same file using pyboard.py, I run into this issue, so I am pretty positive this is not related to errors in my code.
To further prove this, once I caught on to what was happening, I tested this empirically by creating a file where I simply assigned variables (a=1 b=2 etc...). This script uploads successfully until the file size reaches the 224 byte mark, where the issue arises again. Hopefully someone has an easy fix for this, as I seem to have discovered what is causing the problem.
Thanks in advance for the help! And for providing the entire uPython suite in the first place!