Content originally posted in LPCWare by efiLabs on Wed Jan 07 01:53:25 MST 2015
friends at NXP :
unless i make a mistake, either the manual is wrong or my copy is outdated
UM10736 page 570 states
quote : Define the IAP location entry point. Since the 0th bit of the IAP location is set there will be
a change to Thumb instruction set when the program counter branches to this address.
#define IAP_LOCATION 0x0300 0200
0x0300 0200 does not have the 0th bit set, otherwise it would be 0x0300 0201. and the addr seems wrong
quote : #define IAP_LOCATION 0x0300 0204
0x0300 0204 also does not have the 0th bit set, otherwise it would be 0x0300 0205 <-- which happens to be the correct value, at least my code works now
cheers efiLabs