Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: Mariano D on March 22, 2007, 06:25:14 AM

Title: ICP problems on custom board
Post by: Mariano D on March 22, 2007, 06:25:14 AM
Hi All, I'm trying to make my own programmer board, for the LPC932A1, and use it in ICP mode.

The board is very similar to the MCB900 from keil, I make it following all the recomendations that I found on the AN's and this forum.

Up today I'm able to make all the functions in ISP mode (read, write, erase & set device configuration).

When I trying to use it as ICP (with the ISP-ICP bridge device on it) I can only use it for read, blank check, erase, read device ID & set device configuration, but I can't program the device.

Is necesary connect some other pin on the LPC932 that I'm using as bridge. Because if I use the original MCB900 board with this device I'm able to make all the functions on ISP & ICP.

If I didn´t undestand wrong, for ICP only need to connect TXD RXD to the bridge device and the five pins to the target.
The circuit for control the target VDD pin on the AN10258 doesn´t work properly, I´m using a PNP & NPN transistor arrengement that works well.

Someone can advice me?
Title: Re: ICP problems on custom board
Post by: Andy Ayre on March 22, 2007, 08:59:59 AM
Put a scope on the ICP signals on both the MCB900 and your board and find the difference. Something must be marginal so it fails during larger transfers.

Did you look at the revised ICP circuit from Joe Gold in the resources section of the Flash Magic web site?

Andy
Title: Re: ICP problems on custom board
Post by: Mariano D on March 22, 2007, 09:51:19 AM
Thanks Andy,

yes I´m using the Joe circuit to control VDD pin on target.
What I´m able to see with scope is that when push program on flashmagic, seems to the part read the device ID of the target, then erase it and when come to program the communication of the two devices stops.

Did you think that may be I have some spike on VDD target pin? Maybe I can use a small capacitor and that pin?


Title: Re: ICP problems on custom board
Post by: Andy Ayre on March 22, 2007, 09:56:52 AM
Generate a debug file as described here and email it to me. My email address is at the bottom of all my posts:

  http://forum.flashmagictool.com/index.php?topic=3272.0

Andy
Title: Re: ICP problems on custom board
Post by: Mariano D on March 22, 2007, 10:49:20 AM
Andy, I will do that tomorrow and then get back to you.

Thanks
Title: Re: ICP problems on custom board
Post by: erikm on March 23, 2007, 05:45:37 AM
The board is very similar to the MCB900 ... if I use the original MCB900 board with this device I'm able to make all the functions on ISP & ICP.

could the answer be in the question?

in the = fortunately long gone - days of kitchen table programmers for the non-ISP '51s there was, almost daily a forum therad "why does my programmer not work, I copied xxx".  Invariably those threads ended up with "yes., I substituted ..., but that should not make a difference" and invariably that was the cause.

f you substitute just a transistor, it can be that a difference in the beta give a subtle change in timing and - OOPS - the thing does not work.

let us know what makes it not 'a copy' but 'very similar' and maybe the cause can be found.

Erik
Title: Re: ICP problems on custom board
Post by: Mariano D on March 26, 2007, 06:26:27 AM
Erik I´m attaching a .pdf from my board.

Thanks in advance for your advice.
Mariano
Title: Re: ICP problems on custom board
Post by: Andy Ayre on March 26, 2007, 10:02:08 AM
It looks to me like in a long sequence of characters received from the board via RS232, every once in a while a character is dropped. This results in Flash Magic receiving less data than it expected.

Double-check your circuit between the bridge device and your PC matches the circuit on the MCB900.

If you are using a USB to RS232 cable, try a PC with a real COM port to see if that helps.

Andy
Title: Re: ICP problems on custom board
Post by: Mariano D on March 27, 2007, 10:44:40 AM
Andy, in my last post I attached my board schematic. Maybe if have the time you can check it.

thanks Mariano
Title: Re: ICP problems on custom board
Post by: Je Gold on March 28, 2007, 07:04:36 AM
OK,  I have looked at your circuit above.

Q1
How did you determine the 10k resistor values around the NPN (BC548) and PNP (BC558) switching on VDD_2?

Q2
Did you measure the voltage of VDD_2 when it was on?  What was the measured VDD_2 voltage?

Comment1
I did a Spice simulation of the BC548  - BC558 load switch combination.... as worst case is VDD_2 is very close to 2.4V the VDD low threshold of the LPC932A1....  VDD_2 should be more like 3V to program flash correctly.

Suggestion1
Have a look at my suggestions for the ICP  Vdd switch in the FlashMagic Resources page here.

http://www.flashmagictool.com/assets/resources/ICPBridgeVddSwitch.pdf

My circuit turns the PNP (BC558)  [ ~ 2N3906 ]  a lot harder and gives more VDD_2 towards 3V.

joe

Title: Re: ICP problems on custom board
Post by: Mariano D on March 28, 2007, 08:11:44 AM
Joe,

The big difference I think is on the base resistor of the PNP transistor, in your circuit is 1K and in the mine is 10K.
I will change it and get back to you, the both transistor 2N3906 and BC558 are very similar, and if you look the datasheet you will see similars VCEsat voltages versus IC current.
But if I didn t get good results with the resistors I will change it too.

Mariano
Title: Re: ICP problems on custom board
Post by: Je Gold on March 28, 2007, 05:07:44 PM
Now your thinking in the right direction.

Yes transistors have similar characteristics for VDD switching requirements.

IN ADDITION

P2.3 [VDD control] configured as Quasi-Bidirectional in in prog90x.hex ver1.6 (and probably ver1.7) - so it's HIGH level output drive characteristic is not strong.
:D
Joe
Title: Re: ICP problems on custom board
Post by: Je Gold on April 06, 2007, 01:35:16 AM
So did it work Mariano?

Joe
Title: Re: ICP problems on custom board
Post by: Mariano D on April 10, 2007, 05:00:16 PM
Unfortunly not Joe, I'm using the programer on ISP and go forward with my project.
Even when have some time I will be trying again, sorry for the late response. Maybe I will post some measurements of my board too.

Joe

[/quote]
Title: Re: ICP problems on custom board
Post by: Je Gold on April 12, 2007, 04:26:58 AM
Yes, ICP is hardware and software wise a little more difficult (but need for the LPC900 parts under 20pins), unless you purchase a profesional programmer.

If you have ISP working then also have a look at the resources page on LPC935 NoTouch..  Based on Eirks  NoTouch concpets.


Joe
Title: Re: ICP problems on custom board
Post by: est on June 30, 2008, 06:18:15 AM
I have almost the same problem (with custom board too). Connection seems to work well when I program lpc9107 becouse flashmagic leave message "finished". But when I want to start programmed chip it doesn't work(all 1/0 pins are on 0.3V but can not leach corrent).
But when I program(with ICP) lpc936(and all lpc-s with boot loader) Flash magic can erase chip but can not program it. (unable to transmit/recieve). Any idea?  I already tried with  icp briedge verzion1.7, prog90x, lpc932a1,lpc936...   
Title: Re: ICP problems on custom board
Post by: Andy Ayre on June 30, 2008, 09:01:02 AM
Please generate a debug file and send it to me. Please try to erase and then program while generating the file. Instructions are here:

  http://www.flashmagictool.com/debugfile.html

Andy
Title: Re: ICP problems on custom board
Post by: est on July 01, 2008, 09:18:20 AM
Here is a debug file for lpc932a1 and lpc9107
Title: Re: ICP problems on custom board
Post by: Andy Ayre on July 02, 2008, 09:37:36 AM
Please email to support at esacademy dot com, zipped *not* rar.

Andy
Title: Re: ICP problems on custom board
Post by: kittmaster on September 19, 2008, 05:26:40 PM
Quote from: Mariano D on March 22, 2007, 06:25:14 AM
Hi All, I'm trying to make my own programmer board, for the LPC932A1, and use it in ICP mode.

The board is very similar to the MCB900 from keil, I make it following all the recomendations that I found on the AN's and this forum.

Up today I'm able to make all the functions in ISP mode (read, write, erase & set device configuration).

When I trying to use it as ICP (with the ISP-ICP bridge device on it) I can only use it for read, blank check, erase, read device ID & set device configuration, but I can't program the device.

Is necesary connect some other pin on the LPC932 that I'm using as bridge. Because if I use the original MCB900 board with this device I'm able to make all the functions on ISP & ICP.

If I didn´t undestand wrong, for ICP only need to connect TXD RXD to the bridge device and the five pins to the target.
The circuit for control the target VDD pin on the AN10258 doesn´t work properly, I´m using a PNP & NPN transistor arrengement that works well.

Someone can advice me?


I am having the SAME EXACT problem as you are......did you get resolution to this yet??  Same thing, dropping bits, on program but all other functions to ICP working as it should via flashmagic.......

I'm going nuts trying to figure out what is wrong, and I built it just like the mcb900.

My ISP works flawlessly, my ICP all but programming.........

Please let me know, I'd really like to the have a solution!

thanks
chris
Title: Re: ICP problems on custom board
Post by: Andy Ayre on September 19, 2008, 05:32:46 PM
The last email I sent to that person was wondering if the ICP communications were somehow causing a problem for the bridge. I asked them to look at the ICP signals with a scope - didn't hear back.

Have you tried a different LPC936 for the bridge from a different batch?

The only other option I have is to ask NXP... Sorry.

Andy
Title: Re: ICP problems on custom board
Post by: kittmaster on September 19, 2008, 05:49:12 PM
I have 20 or so on hand, swapped several so far, always the same result......is 3.1 volts enough on VDD??

I can't find a minimum programming spec.
Title: Re: ICP problems on custom board
Post by: kittmaster on September 20, 2008, 07:51:32 PM
I've modified the VDD switch application a bit more and now have 3.24 volts on the VDD pin.  I thought it could be a voltage threshold issue, but still stand with the same exact issue.....this shouldn't be this difficult.....:(