Sie sind auf Seite 1von 8

Using the LPC2148 Board – by AH

It takes a +9V DC adapter. You can connect an RS232 connector (DB9) to the
RS232_0/ICSP port, and start up HyperTerminal with the settings as shown in Figure 1.
Upon power up (out of the box) you hear a little beep and see the output shown below.

Figure 1: Settings for HyperTerminal. Showing 4 resets, the last 3 resets I put an SD card in

Figure 1 shows that on the 1st reset I did not have an SD card in. The following 3 resets I
did. This causes the the two LEDs (LED1, LED2) to blink periodically after boot up .

Using Philips LPC2000 Flash Utility V2.2.3

Figure 2: Both switches must be ON to use the Philips LPC2000 Flash Utility
Figure 3: These are the settings I use to connect to my board

Figure 4: Pressing *Read Device ID” brings up this message. Make sure RS232 is connected

Figure 5: You will notice no “beep” on this reboot. The LPC2000 Flash Utility has loaded
Figure 6: It is good to backup the code that comes pre-loaded. Press *Download Flash*
Figure 7: This is the output after a successful download

Using Trace32 by Lauterbach


It does not matter the switch locations of ICSP, but the jumper DBG_E must be on. Also
some settings must be changed as shown in Figure 8.
Figure 8: Trace32 Settings – All default except JtagClock = 1.0MHz and ResBreak = OFF

After making the changes in Figure 8, type area followed by diag 3400. This will display
the results shown in Figure 9.

Figure 9: JTAG scan analysis, should have Instruction Register width of 4, Data Register width of 1

Additionally, the command * system.option.NOIRCHECK on * must also be entered.


This is because currently (as of Feb/2006), Trace32 is not detecting the CPU ID correctly.
Failure to enter this command will lead to the error message

Krishna’s Board
system.option.noircheck on
system.option.resbreak off
system.option.trst on
system.option.waitreset on

system.jtagclock 1.0mhz
sys.u
cd C:\Programming\ARM7\2103\Demo2103_03_ButtonPress
d.load main.elf /nocode
y.spath.SETDIR C:\Programming\ARM7\2103\Demo2103_03_ButtonPress

To create an assembly file from your C code, do this


Techincally you should have this in your C file to declare it.
extern int myfunct(int a, int b);

Your make file needs this below to make the object file
arm-elf-as -ahls -mapcs-32 -o myfunct.o myfunct.s > myfunct.lst

arm-elf-ld -v -Map main.map -Tlpc2103_flash.cmd -o main.out crt.o myfunct.o main.o

Das könnte Ihnen auch gefallen