Hi,
As you have a real-Ice I suggest you set a data breakpoint on a write of a specific value in RAM.
Maybe you can try to set a breakpoint when the word 0xFA52 gets written into the memory 28D6.
If I assume that this value is only (incorrectly written) when the faulty condition happens, the program will stop and show you which assembly instruction generated the issue ant therefore through the disassembly listing you can see the C source code line.
Regards
As you have a real-Ice I suggest you set a data breakpoint on a write of a specific value in RAM.
Maybe you can try to set a breakpoint when the word 0xFA52 gets written into the memory 28D6.
If I assume that this value is only (incorrectly written) when the faulty condition happens, the program will stop and show you which assembly instruction generated the issue ant therefore through the disassembly listing you can see the C source code line.
Regards