10000 Transfer files to the NUCLEO_F091RC do not works · Issue #8720 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
Transfer files to the NUCLEO_F091RC do not works #8720
Closed
@beyonlo

Description

@beyonlo

Hi all

I'm using this board https://micropython.org/download/NUCLEO_F091RC/ but is impossible to copy files to the flash.

The mpremote works to connect, but not to copy files.

$ mpremote 
Connected to MicroPython at /dev/ttyACM0
Use Ctrl-] to exit this shell
>>
>>> import os
>>> os.uname()
(sysname='pyboard', nodename='pyboard', release='1.18.0', version='v1.18 on 2022-01-17', machine='NUCLEO-F091RC with STM32F091RCT6')
>>>

Copy files With mpremote:

$ mpremote cp gc1.py :
cp gc1.py :gc1.py
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV

Copy files with ampy:

$ ampy -p /dev/ttyACM0 -b 115200 put gc1.py 
Traceback (most recent call last):
  File "/usr/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 "/usr/local/lib/python3.8/dist-packages/ampy/cli.py", line 264, in put
    board_files.put(remote, infile.read())
  File "/usr/local/lib/python3.8/dist-packages/ampy/files.py", line 214, in put
    self._pyboard.exec_("f = open('{0}', 'wb')".format(filename))
  File "/usr/local/lib/python3.8/dist-packages/ampy/pyboard.py", line 279, in exec_
    raise PyboardError('exception', ret, ret_err)
ampy.pyboard.PyboardError: ('exception', b'', b'Traceback (most recent call last):\r\n  File "<stdin>", line 1, in <module>\r\nOSError: [Errno 19] ENODEV\r\n')

Ps: Copy files with mpremote and ampy works fine in other boards, like as pyboard, just not works on this NUCLEO F0.

Anyone know what is the problem OR if is there another way to copy files?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0