Olimex Support Forum

ARM => JTAG => Topic started by: Joe56 on March 22, 2014, 04:31:47 PM

Title: Olimex A10 Lime .cfg file for OpenOCD
Post by: Joe56 on March 22, 2014, 04:31:47 PM
Hello,

I tried to find out some cfg file to build a config file for the Olimex A10 Lime board in order to debug some baremetal projects with OpenOCD.

I didn't get something close enough to the board Lime / target A10 cpu and think I need to write it from scratch. In fact likely 2 or 3 different files (board, target,..)

Is there some people already involved in this issue, or interested to share their ideas or having some basic skills to speed up the learning curve ?

Thanks,

Joe

Title: Re: Olimex A10 Lime .cfg file for OpenOCD
Post by: JohnS on March 22, 2014, 07:30:00 PM
Try JTAG / OpenOCD / Allwinner forums / mailing lists?

John
Title: Re: Olimex A10 Lime .cfg file for OpenOCD
Post by: Joe56 on March 22, 2014, 10:20:43 PM
Thanks John,

I find out a link of interest:
https://github.com/hno/Allwinner-Info/blob/50c0b67a67d885cbf81689ec0a05295b5614a5ee/JTAG/openocd-sunxi.cfg

I'll try to sum up once I get something working.

Joe

Title: Re: Olimex A10 Lime .cfg file for OpenOCD
Post by: Joe56 on March 25, 2014, 01:17:45 PM
Eclipse in now able to communicate with the ARM-USB-OCD-H Jtag probe, but the A10-lime board seems to not reply to the jtag request as if the link wasn't established:

(from Eclipse):
Open On-Chip Debugger 0.8.0-dev-00381-gf91390f (2014-03-20-21:09)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 14000 kHz
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
16384
Info : clock speed 14000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: sun4i.dap: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0 in JTAG-DP transaction
Polling target sun4i.cpu failed, GDB will be halted. Polling again in 100ms
Polling target sun4i.cpu failed, GDB will be halted. Polling again in 300ms
....

Jtag pins are multiplexed and as stated in the A10 register datasheet page, there are 2 registers to mod.
I'm a little bit stuck here as I don't know at the moment how to write in these regs and how they are mapped in SDRAM.

Any idea ?

thanks,
Joe
Title: Re: Olimex A10 Lime .cfg file for OpenOCD
Post by: LubOlimex on April 30, 2014, 02:47:57 PM
Hey Joe,

I believe the only guy that reported success of using Olimex debugger (TINY-H) with A13 Allwinner OLinuXino board was Henrik Nordstrom here: https://github.com/hno/Allwinner-Info/tree/master/JTAG (https://github.com/hno/Allwinner-Info/tree/master/JTAG). Maybe some of his sources would provide useful for your task or you can politely ask him for instructions and pointers towards adjusting his code for the A10 board and OCD-H.

Best regards,
Lub/OLIMEX