stm32f4 with nucleo-f401RE
hi,
i’m working with the nucleo f401re (and other cards like nucleo l476rg or 32f476gdiscorvey).
for the nucleo f401 re, i cannot connect to the card with openocd.
I downloaded openocd to 0.9.0 and it worked fine in console mode.
(i can too attach the debugger to open ocd in eclipe)
i also pointed the executable in the plugin and i arrive start too in console mode (see below)
C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.externaltools.openocd.win32_1.12.0.201611241417\tools\openocd\bin>openocd -f “C:\_work\_webminar5\OpenOCD-20160901\share\openocd\scripts\interface\stlink-v2-1.cfg” -f “C:\_work\_webminar5\OpenOCD-20160901\share\openocd\scripts\target\stm32F4x.cfg” -s “C:\_work\_webminar5\OpenOCD-20160901\share\openocd\scripts”
i think that something doesn’t work in the eclipse configuration for this board to start openocd because i can debug for the other board above and openocd work fine.
(see below the log)
Open On-Chip Debugger 0.10.0-dev-00273-g394abef (2016-11-24-15:15)
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: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2 JTAG v27 API v2 M v15 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.251154
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
Info : device id = 0x10016433
Info : flash size = 512kbytes
undefined debug reason 7 - target needs reset
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
Error: timed out while waiting for target halted
TARGET: stm32f4x.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
Error: timed out while waiting for target halted
TARGET: stm32f4x.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Error: Target not halted
Error: failed erasing sectors 0 to 0
Error: flash_erase returned -304
debugger:
Error in final launch sequence
Failed to execute MI command:
load C:\_work\_webminar5\401retest\Debug\401retest.elf
Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet