Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - microjoe

#1
LPC9xx/LPC9xxx / ICP and LPC922
October 04, 2005, 01:30:01 PM
Hi Guys,
I need some help.

I am now totally cofused.

I have 3 application boards with a LPC922. This is intended to be programmed through ICP. I have a header that isolates the lines as suggested in the application note.

I have a MCB900 V4 modified as per the ICP programming application note. I have change the power cct to use a PNP, NPN and 3V regulator to ensure at least 3V at the processor. Using a NPN transistor on its own was only giving about 2.55V. The cable between the MCB900 and the application board is about 50mm.

Now for the problems

All of the boards enter ICP mode and give back valid chip IDs.

Using Flash magic V 2.4 and prog90x V1.4 I can program all boards but the crcs for all flash blocks do not match the hex file.
When I program them, the config byte is over written and the boot vector comes back as 5B. I can manually write to these and read them back and they are correct then.

Using FlashMagic 2.07 I can program all the boards, except that two boards show the wrong crc for the first flash block and the other two blocks used come back correct. I erase the device completly prior to programming and check the crcs of the erased blocks are zero. I am not filling unused flash.

Also at some point earlier I managed to program all the boards and the application ran.

Having read various threads on the forum it seems that most problems are in getting the processor into ICP mode. I must be entering ICP mode because the device ID can be read back.

What I don't understand is why Flashmagic can program some blocks correctly and some incorrectly; why one version works better than another and why it works on one board and not others.

I would have though that if the ICP interface was ok the programming would be OK after that.

I'm new to the LPC922 so this may be finger trouble but I've spent a day on it already.

Can anyone shed some light on this

Yours hopefully

microjoe.