]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Automatically enter bootrom when OS image doesn't appear to be proper
authorhenryk@ploetzli.ch <henryk@ploetzli.ch@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 16 Jan 2010 06:10:04 +0000 (06:10 +0000)
committerhenryk@ploetzli.ch <henryk@ploetzli.ch@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 16 Jan 2010 06:10:04 +0000 (06:10 +0000)
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