LPC23xx ISP programming

Status
Not open for further replies.

bikashh

Full Member level 5
Joined
Nov 28, 2009
Messages
264
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
india
Visit site
Activity points
3,132
dear friends,

i am using LPC2368 in my project and want to program it using ISP.I've also downloaded flash magic.can anybody help me with the schematic and the steps to follow?

thanks in advance
 

Do you have a board that includes a uart chip (like MAX3232),
if so you have to connect the serial the uart to the serial port of the pc and follow the steps in

**broken link removed**

Alex
 

hey friend can you provide me the schematic. thanks for the reply
 

What king of schematic do you need, you don't need any programmer, you only need to connect the serial interface to a PC.
Do you have a uart chip connected to the Tx and Rx pins of your mcu?
Do you have a specific development board?

Alex
 
Last edited:

i got the schematic.... please check the attachment.. now i got the concept that when the controller will go into reset mode my bootloader will load check my ISP pin 2.10 status.if it is low for 3ms the bootloader will enter into ISP mode...and if the bootloader doesn't find low signal at pin2.10 it will enter into user code...right? if we use flash magic the above checking is done by the flash magic itself..
but which UART to use to get my HEX code into my chip...i am using LPC2368.

thanks for the reply
 

Attachments

  • ISP.pdf
    529.5 KB · Views: 233

You have to use the UART0, its the same for all LPC.
Yes the procedure is the one you describe but the pin 2.10 status depends on your hardware,
for example in my case i have a button so the programmer software can't change that, i press it manually
Also depending on the crystal used some speeds will not work correctly, start at low speeds and then try with faster speeds.

Alex
 
I don't see a problem with the connections but you can only use UART0 for programming, don't try with UART1.
Try to set a manually the communication speed in the program settings.

Alex
 

i changed baud rate.
but it didn't work.
in data sheet of lpc2368 said that for minimize noise,power supply of VSSA and VDDA should be separated.
but i use same.
do you think this is the problem?

---------- Post added at 17:15 ---------- Previous post was at 17:13 ----------

Try this link
Also check what should be your pin31 i think 4 lpc2368 it is floating:
Need Help - Using 8051 with RS232
pin 31 is VSS and must connect to ground.
 

Your problem is not power supply related.
Test the connection with the low baud rate like 9600 and then increase it and test if any of them works.

Another note, LPC2368 has a port 2 that is not shown in your schematic, also the hardware request for the ISP is to ground pin 2.10 and this is not shown in your schematic either

Alex
 

because i used lpc2132 in proteus for design schematic and that doesn't have port 2,and for pin 2.10 i connected a switch to
ground.
i tried all baud rates and none of them didn't word.
i checked connections and now this is the error of FlashMagic
"Failed to read the device signature"
 

sorry Dude , probably i downloaded wrong datasheet. .:evil:
try this :
Go to options >> advance options>> uncheck the use dtr to control rst in hardware config tab !!!
i dont know it will work or not, but it works for p89v51rd2 ..
 

are you sure that pin 2.10 is grounded when you reset the mcu?
Also check if the PC port number is correct.

Alex
 

ok .. try to use 14, 13, 11 ,12 pin of max 232 !!! sometimes it is the problem with other set!!!
 

i checked pin 2.10 (53) and that is connected to ground.
also checked port of PC and that was correct.
also changed pins of MAX232 ,and the processor but problem didn't solve.:-(
can you give me another schematic for programming or another program for PC?
 

is the oscillator frequency in the settings of the programmer 12MHz (your crystal frequency), also are you currently trying with 9600 or 38400 baud.
also uncheck DTR and RTS in the options.

the only other programmer I have used in the one of NXP but it was for LPC21xx and I don't know if it supports your MCU.
Flashmagic is a good programming software and i doubt that the problem is caused by it.
 

Ok
First of all i never used this LPC23xx . .
secondly in many posts and pdf regarding LPC23xx programming i saw that you need to check dtr to control rst in hardware config.. check your hardware schematic and mark that dtr to control rst accordingly!!!
Third what LPC23xx are you using is it made By Phillips or NXP?? Earlier i buyed 5 Phillips P89v51's from different places (even different cities) . . they arent working they are brand new and not getting programmed.. but recently i buyed three p89's.. two are NXP and one is phillips.. pHillips is not working and NXP's - they are working fine. . hope you got my point!!!
If you are using breadboard, then i suggest you to make a proper pcb circuit( Google it you will get schematic) .. breadboards are not reliable..
Check your pc to max232(serial cable) cable is it working fine?? Try to use shorter cable while connecting pc to max232..
try changing your crystal(oscillator may it is faulty)?
check your reset circuitry is it working fine?

Good Luck
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…