Greetings.
I'm trying to find some genious data to fill into the unused FLASH spac in my project, so that a stray program counter would get caught and m system would reset. I'm thinking one of multiple solutions:
:o) Loop to current position and get caught by the watchdog
:o) Jump to reset vector
:o) An illegal opcode, that will generate an interrupt
:o) A software interrupt instruction
One problem with most of the solutions is that I'm using ARM and THUM instructions. A THUMB jump to the reset vector might mean something else i ARM. The best solution would be to find some data that is illegal in bot ARM and THUMB. If for instance 0xDEAD is illegal for THUMB, and 0xDEADDEA is illegal for ARM, them my problem would be solved.
Does anybody have a suggestion?
Best regards Michael