ERROR of debug

Firmware/software/electronics/mechanics
Post Reply
RyanMco
Member
Posts: 80
Joined: Tue Apr 09, 2019 6:15 am

ERROR of debug

Post by RyanMco » Sun Nov 03, 2019 6:46 pm

Hi, I'm not succeeding to work with the debugger, I followed every step on how to configure debug instruction on the forums and when I configured it and want to use make flash to my firmware into the crazyflie I get in my terminal this error:
make flash
openocd -d2 -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg -c init -c targets -c "reset halt" \
-c "flash write_image erase cf2loader.elf" -c "verify_image cf2loader.elf" -c "reset run" -c shutdown
Open On-Chip Debugger 0.9.0 (2018-01-24-01:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
WARNING: target/stm32f4x_stlink.cfg is deprecated, please switch to target/stm32f4x.cfg
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
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
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
Info : STLINK v2 JTAG v29 API v2 SWIM v18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.242133
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* stm32f4x.cpu hla_target little stm32f4x.cpu running
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080002bc msp: 0x20005000
auto erase enabled
Error: couldn't open cf2loader.elf

Makefile:170: recipe for target 'flash' failed
make: *** flash Error 1




any help?!



arnaud
Bitcraze
Posts: 2128
Joined: Tue Feb 06, 2007 12:36 pm

Re: ERROR of debug

Post by arnaud » Mon Nov 04, 2019 9:41 am

The error is "Error: couldn't open cf2loader.elf"

This is likely caused by the Crazyflie firmware not being build. It needs to be built first with the command "make".

Post Reply