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.

code building problem

hi all i (i m using dsj6713 and ccs v3.1) have made a c file by coping it from rulph chasaing book the c file contains the instructions to turn led '0' on when diop switch '0' is pressed and to output tone on the line out or headphone output of dsk.i have also added all the necessary files in the project as mentioned in the book.now when i run th eproject the led '0' does blink in accord with the programme but  the tone appears after several number of rebuilds and it may disappear if i rebuild it just once more after getting it.has anybody encountered this problem or have some idea how to solve it i m waiting for your reply.

Mateen

  • The good news is that your code for actually generating the tone must be working right or you would never hear it. And the code for sending the tone out must be right for the same reason.

    There is no good reason I can think of why just a rebuild will change anything that much. Do you mean that you can run it with the tone, then without changing any source files click Rebuild All and load and run and it will not generate the tone? Or just reloading the same program file again.

    If not, then I would be looking at those code changes as the difference between two code builds that work and do not work.

    But if yes, then my thoughts are that either you have some bad physical connections on the board or to your headphones/speakers, or else there is something in your GEL file that is affecting some clocks or initialization of the DAC, because every time you build and load, some GEL functions may get run that change something that you code might not like.