Content originally posted in LPCWare by CodeRedSupport on Mon Aug 23 23:57:33 MST 2010
Few things here:
1. What Hard Fault are you getting? If you look a the Core Registers Windows, immediately after the Hard fault, some pseudo-registers will be created (colored red) which will show the reason for the fault, and the CFSR. What do these show?
2. If it is faulting immediately, I would suggest that the stack may not be set up. The stack is address zero and the Reset vector is at address 4.
3. Are you using your own startup code, and linker script, or are you using the generated versions?
- If you are using your own, can you post them?
- If you are using the generated version, have you got the chip type set to LPC1754? If (for example) you are still using LPC1768 code, then the stack will be ointing to non-existing memory.