Hardware manual
Flash Programming
14 © PHYTEC America LLC 2009 L-718e_2
4.2 Breakpoint Example
The GettingStarted demo is configured for button BTN1 to change the blinking speed while button
BTN2 will change the pattern. BTN1 is physically connected to GPI_3 and BTN2 is physically
connected to GPI_2. The LPC3250 interrupt controller is configured to respond to GPI_3 and GPI_2.
The interrupt controller will not respond to BTN1 or BTN2 if the interrupt controller is configured
improperly. In the following example we will change the interrupt controller to respond to GPI_4 rather
than GPI_3 and with the use of a break-point demonstrate that the interrupt handler will not execute
when BTN1 is toggled.
1. From the Embedded Workspace Configuration drop-down menu select the Debug xRAM
configuration as shown below:
2. Start the debugger and download the code by selecting the Download and Debug button from
the IDE toolbar
.
3. Execute the code by selecting the Go button from the debug toolbar
.
Successful execution of the program will alternately flash LED1 and LED2 (D15 and D18) on the
phyCORE
Carrier Board.
4. Press the BTN1 button on the phyCORE
Carrier Board and notice the blinking speed will
change.
5. Stop the code execution by selecting the Break button from the debug toolbar
.
6. From the Project Workspace open the main.c file.