i am using a SAMC20 (Cortex-M0+) with Keil 5.23 IDE and P&E multilink universal Fx debugger.
my progrram triggers a hard fault handler once every few runs (aprox 3-4 runs, somtimes more).
i have tried to investigate the reason for the hard fault, using guides line these:
from what i can see, when i stop the debugger with a breakpoint in the hardFault handler, i see this pictures attached.
from what i understand, the problem occured in SP+0x20 = 0x20007FC0
a memory watch is attached showong that address.
in that line the address of the last command issued by the program is 0x3299 (did i do a mistake here?)
when i go to that address in my code, i see no address like that. (picture attached)
am i missing anything?
can the problem be that something in my programm (while running) made PC be misalligned somehow?
any help investigating the problem would be much appreciated.