November 08, 2024, 11:57:22 AM

Olimex A10 Lime .cfg file for OpenOCD

Started by Joe56, March 22, 2014, 04:31:47 PM

Previous topic - Next topic

Joe56

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


JohnS

Try JTAG / OpenOCD / Allwinner forums / mailing lists?

John

Joe56


Joe56

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

LubOlimex

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. 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
Technical support and documentation manager at Olimex