I was able to set up an old PC with the Ubuntu 16.04 operating system "aboard".
In that set up I have now resumed to compile and install the St link utility (following more or less the instructions at link: https://startingelectronics.org/tutoria ... -in-Linux/) and successfully program the Nucleo F401RE board (either as an mbed device or through the st-flash command executed in the terminal).
After uploading the last MicroPython interpreter fw shared by Dave (https://www.dropbox.com/sh/48f4pyubzqau ... yvENa?dl=0) I was able to get a a MicroPython REPL via terminal application as described in the tutorial, running the command
Code: Select all
sudo screen / dev / ttyACM0 115200
Code: Select all
MicroPython v1.9.2-21-g8388ec4-dirty on 2017-08-29; NUCLEO-F401RE with STM32F401xE
Type "help()" for more information.
>>> import uos
>>> print(uos.listdir())
['main.py', 'pybcdc.inf', 'README.txt', 'boot.py']
>>>
After successfully installing it (following instruction at link: https://github.com/dhylands/rshell) I cannot get a connection to the board even if the same port is used (please see below).
Code: Select all
Satellite-L655:~$ sudo rshell --buffer-size=32 connect serial /dev/ttyACM0 115200
[sudo] password di xxxx:
No MicroPython boards connected - use the connect command to add one
Connecting to /dev/ttyACM0 ...
b'\r'
Traceback (most recent call last):
File "/usr/local/bin/rshell", line 9, in <module>
load_entry_point('rshell==0.0.10', 'console_scripts', 'rshell')()
File "/usr/local/lib/python3.5/dist-packages/rshell/command_line.py", line 4, in main
rshell.main.main()
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 2646, in main
real_main()
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 2629, in real_main
shell.cmdloop(cmd_line)
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1547, in cmdloop
stop = self.onecmd(line)
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1580, in onecmd
self.onecmd_exec("".join(group))
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1591, in onecmd_exec
return cmd.Cmd.onecmd(self, line)
File "/usr/lib/python3.5/cmd.py", line 217, in onecmd
return func(arg)
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1904, in do_connect
connect_serial(port, baud)
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1215, in connect_serial
dev = DeviceSerial(port, baud, wait)
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1435, in __init__
Device.__init__(self, pyb)
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1261, in __init__
self.has_buffer = self.remote_eval(test_buffer)
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1352, in remote_eval
return eval(self.remote(func, *args, **kwargs))
File "/usr/local/lib/python3.5/dist-packages/rshell/main.py", line 1330, in remote
self.pyb.enter_raw_repl()
File "/usr/local/lib/python3.5/dist-packages/rshell/pyboard.py", line 187, in enter_raw_repl
raise PyboardError('could not enter raw repl')
rshell.pyboard.PyboardError: could not enter raw repl
Code: Select all
-Satellite-L655:~$ sudo rshell
[sudo] password di xxx:
Welcome to rshell. Use Control-D to exit.
No MicroPython boards connected - use the connect command to add one
I think rshell is a very useful tool to interact with the MicroPython interpreter on the board...
Thanks in advance...
Regards