Page 1 of 1

Choppin's openOCD

Posted: Thu Apr 30, 2015 8:20 am
by JoVM
Does Freddie Choppin's openOCD 0.8.0 distro supports -rtos autodetect? My openOCD output:

Code: Select all

$ ./openocd-0.8.0 -f "board/stm32f4discovery.cfg" -c "stm32f4x.cpu configure -rt  os auto"
Open On-Chip Debugger 0.8.0 (2014-04-28-08:39)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v16 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.222091
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection from 3333
Info : device id = 0x10016413
Info : flash size = 1024kbytes
Warn : No RTOS could be auto-detected!

Re: Choppin's openOCD

Posted: Thu Apr 30, 2015 8:45 am
by Giovanni
It supports RTOSes but if I remember well only ChibiOS 2.6.x is recognized, are you trying with 3.0.0?

Giovanni

Re: Choppin's openOCD

Posted: Thu Apr 30, 2015 8:51 am
by JoVM
@Giovanni: Yes, 3.0.0 The solution is to build my own openOCD distro? Or it is not supported in version 3.0.0?

Re: Choppin's openOCD

Posted: Thu Apr 30, 2015 9:02 am
by Giovanni
OpenOCD needs an update in order to support 3.0, so far nobody worked on it as far I know.

The main difference is in public symbol names "rlist" for 2.6, "ch.rlist" for 3.0. OpenOCD searches for "rlist".

Giovanni

Re: Choppin's openOCD

Posted: Thu Apr 30, 2015 9:53 am
by JoVM
:D There's already a new openOCD dev version http://www.freddiechopin.info/download/category/10-openocd-dev/ This one supports 3.0.0 according to openOCD mailinglist. :?: :?:

Re: Choppin's openOCD

Posted: Thu Apr 30, 2015 1:03 pm
by Giovanni
Great, somebody already did it.

Giovanni