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.

TMS320F2800132: Trigger a memory error

Part Number: TMS320F2800132


Good day,

I´m not deep with TMS320F2800132 and my question is if there is a way to trigger an exception/NMI for a (kind of) not allowed memory access (for instance, by trying to write to a flash address or not allowed RAM address)? 

As info: other core/architectures (for example ARM) have for example an exception which is triggered whenever you try to write to memory address 0xFFFFFFFF.

Does exist any similar in C2000?

The only option I see is to force a RAM uncorrectable error by mean of NMIFLGFRC register.  Btw, is there any way to simulate such NMI w/o using a "simulated" error ?

Thanks in advance

Ivan

  • Hi Ivan,

    Thanks for your questions.

    if there is a way to trigger an exception/NMI for a (kind of) not allowed memory access (for instance, by trying to write to a flash address or not allowed RAM address)? 

    See below, you can do this manually without forcing a memory access error.

      

    For the second question:

    The only option I see is to force a RAM uncorrectable error by mean of NMIFLGFRC register.  Btw, is there any way to simulate such NMI w/o using a "simulated" error ?

    The C28x Instruction Set document describes the INTR instruction that allows for emulating a hardware interrupt: