We tried to flash an new firmware on the nucleo f072rb.
during the upload process we stuck in the mbed_die function. Even if we use the latest version on github we have the same error.
If we clean and reset the board it stays in the flashing LEDs.
Below is our setup and the errorcode.
[platformio]
env_default = nucleo
[env:nucleo]
#platform = https://github.com/platformio/platform-ststm32.git
platform = ststm32
framework = mbed
board = nucleo_f072rb
upload_protocol = stlink
# Settings:
# - enable float formatting for printf, adding approx. 7 kB of bin file size
# - C++11 to be able to define default values for struct members
# - Use low speed internal clock (LSI) for RTC (no LSE crystal on PCB)
build_flags =
-Wl,-u_printf_float
-std=c++11
-DMBED_CONF_TARGET_LSE_AVAILABLE=0
# -DMBED_CONF_TARGET_STDIO_UART_TX=PA_9
# -DMBED_CONF_TARGET_STDIO_UART_RX=PA_10
# -DPIO_FRAMEWORK_MBED_RTOS_PRESENT
# -DPIO_FRAMEWORK_MBED_EVENTS_PRESENT
# Custom Serial Monitor port
#monitor_port = /dev/ttyUSB1
; Custom Serial Monitor baud rate
monitor_baud = 115200
Archiving .pioenvs\nucleo\libabd\libAdafruit_GFX.a
Linking .pioenvs\nucleo\firmware.elf
Checking size .pioenvs\nucleo\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [==== ] 43.7% (used 7160 bytes from 16384 bytes)
PROGRAM: [======== ] 76.5% (used 100228 bytes from 131072 bytes)
Configuring upload protocol...
AVAILABLE: blackmagic, jlink, mbed, stlink
CURRENT: upload_protocol = stlink
Uploading .pioenvs\nucleo\firmware.elf
GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00392-gbe9ef0b0 (2018-01-12-15:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2 JTAG v29 API v2 SWIM v18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 0.011031
Error: target voltage may be too low for reliable debugging
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : Listening on port 3333 for gdb connections
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
adapter speed: 950 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x08002540 msp: 0x200011d8
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
** Programming Started **
auto erase enabled
Info : device id = 0x20016448
Info : flash size = 128kbytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0x200011d8
wrote 102400 bytes from file .pioenvs\nucleo\firmware.elf in 4.053876s (24.668 KiB/s)
** Programming Finished **
** Verify Started **
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x200011d8
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x200011d8
verified 100500 bytes in 0.432645s (226.848 KiB/s)
** Verified OK **
** Resetting Target **
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
adapter speed: 950 kHz
shutdown command invoked