BRT Community

General Category => Discussion - EVE => Topic started by: lorcap on September 10, 2019, 10:11:07 AM

Title: How to detect CMD_FLASHERASE completion?
Post by: lorcap on September 10, 2019, 10:11:07 AM
Hi everyone,

my NOR FLASH memory can take several seconds, almost a minute, to fully erase its content. How do I know the process is completed? I cannot find any register or interrupt flag for that.

Should I wait for REG_CMD_READ to catch up with REG_CMD_WRITE?

Thanks in advance.
Title: Re: How to detect CMD_FLASHERASE completion?
Post by: BRT Community on September 10, 2019, 01:38:33 PM
Hello,

Yes, after issuing the CMD_FLASHERASE command, waiting until the REG_CMD_READ and REG_CMD_WRITE pointers are equal will let you know the command has completed.

Best Regards,
BRT Community.
Title: Re: How to detect CMD_FLASHERASE completion?
Post by: lorcap on September 10, 2019, 02:31:56 PM
Thank you very much for the quick reply.

I imagine the same applies to other FLASH-related commands.

I believe a hint in the Application Note (at "Flash Interface" chapter?) would be helpful for other developers, too.
Title: Re: How to detect CMD_FLASHERASE completion?
Post by: BRT Community on September 11, 2019, 11:55:03 AM
Hello,

Yes, that is correct.

Thanks for the suggestion, I will pass it on to the document team.

Best Regards,
BRT Community