Announcements

Robots are revolutionizing our lives in many ways. Join our webinar to learn about Infineon’s broad portfolio of robot building blocks.
Click here to register.

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

AURIX™ Forum Discussions

atoz
Level 1
Level 1
First like given First question asked Welcome!

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
250 sign-ins 25 likes received 50 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
250 sign-ins 25 likes received 50 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).

This widget could not be displayed.