I'm trying to use the project STM32L0xx-ADC in the chibistudio directory on a NUCLEO-L031K6, when i start openOCD using
Code: Select all
openocd\scripts\target\stm32l0.cfgi get:
Code: Select all
Open On-Chip Debugger 0.10.0-dev-00107-ge4848fe (2015-11-13-11:49)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
adapter speed: 300 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : clock speed 240 kHz
Info : STLINK v2 JTAG v24 API v2 SWIM v12 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.269703
Info : stm32l0.cpu: hardware has 4 breakpoints, 2 watchpointseverything seems fine, after that i compile the project and the .elf and .hex files are correctly generated, then when i launch the debug the process stops with error and on the openOCD console the following messages appear:
Code: Select all
Info : accepting 'gdb' connection on tcp/3333
Warn : Cannot identify target as a STM32L family.
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected
what's the problem going on? Am I using the correct .cfg file?