1 This simple code can be used to test the startup delay, or more precisely
2 the delay between the moment that reset is deasserted and code execution
5 GPIO pin 2.1 is set to output and high as soon as main is entered, so you
6 simply need to monitor the reset line and GPIO 2.1 on a two-channel
7 oscilliloscope, and measure the delay between the two rising edges.
9 Two sample tests results are showing for GCC with a Makefile and with
10 Crossworks for ARM. Both examples are included since the startup code
11 for both project types is slightly different, with Crossworks using a
12 custom startup file provided by Rowley Associates, and the LPC1343
13 Code Base using it's own startup code when compiling with make and GCC.
15 Note: This code is only useful for measuring the time coming out of
16 reset, not from a cold boot (applying power to an unpowered device).