MCB900 version 4 and ICP

Started by Ian Thng, April 04, 2005, 02:38:32 AM

Previous topic - Next topic

Ian Thng

Hi,

Was wondering if anyone from ESA could help with the following:

a) I am using MCB 900 version 4 board

b) I have no problems getting the prog90x.hex file programmed into the onboard 89LPC935 chip according to AN10258_2.pdf

c) I can see the P2.3 LED light up when the MCB900 is hooked up to my application board via the 5 wires from the MCB900 board as explained in AN10258_2.pdf

d) My application board has a 89LPC922 chip which I want to program.

e) When I run Flash Magic to program the 89LPC922 via ICP at 19200 baud, I get some parts working and some parts not working.  The parts that worked are as follows:

   a) Read security bits : 0k
   b) Read Device Signature : Ok
   c) Read Boot Vector and Status bit: ok

The parts that don't work are

a) Erase Flash (The software says erasing flash but never exits)
b) Program Flash (The software says programming flash but never exits)
- essentially - all the write functions has problems.

Has this to do with the prog90x.hex  file ?

Andy Ayre

Have you modified the hex file in any way? If not then try generating a debug file in Flash Magic and sending it to me. You can find the instructions for doing that in the FM application note "what to do when ISP does not work", in the "last resort" section.

Embedded Systems Academy, Inc.
support at esacademy dot com

ben

I had the same trobles with mine. First look at to see if you need to add a capacitor ... I probed the noisy supply with scope and then add
a capacitor across C10 (see also http://www.keil.com/support/docs/2765.htm).
But this wasn' t the only problem because I found that 2N2222 was seldomly  enough to supply the chip during programming. So I connected an NPN to pin 2.3
through a 2k2 resistence and a PNP to its collector through a  2k2 resistence.
Then I had a mostly working circuit. I say mostly because I still experiment some
random failures and I can not reproduce their cause. I suppose it must be some
bug in prog90 or flash magic. This happend a couple of times during the first
hundred programmed chips but it was annoying since I had to close flashmagic
and restart it some times before make it working again. Any hints?
greetings
Ben
PS: I use FM 2.10