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

cross mob
RazvanB
Level 1
Level 1
First question asked Welcome!

Hello,

I want to trigger an multibit ecc error in the pflash and I followed the instructions from this article:

https://community.infineon.com/t5/Knowledge-Base-Articles/Procedure-of-ECC-error-Injection-to-TC3x-P...

 

The problem is: it does not work and I cant figure it out.

some code snippets, the function code does mainly what is says:

password = getCpuWatchdogPasswordInline(&MODULE_SCU.WDTCPU[getCoreIndex()]);
clearCpuEndinitInline(&MODULE_SCU.WDTCPU[getCoreIndex()], password);
MODULE_DMU.HF_ECCW.U = 0x30000000;
MODULE_DMU.HF_ECCW.B.WCODE = 123;//I dont read the previous value because I need a multibit ecc anyway
FlashPageModeSequence( 0x50u );
FlashWriteSequence(NULL_PTR, 0xa002F000, 0x20, 0xAAu, Big_Array1);
setCpuEndinitInline(&MODULE_SCU.WDTCPU[getCoreIndex()], password);

//access memory

test = *(uint8*)0xa002F000;

 

After I run the code the memory is written but no ecc error.

Can you help me please ?

Thank you!

0 Likes
1 Reply
Anupama_A
Moderator
Moderator
Moderator
50 solutions authored 10 likes received 250 sign-ins

Hi @RazvanB , 

 

Could you please also share the code where you're writing the flash address and reading it back and getting the ECC for that data so that I can check further?

Best regards, 

Anupama. 

0 Likes