Content originally posted in LPCWare by JohnR on Thu May 02 17:56:09 MST 2013
Hi,
Thank you both for your helpful replies.
The Release version of the code is now finally working from flash memory, whereas earlier it would work only in RAM. Initially, the flash versions were loaded as Debug and would run OK but only when the debugger was connected, which, on connecting, took the system out of the HardFault_Handler. The other projects on my system, compiled similarly, ran normally from flash in both Debug and Release modes.
The project is set up with the "no-host" option.
Today, I recompiled for Release mode, reloaded the flash and everything now works as it should, with or without the debugger connected.
In the disassembly files of all of the other projects in my system thatI looked at, the ResetISR follows immediately after the .bss section. In the present project this is not the case, but this does not seem to have been the cause of my apparent problems. I am still curious as to why the ResetISR code was not placed after the .bss, so any thoughts or references would be welcome.
Thank you both again.
JohnR.
[B]
[SIZE=2]
[/SIZE]
[/B]