r // // Write BOOTCFG value to FMD register // We set the BOOTCFG to reset values expect of DBG1 // w4 0x400FD004 0xFFFFFFFC // // FMA: Write BOOTCFG register value to the address register // w4 0x400FD000 75100000 // // FMC: Write key + trigger programming // w4 0x400FD008 0xA4420008 // // Set bits [5] and [9] of the FLASH_CR: OPTER (Option Byte Erase), OPTWRE (Option Bytes Write Enable) // sleep 20