This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280039C: [TMS320F280039C] ECC Fault While Reading Flash - Need Help

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hello TI Team,

We are working with the TMS320F280039C microcontroller from the TI C2000 family, and I’ve encountered an issue related to Flash memory reads.

I’ve reserved a specific section of Flash memory at address 0xA8000 for storing non-volatile data (NVM-style usage). However, when I attempt to read from the address 0xAA000, I encounter an ECC (Error Correcting Code) fault, which causes the system to enter the NMI (Non-Maskable Interrupt) handler.

This doesn’t happen all the time, but intermittently during reads, especially from that particular address range, the fault triggers.

Here are some points for reference:

  • The memory location 0xA8000 is intentionally reserved for NVM use.
  • The ECC fault occurs when reading from 0xAA000.
  • I suspect the issue may be related to improper initialization or missing ECC data in Flash.
  • I’m using the TI-provided Flash API to read/write to Flash.

Questions:

  1. Is there a recommended procedure to use Flash API for reading/writing to NVM regions while ensuring ECC is properly handled?
  2. Has anyone experienced similar ECC faults while reading Flash on this MCU?
  3. Are there any diagnostics or best practices to avoid ECC issues or to initialize ECC correctly during Flash programming?

Any guidance, shared experience, or reference to existing solutions would be greatly appreciated!

  • Hello,

    Have you referred to the Flash API Guide for this device? This document explains the recommended programming flow and how different ECC programming modes can be used. Generally, we recommend using the Fapi_AutoEccGeneration mode when programming flash. There are also flash programming examples available in the C2000Ware SDK (C2000Ware_Install_Location\driverlib\f28003x\examples\flash\CCS\flashapi_ex1_programming.projectspec).

    Kind regards,

    Skyler