关键点在这里
// Write '0x00 00 00 00' to any word inside the block to be erased using a "LOAD" instruction.!!!!
// so, must to prevent the compiler generator the clr instruction!
//count = 0;
//*(pDst + 0) = *(&count);
//*(pDst + 1) = *(&count);
//*(pDst + 2) = *(&count);
//*(pDst + 3) = *(&count);
*((uint32 *)pDst) = 0x00000000; |