Forum Discussion
JensVkb
Occasional Contributor
3 years agoDon't really have the time right now to figure out that Signal Tap.
Purely as a test, would the following work?
- just writing 1 clock cycle "disable write protection" of my desired sector ID to the csr_control register;
- the next clock cycle "disable write protection + set sector erase address" of my desired sector ID to the csr_control register; and
- then setting csr_write and csr_read to 0, address to 0 and write data to Z or '1'.
- If I then wait a few seconds and then power-cycle my board, should I then see the sector erased and hence no configuration being present?
Because, as I understand the guide, that's all that really needs to happen to erase a Flash sector. (guide only mentions UFM sectors, but I'm guessing this should work for CFM sectors too). (Agreed, checking busy bit and successful bit and re-enabling write protection are crucial steps going forward. The above is purely as a quick check to just erase the CFM sector)
Extra question: my understanding the guide is correct that to just erase CFM sectors, interaction with the csr interface is enough and indeed no interaction with the data interface is necessary?