# Problems with openocd/olimex LPC-P2403

**URL:** <https://community.sparkfun.com/t/problems-with-openocd-olimex-lpc-p2403/5680>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [November 6, 2007, 5:12pm UTC](https://community.sparkfun.com/t/problems-with-openocd-olimex-lpc-p2403/5680 "2007-11-06T17:12:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![torleifj](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@torleifj](https://community.sparkfun.com/u/torleifj)\
**Post date:** [November 6, 2007, 5:12pm UTC](https://community.sparkfun.com/t/problems-with-openocd-olimex-lpc-p2403/5680/1 "2007-11-06T17:12:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dominic](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Dominic](https://community.sparkfun.com/u/Dominic)\
**Post date:** [November 6, 2007, 5:52pm UTC](https://community.sparkfun.com/t/problems-with-openocd-olimex-lpc-p2403/5680/2 "2007-11-06T17:52:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![torleifj](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@torleifj](https://community.sparkfun.com/u/torleifj)\
**Post date:** [November 6, 2007, 6:04pm UTC](https://community.sparkfun.com/t/problems-with-openocd-olimex-lpc-p2403/5680/3 "2007-11-06T18:04:29Z")

</div>

thanks for you reply.

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

Best regards,

Torlefi.

---

<div class="post-metadata">

**Author:** ![torleifj](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@torleifj](https://community.sparkfun.com/u/torleifj)\
**Post date:** [November 6, 2007, 6:18pm UTC](https://community.sparkfun.com/t/problems-with-openocd-olimex-lpc-p2403/5680/4 "2007-11-06T18:18:16Z")

</div>

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

I owe you one.

Best regards,

Torleif.
