Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => OpenOCD JTAG => Topic started by: rythums on August 09, 2011, 04:22:35 pm

Title: ARM dap commands not working
Post by: rythums on August 09, 2011, 04:22:35 pm
Hi All,
I am new to openOCD family and trying to use it for my small ARM board with cortex m3
I installed and connected openOCD for the first time today with cortex m3.
After the connection I am trying to execute dap commands as given in the manual.

I am using 0.4.0 version as I thought the latest may not work with ubuntu 9.1 ...?

so when I type "dap apid 0" or "dap info 0" I get an error as invalid command name

am I doing some thing wrong here ....? I am expecting a ROM table read

I am trying to dig into the code and understand the data flow but if anybody could help me out here I would be thankful to him..


Thanks in advance
Ryth
Title: Re: ARM dap commands not working
Post by: brian on August 09, 2011, 04:42:21 pm
I presume you are telneting to the openocd server?

telnet localhost 4444

If it has found the target the available commands can be displayed simply by typing help

You can see my toolchain setup at http://teholabs.com/docs/toolchain:jtaglin (http://teholabs.com/docs/toolchain:jtaglin) which contains some openocd info.
Title: Re: ARM dap commands not working
Post by: rythums on August 11, 2011, 08:46:04 am
Hi brian,

thanks for the help, yes i was telnetting to 4444 etc..

but I was able to make it happen now, i had not declared the target as cortex_m3 in the config file so it was  not supporting target commands.
now it is...

meanwhile I am also trying to go through the open ocd source code so that it can become handy for me to use.
so could you please help me in brief about how it flows in from main.c/openocd.c to the individual target functions for example...
cortex_m3.c...?
Can I PM you for any further help if I need ....? hope I wont be bothering you too much..

Regards
Ryth
Title: Re: ARM dap commands not working
Post by: ian on August 22, 2011, 10:45:19 am
Hi Ryth,

Thanks for taking an interest in OpenOCD. the OpenOCD mailing list is very active, there are a bunch of developers there who could help you get up to speed on the code.

There also appears to be a developers guide, no idea how recent it is though:
http://openocd.berlios.de/doc/doxygen/html/index.html (http://openocd.berlios.de/doc/doxygen/html/index.html)

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00952060832session_write_close ( )...(null):0
20.00982192424ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00982193200Database_MySQL->query( ).../DatabaseHandler.php:119
40.05592331936Database_MySQL->error( ).../Db-mysql.class.php:273