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: Signal generator Library breaks execution when using more than 3 SGENT_1

Part Number: TMS320F28379D

Hello,

I'm using Signal generator library to create a signal generator of superimposed at least 20 sinus with different frequencies (harmonics) . With 2 sinus (i.e. two instances of SGENT_1), everything works fine. When I add the third one the program fails in the call 

sgen.calc(&sgen);

At this point the debugger shows me the execution goes back to main() restarting all the variables.

Is this a limitation of the library ? If yes, is it stated somewhere?

  • Hello Olympio,

    It's not a limitation in the library.  You should be able to run three SGEN modules simultaneously, as you are trying to do. 

    Can you check your watchdog timer is disabled, please?  Then, re-build and reload your program, and place a break-point on the first call to sgen.calc().  Check the disassembly window to verify the program memory location and the instructions seem OK.  If you can, please capture a screenshot of the disassembly window at this point and attach it to your reply.

    It's most likely to be either the watchdog timer timing out or the calc() function not located where you think it is.

    Regards,

    Richard