BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: How to detect CMD_FLASHERASE completion?  (Read 9747 times)

lorcap

  • Newbie
  • *
  • Posts: 9
    • View Profile
How to detect CMD_FLASHERASE completion?
« 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.
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 742
    • View Profile
Re: How to detect CMD_FLASHERASE completion?
« Reply #1 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.
Logged

lorcap

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: How to detect CMD_FLASHERASE completion?
« Reply #2 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.
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 742
    • View Profile
Re: How to detect CMD_FLASHERASE completion?
« Reply #3 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
Logged