NCF[38] XBIC Error when erasing Flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

NCF[38] XBIC Error when erasing Flash

跳至解决方案
4,150 次查看
Jamber_H
Contributor III

SPC5744P, when erasing Flash via MCAL, NCF[38] Alarm is triggered, and if NMI of this alarm is enabled, a NMI is triggered.

NCF[38].png

But if I set a breakpoint in FLASH_AC_CALL , which point to the function 

Fls_Flash_AccessCode(), NCF[38] is not triggered.
Fls_Flash_AccessCode.png
 
If Lauterbach is not connected, NMI is triggered too.
 
How to resolve this problem?
标记 (1)
0 项奖励
回复
1 解答
4,089 次查看
Jamber_H
Contributor III

Thank you for your reply. This address is covered by SMPU, so it's no relation with SMPU. This problem is occured only when watching 0x00FE0000 in dump window of Lauterbach and DualPort is enabled. So I think it's triggered when simultaneously erasing by MCU and reading by Lauterbach, then bus error trigers a XBAR Monitor Error, which is reported by XBIC to FCCU.

在原帖中查看解决方案

0 项奖励
回复
6 回复数
4,105 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello,

From my point of view, you can check whether the LOCK bit of the block which covers the address 0x00FE0000 (the 64 KB high flash memory block 4) is set. One more point is you can check the write/read permission to that address in SMPU.

Best Regards,

Nam

0 项奖励
回复
4,090 次查看
Jamber_H
Contributor III

Thank you for your reply. This address is covered by SMPU, so it's no relation with SMPU. This problem is occured only when watching 0x00FE0000 in dump window of Lauterbach and DualPort is enabled. So I think it's triggered when simultaneously erasing by MCU and reading by Lauterbach, then bus error trigers a XBAR Monitor Error, which is reported by XBIC to FCCU.

0 项奖励
回复
4,086 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @Jamber_H,

Yes, it's probably an issue of read-while-write. However, you've said that even when the lauterbach is disconnected, the issue is still persist. Could you clarify?

Best Regards,

Nam

0 项奖励
回复
4,084 次查看
Jamber_H
Contributor III

After further testing, the reson of abnormally reset when Lauterbach is not connected is explained that: 

When Lauterbach is connected, watching 0x00FE0000, and DualPort is enabled, MCU is reset during erasing this address, so the erasing oparation is not completly and ECC error is triggered  by reading after MCU reset, and it will trigger further reset by FCCU, so once this issue is occured, this sector will always triggers reset, even if Lauterbach is removed later.

I tested disable DualPort in Lauterbach, it will work normally and no reset will be triggered. Then I removed Lauterbach and reset power, it works normally still.

So the reset of MCU with Lauterbach connected or not is different.

 

4,070 次查看
namnguyenviet
NXP Employee
NXP Employee

I understood. Glad to hear that you could find the issue.

Best Regards,

Nam

4,061 次查看
Jamber_H
Contributor III

Thank you

Best Regards

Jamber

0 项奖励
回复