SPC5744P, when erasing Flash via MCAL, NCF[38] Alarm is triggered, and if NMI of this alarm is enabled, a NMI is triggered.
But if I set a breakpoint in FLASH_AC_CALL , which point to the function
Solved! Go to Solution.
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.
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
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.
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
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.
I understood. Glad to hear that you could find the issue.
Best Regards,
Nam
Thank you
Best Regards
Jamber