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/TMS320DM642: Error: Illegal opcode (e8000000) at pc = 0x84006d1 problem in CCS3.3 DM642 Simulator

Part Number: TMS320DM642


Tool/software: Code Composer Studio

Hey guys,

     I met the problem of "Error: Illegal opcode (e8000000) at pc = 0x84006d1" even in a helloworld project. Although there are some posted issues in this forum about illegal opcode problem, but they seem to not fit for my problem.

My build option is like this : -pm -o3 -fr"$(Proj_dir)\Debug" -d"_DEBUG" -mv6400+

The content of cmd file is below: 

MEMORY
{
L2_12: o = 00000000h l = 00040000h /*Upto 192K segment - always SRAM */
/*L2_3: o = 00030000h l = 00008000h*/ /*32K segment: TaskA-SRAM, TaskB-Cache*/
/*L2_4: o = 00038000h l = 00008000h*/ /*32K segment: always cache */
CE0: o = 80000000h l = 8000000h /* external memory */
}
-stack 0x20000
-heap 0x4000000 /* klbo: alloced in .system */
SECTIONS
{
.cinit > CE0 /* 0x0000034c */
.text > CE0 /* 0x00023740 */
.stack > L2_12
.bss > CE0 /* 0x00000070 */
.const > CE0 /* 0x000050b3 */
.data > L2_12 /* 0x00000000 */
.far > CE0 /* 0x00000480 */
.switch > CE0 /* 0x00000020 */
.sysmem > CE0 /* -heap */
.tables > CE0 /* 0x00000000 */
.cio > CE0 /* 0x00000120 */

.sramStateA > L2_12 /* 0x00000000 */

The whole project also is attached. Please help me, thanks a lot.

7288.helloworld.zip

.external > CE0
}

  • Hello,

    Which simulator are you running? I do not see a DM642 simulator in my CCSv3.3 installation so I used a standard C64x+ simulator and your program ran fine ("hello world" message was outputted and the program successfully reached the exit point

    Thanks

    ki

  • Ki-Soo Lee said:
    I do not see a DM642 simulator in my CCSv3.3 installation

    Actually I was wrong. There is a DM642 simulator. The DM642 is a C64x not a C64x+. Your build options specify -mv6400+, meaning that you are building for C64x+. This is likely issue. Rebuild the project using -mv6400 instead. This will run on the DM642 simulator.

    Thanks

    ki