EmbeddedRelated.com
Forums

JTAG Flashing of LPC2148 through openOCD

Started by sixtyfivebit March 22, 2006
Oddly enough guys, this time when I flashed with OpenOCD, everything
worked out flawlessly.

I think it had something to do with how I was compiling the code (I
made some changes to the makefile that may have screwed things up). Or
maybe I just did everything right this time.

In the process of preparing the data and logs from OpenOCD fro
Dominic, I realized that the program was running (I hadn't gotten it
to work before). So the I reset the board and to my surprise the
program ran after the reset.

Well, I'm glad it's working now, and here is the package of files for
the OpenOCD flashing anyway (includes demo2148_flash_led source code,
compiled elf/hex/bin, log of erasing/flashing/dumping, flash dump
after an erase, and flash dump after flashing):
http://www.breezynet.com/electronics/stuff/LEDJTAGFlash.zip

I guess it just serves as evidence that OpenOCD flashes the LPC2148
correctly.

Thanks a lot Richard and Dominic!

Thanks sixtyfivebit.

--- In lpc2000@lpc2..., Dominic Rath <Dominic.Rath@...> wrote:
>
> Hello,
> 
> if you're still having problems (you mentioned issues with
CrossLoad, too), it 
> would be nice if you could send me a memory dump
from flash (address
0x0 to 
> 0x7ffff) together with the binary you wanted to
flash, and maybe
even the elf 
> file you've built.
> 
> OpenOCD should work, I've just verified that I could successfully
flash Jim 
> Lynch's blinking led example to a LPC2294.
After resetting the
board, the LED 
> started flashing. I would be very interested to
find out why it
didn't work 
> for you.
> 
> Regards,
> 
> Dominic
> 
and
> I built my program for various configurations just
to test things like
> code size (Thumb vs ARM), execution speed (flash vs RAM) and type
> (debug vs release).  It was very interesting.
> 
> Nevertheless, when I program the device with ARM Flash Release, it
> does set up the flash.  I can remove the JTAG cable and cycle power
> (no simple reset button for me!) and it works properly.
> 
> Keep kicking until you find the problem.  You're getting close!
> 
> Richard
	

An Engineer's Guide to the LPC2100 Series