The fastest way to get started is with one of the quick start kits from IAR or Keil. See LPCTools.com. These complete kits of hardware and demo compilers, JTAG units are $200-300... That will give you a working code base that you can compile, download, test and modify. The only restriction is you cannot compile programs larger than 32K. These are really quite big for most embedded work, so you may not need to buy the complete compiler for LPC based products. (My experience is ARM/Thumb code is about the same size as 8051 code, if that helps you in sizing the problem). I like the IAR tool set. They have several tiers of products. The $2000 product is plenty for LPC. (I have the full product). Keil actually has two compilers: their own and a front end for GNU. While GNU is priced well, I like the GUI offered by IAR and Keil - I think the IDE saves time (and I used to be a command line advocate). If you want to end up in GNU, you might buy one of the Keil development kits. Buy the quickstart kit of choice. Play with it seriously for a week, then start thinking about the real design and environment. I tried (and did) learn ARM starting with GNU and a development board based on ARM tools. The learning curve was steep and long, even though I have many years experience in embedded products. Dan _____ From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com] On Behalf Of nic@... Sent: Sunday, September 11, 2005 2:39 AM To: lpc2000@yahoogroups.com Subject: [lpc2000] Trouble with LPC2148 (first project) 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 _____ YAHOO! GROUPS LINKS * Visit your group "lpc2000 <http://groups.yahoo.com/group/lpc2000> " on the web. * To unsubscribe from this group, send an email to: lpc2000-unsubscribe@yahoogroups.com <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . _____ [Non-text portions of this message have been removed]
Message
RE: [lpc2000] Trouble with LPC2148 (first project)
2005-09-11 by Dan Beadle
Attachments
- No local attachments were found for this message.