Storing Stackframe in Hardfault for STM32F7 only works with debugger connected
Hello,
I want to store the stack frame when an exception happens into a no-init section of SRAM to analyse exceptions.
So I wrote a Hardfault handler to do this.
I did the same for STM32F429 controller and it worked just fine but on STM32F756 it only works when I have my debugger connected. If it's not connected the handler doesn't store the data to the section.
I tried to turn off optimization, disable the DCache and tried various ways to store it (with memcpy or via pointer) but all didn't help.
The Hardfault_Handler assembly is derived from this site: Cortex-M Fault - SEGGER Wiki
I do a branch jump to my Hardfault_Handler_C routine. File is attached.
What do I miss here?
Thanks in advance!
