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: Code is getting stuck somewhere during finding sine wave

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

I wrote this code to find the sine values.

When I press the resume button again the code is getting stuck somewhere else.

I'm a beginner to DSP coding. Please guide me to systematically learn TMS320F28379D coding

  • Aruni,

    What project did you use as a starting point?

    It is good to start with a working project (e.g. in C2000Ware) for this device, and then you can add your user code in it and run it.

    This will ensure the project contains a linker command file, and you can pay attention to any warnings that appear when you build the project. 

    Side notes:

    1. Since the project contains floating point variables, it is probably a good idea to select the output type as COFF. Or you could select the output type as EABI (ELF), and make sure you specify the constant literals as floats e.g. 0.0f, 3.14f, 5.0f.

    2. The float variable f in your code will eventually overflow since it is inside the while(1).

    Thanks,

    Sira

  • Please reply in so we can move forward towards a resolution in a timely manner.

  • I'm sorry fore the delay. Actually the issue didn't get resolved. I'm still facing same issue in a project which is given as a part of 28379D Multiday workshop (Lab 5). While running, I'm getting same issue. Please suggest some methods to avoid this state generally.

    Thank You

  • Aruni,

    In the F28379D multiday workshop the sine waveform generation is accomplished by a look-up table in Lab 6 (not Lab 5) and the values are integers and not floating-point.  This table is loaded into the DAC to generate the waveform.  Did you get the sine waveform part of the lab exercise to work 'as is' without modification?

    - Ken