ARM-USB-OCD results??

HI, all

I am working on OLIMEX L2294 ARM board with OLIMEX’s ARM-USB-OCD. I am using it for my project. I want a smooth and full fledge debugging support. I have already tried with a wiggler & with the older eclipse(3.1.1) as per Jim Lynch’s tutorial an year ago :slight_smile: & really was a great experience.

Now I am using a ready made environment that comes with the OLIMEX CD. In that I experienced a few problems and wants some more detail info about the Command sets.

  1. I am not able to download the hex into onchip-flash through a JTAG, it goes upto 60% & hangs there. So time being I am downloading it via a LPC Flash Utility & then debugging. What Could be the problem?

  2. I have tried with the following set of commands

target remote localhost:3333

monitor halt

monitor arm7_9 sw_bkpts enable

monitor arm7_9 force_hw_bkpts enable

symbol-file main.elf

set $pc = 0x0

thbreak main

but not sure about the s/w & H/W break-points. some of the previous posts I referred says s/w bkpts should be disable ,some says h/w bkpts should be disable.

So what is the correct solution & maximum how many breakpoints (S/w as well as h/w) this environment supports?

  1. What kind of commands I can send in runtime debugging via, gdb> comand line ?

thanks & regards,

Suyash.

Have you tried the latest Yagarto ?

I would only use a CD like that if I did not have access to the Internet.

As for break points the rules are pretty simple.

If you are programming in flash use Hardware breakpoints. On ARM7 I think you can only really have one breakpoint as the other is used for single stepping.

If you are debugging in RAM then use software breakpoints and you can have as many as you like !

Dominic : Would it not be possible for Open OCD to be told where the Flash/ ROM is and then automatically select the type of breakpoint ?

All the best.

The support for this has been added to gdb already (v6.5), just a matter of getting openocd to respond to the new qXfer packet and sending a memory map.

I will be looking into when i have a spare 5 minutes, gdb will also do the flash programming etc using vFlashWrite packet.

Cheers

Spen