Hi, I am using this board:
http://www.sparkfun.com/commerce/produc … cts_id=676
I read somewhere that I should pull pin 0.14 low to stay in the bootloader. This seems to prevent my code from running, and I verified with the debugger that it is indeed in the bootloader.
When I issued the command:
lpc21isp -h -p -s/dev/ttyS0 -fserial.hex -x12000
It simply hangs and never loads anything. I know /dev/ttyS0 is attached correctly since I have loaded code over jtag and seen output over the uart.
I also tried lpc_prog:
lpc_prog -d /dev/ttyS0 -w -r serial.srec
What am I doing wrong? Is it possible I corrupted the bootloader?
't mind using a different/better bootloader, but I haven’t found anything.
Thanks.
I think it’s unlikely that you corrupted the bootloader.
Did you detach the debugger before trying to program?
What bit rate are you currently using for programming?
With a 12 MHz crystal I cannot get a reliable connection with the bootloader for bit rate above 38400.
Hi, the baud rate was the problem. I was trying to use 115200. I figured it would work fine, but I guess it makes sense if the bootloader doesn’t use the PLL.
So, I really want to bootload over usb, do I have to install a special bootloader for this? Anyone know of one?
Thanks
geckosenator:
So, I really want to bootload over usb, do I have to install a special bootloader for this? Anyone know of one?
There is another source for LPC214x USB bootloader available at:
http://www.tnkernel.com/usb_fw_upgrader.html
The USB Firmware Upgrader is a standalone program for the Philips LPC214x microcontroller,
which allows to download the firmware (an application program) to the microcontroller’s flash using an USB.
This is very useable for the field/customer future firmware upgrades.
Hi, thanks for the link, but the programmer is windows only binary with no source, and the bootloader makefiles have syntax errors.
Do you know of any other usb bootloaders?
Thanks.