Content originally posted in LPCWare by dsidlauskas on Thu Jun 19 12:47:25 MST 2014
I have a project that puts all code in Flash Bank A, so that Bank A has a valid code signature. I have a constant data structure located at the beginning of BANK B. When I inadvertently set the first 8 words of this structure to 0, the program stopped loading correctly at startup.
Fig. 10 and Section 4.3.1 of the LPC1857 manual states the if Bank A contains a valid signature, then Bank A will be taken as the boot loader image regardless of the signature in Bank B. My experience suggests that this is not the case.
I'm using Keil Uv4. When the first 8 words in bank B are 0, the debugger starts with the PC and SP at zero. When they're non-zero the PC and SP are set correctly to run the code in Bank A.
Does anyone have any comments on what's going on?
Thanks,
Dave