]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - bootrom/bootrom.c
Automatically enter bootrom when OS image doesn't appear to be proper
[proxmark3-svn] / bootrom / bootrom.c
index 83794d9f8c65fb1163f683bf99b24f7c104afc3c..c0522dfad66bd89023a4256ca3cfe4a100df659a 100644 (file)
@@ -297,6 +297,8 @@ void BootROM(void)
            flash_mode(1);\r
     } else if(BUTTON_PRESS()) {\r
            flash_mode(0);\r
+    } else if(*(uint32_t*)&_osimage_entry == 0xffffffffU) {\r
+           flash_mode(1);\r
     } else {\r
            // jump to Flash address of the osimage entry point (LSBit set for thumb mode)\r
            asm("bx %0\n" : : "r" ( ((int)&_osimage_entry) | 0x1 ) );\r
Impressum, Datenschutz