Help program a LPC H2148

Started by eriksson25, May 17, 2011, 08:56:15 AM

Previous topic - Next topic

eriksson25

Hi, I despratly need some help. I have a H2148 that was programed with a hex. But stoped working so I was thinking that I shuld reflash it. Now I cant get it to flash, just erase.

I use a FT232R to program it. I can get it to read the device signature. But when clicking programing I just gets (failed to send data to the device)

My settings in flashmagic.

Device:LPC2148
Com port: com 7
Baud Rate: 9600
Interface: None (ISP)
oscillator: 16000
(Erase all flash +code Rd Prot)

High speed communication is not checked. (gives me error on auto baud)
Half duplex not checked.

I have tried everything I can think of. How can I confirm that its in ISP mode? since it is now erased, when I plug the usb cable to the programmer my board starts with a red light. And I am even able to read device signature when I dont start it with the jumper cable connected.

Any help and I am thankful, I have been strugeling with this for days.

Andy Ayre

If the device was fully erased then it should reset into ISP mode.

My guess is that you are using a USB to RS232 cable and it might be causing communication issues. Try a different cable from a different manufacturer, or better still a PC with a built in COM port.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

eriksson25

Hi, thanks for your thoughts, I wasent using a cable, but a usb programmer.

Well I managed to get it working, changed the baudrate:38400 and oscillator:12

Thanks anyhow =)