X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/4ab6281664b86264408b661038c050d0d5932fd7..393c3ef933553e628635590ca2b8237d07e9e0e3:/bootrom/bootrom.c diff --git a/bootrom/bootrom.c b/bootrom/bootrom.c index 83794d9f..c0522dfa 100644 --- a/bootrom/bootrom.c +++ b/bootrom/bootrom.c @@ -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 ) );