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

Messages - microjoe

#1
LPC9xx/LPC9xxx / Re: CRC Problem
February 16, 2006, 07:09:16 AM
Hi game1234,
You say you got it working, how? Any suggestions would be very useful.

I have a similar problem. I managed to program some chips the other day and the code ran. I upgraded the programmer (MCB900) with the latest hex code and used the latest version of Flashmagic and now I can't read the chip ID's or reprogram them. Note that these devices are mounted on a small pcb and I have a programming header that connects to the MCB900. I have double and treble checked the connection and scoped all signals.

They will still run the old code though.

I've reverted back to 2.07 and prog90x and still no luck. All the signals appear on the pins but there is no response from the chip. The reset sequence times are OK.

I've had problems in the past with checksums but this may have been version 2.4 causing problems. So I ended up using 2.07 as supplied with the MCB900.

So I soldered a new device directly to the header on the MCB900. I could read the device ID, erase the device but it would stop prgramming the device near the end and give a communications error.


Any ideas, pointers, things to check because I'm right out of ideas

Regards
Joe
#2
LPC9xx/LPC9xxx / Re: ICP and LPC922
October 10, 2005, 01:18:00 PM
Hi Andrew,

I thought I'd add the following to my post.  If I erase the flash I get crc of 0 on all blocks. I don't use checksums and normally ( I can't remember exactly at the moment) it's only the first block that has the wrong check sum.

Regards
Microjoe
#3
LPC9xx/LPC9xxx / Re: ICP and LPC922
October 10, 2005, 01:14:33 PM
Hi Andrew,

I do agree that BV should not be going to 5B and also that programming the LPC922 should not overwrite the configuration codes.

I have to reprogram them later this week. I'll record exactly what goes wrong ( and right ) I'll post results then.


Hi Erik,
The MCB900 controls the power to the input of the regulator. I've scoped it and it works. I think if I showed you a cct it would be obvious. I probably haven't explained it well.

Regards
Microjoe

#4
LPC9xx/LPC9xxx / Re: ICP with MCB900
October 05, 2005, 02:57:22 PM
Thanks Andy,

I've studied most of these documents.

I have progressed further and am getting reliable ID reads but have problems programming.

I have started a new thread entitled  "ICP and LPC922".

I'm getting a little disheartened with it all.

I've used emulators and other embedded micro's for about 10 years now and this one has caused me the most problems. In the end I hope I can say "Ah! Now I understand"

Regards
Microjoe
#5
LPC9xx/LPC9xxx / Re: ICP and LPC922
October 05, 2005, 02:49:00 PM
Hi Erik,

The PNP/NPN pair feed the 3V regulator. I used the NPN driven from the lpc935 to switch on a PNP. This second transistor emmitter is supplied with 10v, the collector feeds the input to a 3V regulator. (I have current limiting resistor in the base circuits). This way as long as the VceSat of the PNP does not exceed about 5V the regulator will produce 3V. I would post a cct but I don't know what form to put it in. It does work, I get a stable (scoped) 3V on the application board during programming. BUT doing this did not resolve the problems.

I have managed to program all three boards eventually by using a combination of FlashMagic 2.07 and 2.4 on each board.

I'll post some more details tommorow about the method used to program the boards.

How many people have had NO problems using ICP on application boards using LPC922? This forum naturally only lists the problems not the successes.

#6
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.
#7
LPC9xx/LPC9xxx / Re: ICP with MCB900
September 30, 2005, 08:02:01 AM
I have similar problems. I can't program a LPC922 or read the Device ID reliably either.

I am using the MCB800 as a bridge. I have check the wiring 100% and 100 times and I get approx 2.5 volts at the processor.

When programming I remove a set of links which isolates the the circuit from the programming pins Vdd etc. Other pins of the processor remain connected.
I've scope'd the programming lines. I get clocking pulses and data from the programmer but there are times when the data lines go high which I assume is when the LPC922 is not responding.

I have managed to read back the device ID on a couple of occasions and then when I had some useable code I managed to program it. I'm not sure if the code runs properly or not. After progamming I could not read the device ID again.

My guess it that the processor is not entering ICP mode reliably.

Where can I find the ICP programming spec. I've looked but can't find it.

Any other comments and help would be useful

Thanks