Abstract:
Traditional flash writing typically involves writing the actual fault address at a fixed location in the microcontroller"s flash memory. This leads to repeated writes at the same spot, which may damage the flash structure over time. To address this issue, this paper proposes a method that eliminates the need for repeatedly writing the actual fault address at a fixed location. Instead, upon each power-up, the system reads data from the fixed address and determines a writable address within the entire flash memory space by identifying a specific marker. Experimental results demonstrate that this method successfully stores the retrieved fault data in memory.