Quote from: pauljiao on September 20, 2019, 03:14:07 AMYou're right. I fixed my post by adding an extra CMD_FLASHWRITE(unified.blob).
First, "CMD_FLASHDETACH â†' CMD_FLASHATTACH â†' CMD_FLASHERASE â†' CMD_FLASHFAST cycle" is not feasible because after flash is erased
Quote from: pauljiao on September 20, 2019, 03:14:07 AMIf your run the code again, what do you read? 0xFF or the older FLASH content?
Secondly, at my side, with your code logic, cmd_flashread can read the flash sector correctly
after cmd_flasherase is done. The buffer is filled with 0xFF, not 0x55.
In my test I didn't switch off the board, rather I started over and sent a RST_PULSE host command before accessing the FLASH again.