I connected my board to PC using UART0, bootloader enable pin pulled down using jumper,I run Philips ISP utility, Read Device ID reads Part ID:4293984050, BootLoader ID:1.3Is this correct?I select leddisp.hex and click Upload to Flash button, it fails...Erase function does not work also. Blank Check returns chip is blank.I tried 9600 and 19200 baud, there is 10MHz crystal at the board and Ientered 10000kHz at Philips ISP Flash utility.What is wrong?As second, I am trying IAR EWARM trial version and Keil evaluation version.How can I create final hex files in IAR EVARM,Keil and Crossworks?Best Regards... |
|
LPC2106 Programming - ISP and hex file
Started by ●February 20, 2004
Reply by ●February 20, 20042004-02-20
----- Original Message ----- From: "gokbektas" <> To: <> Sent: Friday, February 20, 2004 7:48 PM Subject: [lpc2000] LPC2106 Programming - ISP and hex file > I connected my board to PC using UART0, bootloader > enable pin pulled down using jumper,I run Philips ISP utility, > Read Device ID reads Part ID:4293984050, BootLoader ID:1.3Is > this correct?I select leddisp.hex and click Upload to Flash > button, it fails...Erase function does not work also. Blank > Check returns chip is blank. I tried 9600 and > 19200 baud, there is 10MHz crystal at the board and Ientered > 10000kHz at Philips ISP Flash utility.What is > wrong? If you can read the device ID, the bootloader should work, in my experience. The only thing I can think of that might be causing the problem is that the supply to the chip is marginal - programming takes a lot more current than just reading the ID and the voltage might be dropping when programming starts. Try monitoring the voltages when you start programming, you might find something going wrong. I've had this problem sometimes when using battery power with the LPC210x and the Atmel AVR. As second, I am trying IAR EWARM trial > version and Keil evaluation version.How can I create final hex > files in IAR EVARM,Keil and Crossworks? Best > Regards... From CrossWorks you select Project>Properties. Click on the project name in the Project window and then select the Linker tab. Change the Additional Output Format to 'hex' and then click on 'OK'. When you next build the project you should get a hex output file. Leon -- Leon Heller, G1HSM Email: My low-cost Philips LPC210x ARM development system: http://webspace.webring.com/people/jl/leon_heller//lpc2104.html |
|
Reply by ●February 21, 20042004-02-21
Now I can program the chip,
I compile LED example of crossworks and make hex file like you
said.
I see different voltages at the pins of LPC. 2.57V, 3V, 3.V
etc
I also tried UART example for 210x of Crossworks, it seem it does
not
send bytes to PC.
I suppose I can program the chip (I can do it only 19200baud in ISP,
9600 did not work)
with ISP (no error messages appear) but I can not make it work.
After programming, I push the reset button and remove bootloader
jumper to make it work...
Any opinion?
|
|
Reply by ●February 21, 20042004-02-21
You wrote:
> After programming, I push the reset button and remove bootloader
jumper to make it work...
Not reverse direction ? I always change the boot loader switch (i have a
switch instead of a jumper) and then press reset. Otherwise i think you are
again in bootloader ???
Regards,
Martin
|
Reply by ●February 21, 20042004-02-21
----- Original Message ----- From: "gokbektas" <> To: <> Sent: Saturday, February 21, 2004 8:30 AM Subject: Ynt: Re: [lpc2000] LPC2106 Programming - ISP and hex file > Now I can program the chip, > I compile LED example of crossworks and make hex file like you said. > I see different voltages at the pins of LPC. 2.57V, 3V, 3.V etc > I also tried UART example for 210x of Crossworks, it seem it does not > send bytes to PC. > > I suppose I can program the chip (I can do it only 19200baud in ISP, 9600 did not work) > with ISP (no error messages appear) but I can not make it work. > After programming, I push the reset button and remove bootloader jumper to make it work... I just tried the UART example, loading it via both the JTAG and Philips ISP utility. Both worked OK. What terminal emulator are you using? Are you getting any output at all (garbage)? Leon |
Reply by ●February 21, 20042004-02-21
----- Original Message ----- From: "Leon Heller" <> To: <> Sent: Saturday, February 21, 2004 9:22 AM Subject: Re: Re: [lpc2000] LPC2106 Programming - ISP and hex file > > ----- Original Message ----- > From: "gokbektas" <> > To: <> > Sent: Saturday, February 21, 2004 8:30 AM > Subject: Ynt: Re: [lpc2000] LPC2106 Programming - ISP and hex file > > Now I can program the chip, > > I compile LED example of crossworks and make hex file like you said. > > I see different voltages at the pins of LPC. 2.57V, 3V, 3.V etc > > I also tried UART example for 210x of Crossworks, it seem it does not > > send bytes to PC. > > > > I suppose I can program the chip (I can do it only 19200baud in ISP, 9600 > did not work) > > with ISP (no error messages appear) but I can not make it work. > > After programming, I push the reset button and remove bootloader jumper to > make it work... > > I just tried the UART example, loading it via both the JTAG and Philips ISP > utility. Both worked OK. What terminal emulator are you using? Are you > getting any output at all (garbage)? Did you remove the jumper which enables the bootloader? You need to disable the bootloader and reset to run the program. I sometimes forget to do that and wonder why the program doesn't work. 8-) Leon |
Reply by ●February 21, 20042004-02-21
-I programmed chip with Philips ISP
-Then closed ISP program
-Opened terminal window in crossworks
-Selected com port and baud rate
-Opened com port in terminal window
-Then removed the bootloader jumper
-Pressed reset button...
there is nothing... may be I should check soldering of the chip again
(I did it myself)
Could anyone send me a tested hex file for testing uart or pins
@ 10MHz for LPC2106?
|
Reply by ●February 21, 20042004-02-21
----- Original Message ----- From: "gokbektas" <> To: <> Sent: Saturday, February 21, 2004 9:33 AM Subject: Re: [lpc2000] LPC2106 Programming - ISP and hex file > -I programmed chip with Philips ISP > -Then closed ISP program > -Opened terminal window in crossworks > -Selected com port and baud rate > -Opened com port in terminal window > -Then removed the bootloader jumper > -Pressed reset button... > > there is nothing... may be I should check soldering of the chip again (I did it myself) > > Could anyone send me a tested hex file for testing uart or pins @ 10MHz for LPC2106? I sent the hex file I used. I checked with the CrossWorks terminal utility (I was using RealTerm) and it worked OK with that. Leon |
Reply by ●February 21, 20042004-02-21
Thanks leon,
I tried the hex file that you sent me.
I read 4293984050 part ID and 1.3 bootloader ID, when I click Upload
to Flash, it
does not give any error messages, a progress bar shows it is
uploading.
When I click Compere Flash, a progress bar shows it is reading but
"File compare Fail"
message appears at the end.
And there is no data coming from chip when I check it with terminal
window...
?
|
Reply by ●February 21, 20042004-02-21
----- Original Message ----- From: "gokbektas" <> To: <> Sent: Saturday, February 21, 2004 10:18 AM Subject: Ynt: Re: [lpc2000] LPC2106 Programming - ISP and hex file > Thanks leon, > I tried the hex file that you sent me. > > I read 4293984050 part ID and 1.3 bootloader ID, when I click Upload to Flash, it > does not give any error messages, a progress bar shows it is uploading. > > When I click Compere Flash, a progress bar shows it is reading but "File compare Fail" > message appears at the end. > > And there is no data coming from chip when I check it with terminal window... It looks like you have a problem with the flash memory. I'd replace the chip, or try another board if you have one. I'm actually using a '2104, but it shouldn't make any difference. Regards, Leon |