1 .section .entry 2 3 LDR SP, =MEMBASEADDR 4 BL check_compat 5 6 // Turn OFF SD Card power 7 // to support autostart 8 LDR R3, =0xC0220018 9 MOV R2, #0x44 10 STR R2, [R3] 11 12 // looks like idle cycle is required for proper shutdown 13 MOV R3, #0xF0000 // increased from 8000 to F0000 for extra delay for sx200 maybe could be 10000 ? 14 1: 15 SUB R3, R3, #1 16 CMP R3, #0 17 BNE 1b 18 19 // ordinary startup... 20 21 MOV SP, #0x1900 22 MOV R11, #0 23 B my_restart