I have quite a few years of experience with 8 and 16bit microcontrollers and very little expereince with assembly for ARM, however this is the first time I am setting up an opensource development environment for ARM. I have already ordered the LPC2138 and Olimex JTAG/USB/OCD programmer, see links below for more information.
I initially began with the guide “ARM_Cross_Development_With_Eclipse_Components_Revision3_March_17_2006” by James Lynch however I have recently decided to use OpenOCD and as a result I have switched to using the guide “Using Open Source Tools for AT91SAM7S Cross Development revision C” by James Lynch. All software is the latest version availible from the respective links within the document + I have installed the LPC2000 flash utility.
Now I am still waiting on my hardware to be delivered but in the meantime I have some questions.
I want to initially start off with the LPC board described above. However I cannot seem to find a specific configuration file for the LPC2138. Is there a generic LPC configuration file or can I somehow modify the at91sam7s256-armusbocd.cfg so I can use it with the LPC? After perusing this forum I came across lpc2148_armusbocd.cfg however when I compare the contents to the at91sam7s256 file there seem to be significant differences. Can someone provide me with a tested .cfg file for the LPC2138 and additionally point me towards some documentation that further describes how to write the configuration file for other devices.
Thanks for the link but I already had a look through the page. I also had a look at http://openfacts.berlios.de/index-en.ph … figuration and it explained whats happening in the file. It also seems like I can’t use run_and_init in the config file for the LPC2000 series chips. What should I be using here?
I still need a proper .cfg file written and tested for LPC2138though. Can anyone help with this?
I did get the latest (r657) OpenOCD from your page. I didn’t see the PDF earlier but I have it now and I’ll read it in a few minutes.
I have been following the document “Using Open Source Tools for AT91SAM7S Cross Development revision C” and it seems to now be out of date since the version of Eclipse and OpenOCD have come a long way since it was written. There are a few things that might throw people setting up the toolchain for the first time.
For instance the instructions on Page 76 for the section titled “Creating an eclipse project” are hard to follow since Eclipse menus have changed and there is no “Standard Make C Project” listed any longer.
I also had to enter the compiler root path into eclipse “C:\Program Files\yagarto\arm-elf”.
It now appears that I have eclipse fixed up so it compiles the example code for the AT91 however I will change the required files and try to compile for the LPC in a while and let you know how that goes.
I had a read through the LPC2148 files that I found in the three folders you mentioned. I’ll try to use the same thing for the LPC2138 and see how that goes. Do you know off hand if I have to make any changes with regard to addresses etc for flash programming?