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.

TMS320F28069: Bypass EALLOW register protection

Part Number: TMS320F28069


We sometimes make mistakes in our code by nesting EALLOW and EDIS in called functions. This got us to wondering if the register protection really helps us at all. Our program would have issues if it was unexpectedly writing registers in general. Is it a possible or recommended technique to just run EALLOW once at the start of code and never call EDIS. Are there any performance or other concerns?

  • Hi Lee,

    As you might already know, EALLOW protects any spurious writes to the registers. Further, theoretically it is possible to just call EALLOW once and not call EDIS in which case the code can write to all the protected registers thereafter. But this is not a recommended practice since malicious code or bugs could allow unintentional updates to the registers which you don't want as you have mentioned.
    Perhaps you could consider writing some script that checks for nested EALLOW or EDIS tags in the code if the complexity of the code is too high and this might help you minimize the mistakes while using these instructions in the code.

    Hope it helps.
    Sudhakar

    ---------------------------------------------------------------------------------------------------

    If a post answers your question, please mark it with the "verify answer" button.

    Other useful links:

    C2000 Getting Started      C2000 Flash Common Issues/FAQs      Emulation FAQ