SparkFun Forums 

Where electronics enthusiasts find answers.

Everything ARM and LPC
By ah_sandiego
#9991
I have just received the LPC2148 board and I am having trouble attaching to the board through JTAG.

I am using a professional JTAG device that my work uses called Trace32 by Lauterbach. http://www.lauterbach.com/

I have the device setup in such a way that I can verify the scan chain is working correctly (requires turning off EnReset and TRST)
Image

The problem is, I cannot bring the system up. The command is SYSTEM.UP, and it always generates an error (and I think the processor is resetting).

What *should* happen when I issue this command, is simply the Trace32 (JTAG) software should connect, and I can then read values from memory, or write to flash and so on.

I have tried a JTAGCLOCK as slow as 100kHz, and I have also tried RTCK. Both let me verify the scan chain is correct, but will not let me bring the system up.

So, I am stuck. Can anyone give me any pointers? Does the LPC2148 board need some more jumpers set or switches turned on/off? I haven't actually found any documentation to explain what the switches do yet.

Anyway, any suggetions will be appreciated.

Thanks,
AH
By OLIMEX
#10044
high priced tools sometimes have bugs also
Lauterbach have issues with some LPC microcontrollers
Borrow ARM-JTAG and install CrossWorks to see that board is working well :)
Tsvetan
By ah_sandiego
#10123
I got it to work! Thanks Olimex for your response (in email). I forwarded it to Lauterbach, and they supplied a fix.

The extra command needed is
system.option.NOIRCHECK on

After this the board comes up fine. Below are links to the FLASH contents on the board (factory settings) size 512k

http://geocities.com/ah_sandiego/LPC214 ... CSP_on.bin
http://geocities.com/ah_sandiego/LPC214 ... SP_off.bin

It is interesting to note that the only difference between the two files is the first 64 bytes.