Zephyr port: can't access raw REPL
Posted: Tue Aug 25, 2020 2:37 am
Dear Group Members,
I want to ask you, is there any alternative to REPL in Micropython? Is it possible if I write a code in Python and save a file for example MAIN.PY and flash it on to the board.
I have tried using AMPY but getting the following error:
ampy --port /dev/ttyACM0 run light.py
b'\r'
Traceback (most recent call last):
File "/home/rg/.local/bin/ampy", line 8, in <module>
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/rg/.local/lib/python3.8/site-packages/ampy/cli.py", line 337, in run
output = board_files.run(local_file, not no_output)
File "/home/rg/.local/lib/python3.8/site-packages/ampy/files.py", line 299, in run
self._pyboard.enter_raw_repl()
File "/home/rg/.local/lib/python3.8/site-packages/ampy/pyboard.py", line 192, in enter_raw_repl
raise PyboardError('could not enter raw repl')
ampy.pyboard.PyboardError: could not enter raw repl
Moreover, if I am using the method given in the link: http://docs.micropython.org/en/v1.12/re ... rd.py.html. I am getting the following error: pyboard.py: command not found
Please advise.
I want to ask you, is there any alternative to REPL in Micropython? Is it possible if I write a code in Python and save a file for example MAIN.PY and flash it on to the board.
I have tried using AMPY but getting the following error:
ampy --port /dev/ttyACM0 run light.py
b'\r'
Traceback (most recent call last):
File "/home/rg/.local/bin/ampy", line 8, in <module>
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/rg/.local/lib/python3.8/site-packages/ampy/cli.py", line 337, in run
output = board_files.run(local_file, not no_output)
File "/home/rg/.local/lib/python3.8/site-packages/ampy/files.py", line 299, in run
self._pyboard.enter_raw_repl()
File "/home/rg/.local/lib/python3.8/site-packages/ampy/pyboard.py", line 192, in enter_raw_repl
raise PyboardError('could not enter raw repl')
ampy.pyboard.PyboardError: could not enter raw repl
Moreover, if I am using the method given in the link: http://docs.micropython.org/en/v1.12/re ... rd.py.html. I am getting the following error: pyboard.py: command not found
Please advise.