Unable to step debug C code generated using MATLAB 2019a embedded coder on F28379D launchpad

1 次查看(过去 30 天)
I have generated C code using MATLAB Simulink Embedded coder to be used with Texas Instruments F28379D launchpad. I am able to generate the C code, open, edit and build using the CCS IDE v9.3.
Though the code runs as per the logic written in the interrupt service routine, if I introduce any breakpoint in the interrupt service routine and try to run it in the debug mode, it does not reach there.
Please let me know of any suggestions to solve this.

回答(1 个)

Asim
Asim 2023-11-17
Hello Varun,
I understand that you're having difficulties with debugging your generated C code from MATLAB Simulink Embedded Coder on the Texas Instruments F28379D LaunchPad using CCS IDE v9.3. Specifically, breakpoints within the interrupt service routine (ISR) aren't being hit in debug mode.
Here are a few suggestions you might find helpful:
  1. Clear the Interrupt Source: Before setting the breakpoint, ensure that the source of the interrupt has been cleared. Depending on whether the interrupt is level- or edge-triggered, it can affect whether the ISR is called continually or only once.
  2. Check Interrupt Priority and Nesting Settings: Ensure that the priority of your interrupt is not set too low, and that interrupt nesting is enabled. If the interrupt priority is low, or if interrupt nesting is disabled, the ISR might not be executed when another higher-priority interrupt occurs.
I hope these instructions help you.
Best Regards,
Asim Asrar

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by