device apm32f407vg if 1 speed 1000 con sleep 100 w4 0x40023C04 0x45670123 // Unlock flash control register w4 0x40023C04 0xCDEF89AB w4 0x40023C08 0x08192A3B // Unlock option byte control register W4 0x40023C08 0x4C5D6E7F w4 0x40023C14 0x0FFFBBEC // Set option bytes to default, except read-protection level 1 w4 0x40023C14 0x0FFFBBEE // Start option byte write sleep 1500 // It is not possible to check the Status register in a commander file, therefore we sleep 1500 // just wait here a fixed amount of time w4 0x40023C14 0x0FFFBBED // Re-Lock option bytes w4 0x40023C10 0x80000000 // Re-Lock flash sleep 1500 // It is not possible to check the Status register in a commander file, therefore we sleep 1500 // just wait here a fixed amount of time q