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.

CCS: ILLEGAL OPCODE ERROR

Tool/software: Code Composer Studio

I've created a simple project in code composer in assembly  in which I take some data from a buffer, some filter coefficients from another buffer and then do the convolution in order to create the filtered output. I use the simulator and not the dsk board. The program is very simple but I get the following error: 

If I put a breakpoint in the loop in which I'm getting the data the program runs until it reaches the 278th loop and then the error appears again. Also if I run it without a breakpoint most of the times windows close the application.  In the following link you can download the project:

Does anyone know what could be wrong?

  • Vasiliki,

    Which C67xx device are you using?

    Which version of CCS are you using? Which version of compiler tools are you using?

    Which exact simulator version have you selected to use?

    Use the breakpoint and run your program to the 277th loop. Examine data memory around 0x000005c0; examine program memory around 0x000005c0. As you single step through the last pass of the loop, what do you observe in the data and program memory windows? In particular, look at the value at 0x000005c0 before and during and after the last loop and confirm its value compared to 0xfff7ef34.

    Most likely, you have data pointers that are causing data to be written to the same location as your program.

    It will also be helpful to look at the linker output .map file to see where the program and data components are stored and any overlap between them.

    Regards,
    RandyP