On Thu, Apr 26, 2012 at 08:29:10PM +0200, Freddie Chopin wrote:
> GDB sees no threads - info threads return one "thread", as without any  
> RTOS support... There are 6 threads running.

Ok, so your elf file and gdb config is fine then, let's take a more
careful look at OpenOCD. If it doesn't say anything rtos-related on
startup then it might mean it doesn't use the proper config file. What
i did (with stm32) is:

1. copied stm32f1x.cfg to stm32f1x-rtos.cfg in my project directory
2. modified my startup script to have ``source [find ./stm32f1x-rtos.cfg]''
3. modified stm32f1x-rtos.cfg to have ``target create $_TARGETNAME
cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -rtos auto''

Then when you start OpenOCD and connect to it with gdb you should
either see OpenOCD telling you it detected FreeRTOS or you'll see it
failed to detect any RTOS afair. BTW, i'm doing

file blablabla.elf
target remote localhost:3333 

in .gdbinit, so i first load the corresponding elf and only then
connect to the OpenOCD, that might be the reason too.

Probably you'll want to check how that all works without using eclipse
first as Eclipse's plugin likes sending "arbitrary" commands to gdb
(which iirc can be disabled by deselecting some checkboxes).

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to