When programming and running code from the external flash, it's particularly important to make sure so you have the Boo T pins P2_9, P2_8, P1_2, and p1_1 is correctly connected so this MCU starts execution from the correct memory address . For more details, please see the NXP documentation.
If The boot pins is incorrectly set, then this would typically result in the initial default breakpoint set by the Debugge R on Main () is not been reached. You can confirm if this is the case by clicking on suspend icon to pause execution (when your fail to hits the initial break Point) and then looking at the address of the PC. If you built for Spifi and then the address of the PC should is 0x14xx xxxx, whereas if you built for EMC (SST), the n the address of the PC should be0x1cxx xxxx.
BOOT Pins Example (Hitex lpc1850/4350 board)
For example, for the Hitex lpc1850/4350 board, you need to the BOOT jumpers configued as follows:
For Spifi Flash
- BOOT1 connected across pins 1 and 2
- BOOT2, BOOT3, BOOT4 connected across pins 2 and 3
For EMC SST Flash
- BOOT1, BOOT2 connected across pins 1 and 2
- BOOT3, BOOT4 connected across pins 2 and 3
Note:
A power on reset was definitely required after changing the BOOT pin settings.
LPC1800 and LPC4300 Boot