Mar 08, 2021
10:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 08, 2021
10:30 AM
When running an erase on a single sector, 8K bytes, it takes a little over 106ms. Is this erase time typical? Causes problems with my 100ms watch dog. Curious if I'm doing something wrong.
6 Replies
Mar 09, 2021
06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 09, 2021
06:08 AM
The erase times are given in the data flash erase time per sector in https://www.infineon.com/dgdl/Infineon-TC29xBC-DataSheet-v01_00-EN.pdf?fileId=5546d462694c98b4016953....
The time of course depends on the frequency, but I make one sector being 2.3 ms or so, which should be well within your watchdog limitl
The time of course depends on the frequency, but I make one sector being 2.3 ms or so, which should be well within your watchdog limitl
Mar 09, 2021
06:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 09, 2021
06:15 AM
The erase time is a dependent of the erase counts. With the erase counts also the erase time is increased. Typical erase time (erase count < 1000) is 120ms per single sector.
Why you have a problem with the watchdog during flash erase? You can service the watchdog during wait for erase finished when your watchdog is enabled.
Why you have a problem with the watchdog during flash erase? You can service the watchdog during wait for erase finished when your watchdog is enabled.
Mar 09, 2021
09:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 09, 2021
09:12 AM
MoD wrote:
The erase time is a dependent of the erase counts. With the erase counts also the erase time is increased. Typical erase time (erase count < 1000) is 120ms per single sector.
Why you have a problem with the watchdog during flash erase? You can service the watchdog during wait for erase finished when your watchdog is enabled.
Oh I see, you must be using an interrupt callback when the erase is complete? I'm just using a while loop waiting for the FSR to be not busy.
Mar 09, 2021
09:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 09, 2021
09:21 AM
Darren Galpin wrote:
The erase times are given in the data flash erase time per sector in https://www.infineon.com/dgdl/Infineon-TC29xBC-DataSheet-v01_00-EN.pdf?fileId=5546d462694c98b4016953....
The time of course depends on the frequency, but I make one sector being 2.3 ms or so, which should be well within your watchdog limitl
Thanks for pointing this out. For data flash the equation is 0.12 + 0.08/(fFSI [MHz]), the return value is in seconds. So basically it should not be less than 120ms from what I'm seeing. But this helps justify what I'm seeing a lot because I thought it should have been much less than this.
Mar 09, 2021
09:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 09, 2021
09:31 AM
jaltice wrote:
Oh I see, you must be using an interrupt callback when the erase is complete? I'm just using a while loop waiting for the FSR to be not busy.
Nevermind, I can service the watchdog inside the while loop is what I think you are saying. Thanks
Mar 15, 2021
03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 15, 2021
03:12 AM
Hi jaltice,
did you finally solve your problem?
Regards,
Jens
did you finally solve your problem?
Regards,
Jens