Content originally posted in LPCWare by CodeRedSupport on Fri May 03 15:08:17 MST 2013
Quote: jcottier
If I flash the compiled program to SPIF using the the "Flash" utility, it resets and runs fine from location 0x14000000. But if I try to use "Debug" then it tries to load and run from 0x1a000000 ! I have the correct memory config and driver loaded for SPIFI booting.
I thought Eclipse (5.2.2) handled this automatically. Am I doing something wrong or missing something?
It sounds like you have a valid image (one which could boot the board) in Bank A (and possibly Bank B) of internal flash. If so, for the time being, you'll either need to remove it, or remove the memory definition in the Memory Configuration Editor. The debug utility is searching the flash memory regions it's been told about, and it must have decided the Bank A partition can be booted.
Regards,
CodeRedSupport
Edit: I can load your image to SPIFI flash (@0x14000000) on an MCB4357, but the application doesn't execute (hard fault of some kind). This sounds like the same behavior you see. Not only that, the supplied image disturbs the debug operation of the part, so there's a serious problem here. Based on the memory description you provided, it seems the defined memory is for a LPC43x0 part, not an LPC4357. The problem could be a result of an invalid reset stack pointer.
My question is can you build and debug one of the supplied demo programs for your processor type? If so, then I suspect a project configuration issue. You'll need to supply the project, and debug configurations in use. In the meantime, perhaps you can fill in a few details of the exact processor and board configuration (including boot pin settings).