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.

TMS320F28379D: execution issue with the DELAY_US macro,

Part Number: TMS320F28379D
Other Parts Discussed in Thread: TMS320F28335

Dear TI Hello,

I am trying to run the TI sensorless project using the F28379D,

I have made modifications to the TI code (TMS320F28335) existing in the controSUITE so It could compile,

I have an issue execution with the DELAY_US macro,

The issue is when the PC reaches this macro, the DSP crushes and shows me this message,

Break at address "0x3fe493" with no debug information available, or outside of program code.

Thank you in advance,

Regards,

S.Tarik,

  • Are you running from flash? The underlying function that the DELAY_US macro uses is placed in the .TI.ramfunc section, so it will always be run from RAM since flash has wait states that can make the delay amount inaccurate. If you don't have the appropriate lines in your code to copy the ramfunc section from flash to RAM, you will likely get an ITRAP when the function is called since the code isn't where its supposed to be. I suspect this is what's happening to your application.

    Do you have a .TI.ramfunc section in your cmd file? Are you doing a memcpy toward the beginning of your code to copy it from flash to RAM?

    Whitney