- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to test the actual erase time of tc397 pflash:
time = getTime_us(); // get system time, μs
uint16 endInitSafetyPassword = IfxScuWdt_getSafetyWatchdogPasswordInline();
xScuWdt_clearSafetyEndinitInline(endInitSafetyPassword);
IfxFlash_eraseSector(sectorAddr);
IfxScuWdt_setSafetyEndinitInline(endInitSafetyPassword);
IfxFlash_waitUnbusy(pflashNum, pflash[pflashNum]);
while(status); // Wait erase operation finished
time = getTime_us() - time; // get run time, μs
Does TC397 have a register to indicate the completion of the erase operation?
Solved! Go to Solution.
- Labels:
-
AURIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the function IfxFlash_waitUnbusy comes back the flash is no more busy which means the operation is finished. Check for any error should be do (e.g Protection error).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the function IfxFlash_waitUnbusy comes back the flash is no more busy which means the operation is finished. Check for any error should be do (e.g Protection error).