Hello
When I tried to write data to the DFLASH using debug mode, it failed.
Below is a rough outline of my code.
write 0xFFFFF800 to 0x40268350
wtire 0x10000000 to PFCPGM_PEARR_L register
write 0xFFFFFFFF to Program DATA0
set MCR[ERS] to 1 MCR[ERS] choose sector
Set MCR[EHV] to 1
wait MCRS[DONE] be 1 check MCRS[PEG]
set MCR[EHV] to 0 SETMCR[ERS]to 0
after erase 11 sectors
wtire 0x10000000 to PFCPGM_PEARR_L register
write 256 bit data to DATA0~DATA7
set MCR[PGM] to 1 set MCR[EHV] to 1
read MCRS register get 0x0000C100
But when I looped for the second time
wtire 0x10000000 to PFCPGM_PEARR_L register
write 256 bit data to DATA0~DATA7
set MCR[PGM] to 1 set MCR[EHV] to 1
read MCRS register get 0x00008100
I'd like to know what might be causing this situation.
Lika