mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Automatically enter bootrom when OS image doesn't appear to be proper
This commit is contained in:
parent
044a375b95
commit
4fdefea801
1 changed files with 2 additions and 0 deletions
|
@ -297,6 +297,8 @@ void BootROM(void)
|
|||
flash_mode(1);
|
||||
} else if(BUTTON_PRESS()) {
|
||||
flash_mode(0);
|
||||
} else if(*(uint32_t*)&_osimage_entry == 0xffffffffU) {
|
||||
flash_mode(1);
|
||||
} else {
|
||||
// jump to Flash address of the osimage entry point (LSBit set for thumb mode)
|
||||
asm("bx %0\n" : : "r" ( ((int)&_osimage_entry) | 0x1 ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue