User manual

LPC3250 Developer’s Kit v2 - User’s Guide
Page 50
Copyright 2013 © Embedded Artists AB
5.3.1 Compile Using CodeSourcery
This section describes how you compile an application using the CodeSourcery GNU tools. Please
note that there is no guarantee that all applications provided by Embedded Artists will be able to
compile using CodeSourcery GNU since the main tool is Keil’s uVision.
1. Download the CodeSourcey Tools from www.codesourcery.com. The tool is called Sourcery
CodeBench and there is a Lite Edition available for free after a registration. Select the
version for ARM processors and with the EABI target OS.
2. Download the sample applications from Embedded Artists support site and unzip the file.
3. Start a command prompt (Start button run cmd)
4. Change to the software directory in the recently unzipped file.
5. Run setenv ea3250 gnu.
6. Change directory to the sample application you would like to compile, for example,
software/csps/lpc32xx/bsps/ea3250/examples/timer
7. Run make to compile the sample application.
8. A .bin file as well as a .srec file will be generated that can be used for booting.
5.3.2 Compile Using Keil’s uVision
This section describes how you can compile an application using Keil’s uVision.
1. You must have Keil’s uVision installed on your computer. An evaluation version can be
downloaded from www.keil.com.
2. Download the sample applications from Embedded Artists support site and unzip the file.
3. The sample applications contain Keil project files. Double click on the file with extension
uvproj and the Keil uVision tool will be started.
4. Press the F7 key or go to the Project menu and select Build Target.
5. If you have a USB-JTAG adapter connected between the LPC3250 OEM Board and your
computer you can directly download the application to internal RAM of the LPC3250. You do
this by pressing CTRL+F5 keys or by going to the Debug menu and selecting the Start/Stop
Debug Session alternative.
6. If you don’t have a USB-JTAG adapter you can program the board with the generated bin file.
5.4 Booting
The processor will start its code execution from an internal ROM, containing the boot code. This boot
loader can load code from one of four external sources to internal RAM (IRAM) at address 0x0.
- UART5
- SSP0 (in SPI mode)
- EMC Static CS0 memory
- NAND FLASH
The boot loader loads code as a single contiguous block at a maximum size of 56 kByte. Programs
larger than this size must be loaded in more steps, for example, by a secondary boot loader.
The LPC3250 User’s Manual from NXP (chapter 35) contains all details about booting. The rest of this
section gives an overview of what is supported by the LPC3250 OEM Board and OEM Base Board,
and how to quickly get started with the download process.