Skip to content

Flashing on an adafruit nRF52 board causes an error message to appear #1278

@sago35

Description

@sago35

When I try to do tinygo flash with feather-nrf52840, I get an error message.
tinygo flash seems to succeed.

The reset appears to be running immediately after the following.
https://github.com/tinygo-org/tinygo/blob/dev/main.go#L82

It's the same on both ubuntu and windows.Is this the same for everyone?
We might want to include a note of caution in your documentation.

# ubuntu 20.04
$ tinygo flash --target feather-nrf52840 --size short ./src/examples/blinky1
   code    data     bss |   flash     ram
   6256      12    4064 |    6268    4076
error: failed to flash /tmp/tinygo749323199/main.uf2: rename /media/sago35/FTHR840BOOT/flash.uf2.tmp /media/sago35/FTHR840BOOT/flash.uf2: no such file or directory
# windows10 pro
$ .\bin\tinygo.exe flash --target feather-nrf52840 --size short .\src\examples\blinky1
   code    data     bss |   flash     ram
   6856      12    4064 |    6868    4076
error: failed to flash C:\tinygo-pr\tinygo0.14.0dev_1afe528\temp\tinygo458391831\main.uf2: rename D:\/flash.uf2.tmp D:\/flash.uf2: A device which does not exist was specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions