Content originally posted in LPCWare by CodeRedSupport on Wed Dec 08 02:24:55 MST 2010
So 0x0d010001 sounds more likely to be 0x100010d0 which is in the LPC1114 RAM. However I would not expect a const array to be placed in RAM at all - I would expect it to be placed into the flash, regardless of whether it is declared as local or global.
But 0x0d010001 is in a reserved block of the memory map - and probably would cause a hard fault if accessed. However I don't see how, using default project settings, you would end up with data being placed at this address.
What value do you actually see in r3 before you execute the LDRB instruction?
How have you created the project - is this a standard LPC1114 project created with the LPCXPresso project wizard (and using the standard autogenerated linker script) - or is this something different.
As domen, says, we really need to see some actual code here- and preferably a buildable example.
Regards,
CodeRedSupport