Content originally posted in LPCWare by scs on Wed Jan 25 12:06:03 MST 2012
The LPC17XX IAP built-in flash programming functions use 32 bytes in the "top portion of the on-chip RAM". But it is not clear which RAM, the normal RamLoc32 or the less used RamAHB32 second bank of RAM.
If IAP uses the normal RamLoc32, then I should probably reserve 32 decimal bytes at the top of RAM in the CodeRed IDE, changing the MPU Linker Target "Stack offset" from 0 to 32. But if IAP uses RamAHB32 then Stack offset 0 would be ok.
Does anyone know whether "Stack offset" 32 is recommended when my code uses IAP functions?