Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
User18303
Level 2
Level 2
Hi all,

How to inject faults (Single, Double and Multi) in Pflash on AURIX™TC2xx microcontrollers ?


Best regards,
Lina

#8042000 13166
0 Likes
1 Reply
User18237
Level 5
Level 5
First solution authored First like received
Hi Lina,

You can inject faults in PFlash following this method:
1- The ECC code causing the required error type (e.g. triple-bit error) can be determined
by first programming the data with automatic ECC generation on.
2- Read this programmed data to find the corresponding ECC code in ECCRPp.RCODE.
3- Switch OFF automatic ECC generation: ECCW.PECENCDIS = 1.
4- Write the value of ECC code (obtained in step 2- in in ECCRPp.RCODE) into ECCW.WCODE.
5- Now, generate the bit errors in the data to program by setting additional bit(s) in the read data.
6- Reprogram the page with this data.

Best regards,
Mr. AURIX™
0 Likes