Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

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

AURIX™ Forum Discussions

User14290
Level 1
Level 1
Hi

How can I disable ECC safey error in TC39XX

I used to disable it in TC27 using this cocde
 /* Deactivate ECC safety errors */
Mcal_ResetENDINIT();
FLASH0_ECCRP0.B.ECCORDIS |= IFX_FLASH_ECCRP_ECCORDIS_MSK;
FLASH0_ECCRP1.B.ECCORDIS |= IFX_FLASH_ECCRP_ECCORDIS_MSK;
Mcal_SetENDINIT();




now I'm tying to disable it on TC39XX with this code DMU_HF_ECCC.B.ECCCORDIS = 0x01; but it's not working

should I set PECENCDIS and DECENCDIS flags ??

2919.attach2919.attach

thanks
0 Likes
2 Replies
User22281
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Has anyone found a solution? I also need to disable the ECC in the DFLASH0 of a TC36x, but it seems that the register DMU_HF_ECCC is somehow protected against modification.

Thanks in advance.

0 Likes
User22281
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Found the solution:

Ifx_SCU_WDTCPU *watchdog;
uint16 endInitCpuPassword;

watchdog = &MODULE_SCU.WDTCPU[IfxCpu_getCoreIndex()];
endInitCpuPassword = IfxScuWdt_getCpuWatchdogPasswordInline(watchdog);
IfxScuWdt_clearCpuEndinitInline(watchdog, endInitCpuPassword);
DMU_HF_ECCC.B.ECCCORDIS = 0x3;
DMU_HF_ECCC.B.TRAPDIS = 0x3;
IfxScuWdt_setCpuEndinitInline(watchdog, endInitCpuPassword);

 

0 Likes