Problems with openocd/olimex LPC-P2403

Hi everyone,

openopc/ARM is new to me, so I have purchased the Olimex LPC-P2103 and their JTAG cable. I followed the blinking LED example for Linux and had to change the parallel port address and the cable to wiggler. I also had t o add an extra 0 to the parameter list of this command:

flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 0 14765 calc_checksum

It all now appears to work fine, I can stop the target and dump memory. Only problem is that I can’t erase the FLASH. I don’t know what the clock of the Olimex code is, so I tried with 14765 as well as 60000. The FLASH content is rock steady, I can’t erase it.

Does anyone have a clue what I might be doing wrong?

Best regards,

Torleif.

It’s not an additional 0 that’s required, but switching the target# with the lpc-variant string:

#flash bank lpc2000 0 0 <target#> [calc_checksum]

flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14765 calc_checksum

What you did was setting the frequency to 0 which might be the reason why flashing failed for you.

Regards,

Dominic

thanks for you reply.

I think you are right, thanks, I misunderstood what had been changed between versions.

Best regards,

Torlefi.

Thanks for you help, it now works so much better. Now I can even program the board!

I owe you one.

Best regards,

Torleif.