[SOLVED] How to enable openocd trace

Post here to get support
Post Reply
chillax
Beginner
Posts: 2
Joined: Fri Nov 03, 2017 2:42 pm

[SOLVED] How to enable openocd trace

Post by chillax »

Hi all, I am trying to do some profiling on my crazyflie, therefore I tried the "make trace" command, but I get the following output:

Code: Select all

$ make trace
openocd -d2 -f interface/stlink-v2.cfg  -f target/stm32f4x_stlink.cfg -c init -c targets -f tools/trace/enable_trace.cfg
GNU ARM Eclipse 32-bits Open On-Chip Debugger 0.9.0-00073-gdd34716-dirty (2015-05-19-09:59)
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
Error: open failed
in procedure 'init' 
in procedure 'ocd_bouncer'

make: *** [trace] Error 1
I am new to openocd therefore I have no clue how to proceed.

My guesses why it does not work:
  • I did not modify anything in the firmware that is related to tracing
  • I don't have the necessary hardware (only the dongle and a microUSB cable
Any help would be really appreciated!
Last edited by chillax on Tue Nov 07, 2017 1:59 pm, edited 1 time in total.
chillax
Beginner
Posts: 2
Joined: Fri Nov 03, 2017 2:42 pm

Re: How to enable openocd trace

Post by chillax »

The answer is that you do need additional hardware (ST-Link and debug adapter). Also, if you are using the bitcraze VM, don't forget to connect the ST-Link via Devices -> USB -> ST-Link
Post Reply