Can't disable ECC checking on Tricore TC377

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

cross mob
jack_cheng
Level 1
Level 1
5 sign-ins First like given First reply posted

我想取消PFLASH的ECC检查,在初始化时执行如下语句:

{

   ifx_CPU_FLASHCON1 A;

   ifx_CPU_FLASHCON1 B;

   ifx_CPU_FLASHCON1 C;

   CPU0_FLASHCON1.B.MASKUECC = 1;

   CPU1_FLASHCON1.B.MASKUECC = 1;

   CPU2_FLASHCON1.B.MASKUECC = 1;

   A = CPU0_FLASHCON1;

   B =  CPU1_FLASHCON1;

   C =  CPU2_FLASHCON1;
}

然后我用调试器观察C.B.MASKUECC的值仍然为02b,CPU0&1的MASKUECC的值为01b,修改成功。

CPU2的FLASHCON1寄存器的值不能修改吗?

0 Likes
1 Solution
Jeremy_Z
Moderator
Moderator
Moderator
1000 replies posted 250 sign-ins 100 likes received

Hi @jack_cheng 

1) CPU2的FLASHCON1寄存器的值不能修改吗?

-- CPU2的FLASHCON1寄存器也是可写的,请问这个现象可在多块板子中复现吗?还有请分享一下完整的代码。

BR,

Jeremy

View solution in original post

4 Replies
Jeremy_Z
Moderator
Moderator
Moderator
1000 replies posted 250 sign-ins 100 likes received

Hi @jack_cheng 

1) CPU2的FLASHCON1寄存器的值不能修改吗?

-- CPU2的FLASHCON1寄存器也是可写的,请问这个现象可在多块板子中复现吗?还有请分享一下完整的代码。

BR,

Jeremy

嗨,@jeremy_zhou

目前cpu0,1,2寄存器FLASH1&2的MASKUECC和ECCCORDIS均设置为1,但是读取ECCS(ECC Status Register)寄存器值为0xA800A8,任然错误,请问有方法解决吗? ?

BR,

杰克

0 Likes
jack_cheng
Level 1
Level 1
5 sign-ins First like given First reply posted

嗨,@jeremy_zhou

目前cpu0,1,2寄存器FLASH1&2的MASKUECC和ECCCORDIS均设置为1,但是读取ECCS(ECC Status Register)寄存器值为0xA800A8,任然错误,请问有方法解决吗? ?

BR,

杰克

0 Likes
Jeremy_Z
Moderator
Moderator
Moderator
1000 replies posted 250 sign-ins 100 likes received

Hi @jack_cheng ,

问题解决了吗?请问这个现象可在多块板子中复现吗?还有请分享一下完整的代码。

BR,

Jeremy

0 Likes