My First Project
Enough of playing around! Time to see if I can create my own project:
In the menu, Project then New Project seems to be a good place to start.
The interesting thing here is that I am now being asked what MCU I am going to use. This looks like I am using the Device Database again. Selecting LPC2148 asks me if I want to copy the startup code into the project. Sure! I don’t want to have to spend hours going through the data sheet just to write a whole lot of runic startup assembler code to get going.
Actually, the startup code that gets imported into the project doesn’t look too runic. It’s nicely written. But there are over 400 lines of it! (Glad I didn’t have to write that.)
So, I have chosen the LPC2148, but what does that actually mean? Clicking through Project then Options for Target, takes me to a dialog which tells me that my choice has set up the memory map of the LPC for the simulator and linker, set a default clock rate, and configured the tools to build a debug image for the simulator.
The best bit for me is the automatic generation of the scatter file for the linker. “What’s a scatter file?,” you may ask. It’s a text file that contains a description of where you want the linker to place code, constants, data and zero initialized data in the memory map of you application. Easy enough to understand I suppose, but not something I really want to mess around with at this stage. Having the Device Database create the scatter file for me is great! On this part internal ROM is at 0x0… 0x80000 and internal RAM is at 0x40000000… 0x40008000.


