Data to fill into unused program space on ARM7.
- From: "DanishGuy" <mij@xxxxxxxxx>
- Date: Fri, 30 May 2008 05:33:05 -0500
Greetings.
I'm trying to find some genious data to fill into the unused FLASH space
in my project, so that a stray program counter would get caught and my
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 THUMB
instructions. A THUMB jump to the reset vector might mean something else in
ARM. The best solution would be to find some data that is illegal in both
ARM and THUMB. If for instance 0xDEAD is illegal for THUMB, and 0xDEADDEAD
is illegal for ARM, them my problem would be solved.
Does anybody have a suggestion?
Best regards
Michael
.
- Follow-Ups:
- Re: Data to fill into unused program space on ARM7.
- From: Boudewijn Dijkstra
- Re: Data to fill into unused program space on ARM7.
- From: Wim Lewis
- Re: Data to fill into unused program space on ARM7.
- From: Meindert Sprang
- Re: Data to fill into unused program space on ARM7.
- Prev by Date: Re: Wiring LCD to Futurlec AVR Starter Board
- Next by Date: Newbie question: the essence of embedded world!!!
- Previous by thread: Re: Wiring LCD to Futurlec AVR Starter Board
- Next by thread: Re: Data to fill into unused program space on ARM7.
- Index(es):
Relevant Pages
|