Dear lpc2000@yahoogroups.com, I would like to use the LPC2148 for a C project, but I can't get any program to run on the processor. This is my first time using the ARM microcontrollers. I am using the GNUARM toolchain with GCC to write and compile code and the Philips LPC2000 Flash Utility v2.2.2 to upload the hex files to the flash. I am using the IAR KS2148 Kickstart Kit for LPC214x (w/ LPC2148) hardware (made by Olimex). I have uploaded many different hex files to the processor. Some hex files I have downloaded from the internet "Compare Flash" OK after uploading, but hex files I have compiled do not. I think this is because the local copy has a NOP at address 0x14 and the flash copy has a checksum generated by the flash utility at this address. I have followed the "ARM Cross Development with Eclipse" PDF tutorial by Jim Lynch which includes an example program using the GNUARM toolchain and GCC for LPC2106. I made some modifications and tried to use the example for LPC2148 (specifically, I used an lpc214x.h header file from a Keil example, changed the IODIR, IOSET, IOCLR instructions to IODIR0, IOSET0, IOCLR0 and increased the flash size in the linker script). Everything compiles and uploads as I would expect, but the program does not run when I take BSL high and reset the processor. Does anyone know where I can find some example C code for LPC2148 with header file, startup assembly file, and GNU makefile and linker script? Failing this, does anyone know where I can find an example hex file to test that the board and the Philips LPC2000 Flash Utility are working OK? Kind regards, Nic
Message
Trouble with LPC2148 (first project)
2005-09-11 by nic@weartronics.com
Attachments
- No local attachments were found for this message.