Choppin's openOCD

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
JoVM
Posts: 89
Joined: Thu Mar 12, 2015 12:13 pm

Choppin's openOCD

Post 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!
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Choppin's openOCD

Post 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
JoVM
Posts: 89
Joined: Thu Mar 12, 2015 12:13 pm

Re: Choppin's openOCD

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Choppin's openOCD

Post 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
JoVM
Posts: 89
Joined: Thu Mar 12, 2015 12:13 pm

Re: Choppin's openOCD

Post 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. :?: :?:
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Choppin's openOCD

Post by Giovanni »

Great, somebody already did it.

Giovanni
Post Reply