Part Number: TMS320F280049
Other Parts Discussed in Thread: ADS131E08, UNIFLASH
Hi Vamsi,
My customer met a ECC caused NMI.
They use TMS320F280049PZSR,100PIN and CCS version 8.3.0.
It happens on 4 customers‘ board but can not be reproduced on controlCARD or launchpad.(I supposed our control card or launchpad has not connected to some external circuits,so can not run to relevant code. so it will not trigger the ECC NMI) so I think it has some thing wrong about their code.
It can be triggered by "only CANB module code" or "only SPI module code".
SPI is basically communicated to ADS131E08.
CANA will also take the bootloader function.
For only CANB module,after loading data to CANB, the NMI interrupt is triggered during the transmission process (not completed), and among NMIFLG register in NmiIntrupt, FLUNCERR is 1.
Here is the debug window which can show the ECC error.
I searched Flash api in their code and list as below:
status = Fapi_initializeAPI(F021_CPU0_BASE_ADDRESS, 100); status = Fapi_setActiveFlashBank(Fapi_FlashBank0); status = Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector,pu32Startaddr); status = Fapi_doBlankCheck(pu32Startaddr,Sector8KB_u32length,&oFlashStatusWord); status = Fapi_issueProgrammingCommand((uint32 *)u32Index, u16ptr+i,8,0, 0, Fapi_AutoEccGeneration); status = Fapi_doVerify((uint32 *)u32Index,4, u32ptr+(i/2),&oFlashStatusWord);
Could you kindly point out if customer use wrong flash API? However, it can trigger ECC NMI without bootloader, just running the app code.
Customer doesn't want to share the code, if you really need it. I can share with you by email.
And could you kindly tell me where should I focus to find the root cause?
BR
Emma

