TC397 PFLASH erase time

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
atoz
Level 1
Level 1
5 sign-ins First like given First question asked

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? 

 

0 Likes
1 Solution
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

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).

View solution in original post

1 Reply
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

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).