Hello.
I´m trying to upload a program to a bbc microbit in mbed mode.
In arduino mode it works, but in mbed mode no matter the platform (bbcmicrobit or bbcmicrobit_b), the program compiles but gives this error when uploading:
Uploading .pioenvs/bbcmicrobit_b/firmware.hex
GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00392-gbe9ef0b0 (2018-01-12-16:51)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 1.10
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : SWD DPIDR 0x0bb11477
Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x00000250 msp: 0x20004000
** Programming Started **
auto erase enabled
Error: couldn't open .pioenvs/bbcmicrobit_b/firmware.hex
embedded:startup.tcl:476: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 532
at file "embedded:startup.tcl", line 476
*** [upload] Error 1
Even after compiling sucessfully, .pioenvs/bbcmicrobit_b/firmware.hex
does not exist. Exists firmware.elf
and userfirmware.hex
but in my novice understanding the link failed.
Any advice?
Thanks