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.

.word instructions in Disassembly; CCS 3.3

Other Parts Discussed in Thread: TMS320F28235

Dear Community,

I have a problem with the Disassembly output in CCS 3.3. After building successfully and flashing the target (TMS320F28235), what i see in the assembly output is a lot of ".word" assembler instructions, highlighted in red. (see screenshot)

When programm counter comes to the point to execute one of those instructions I end up in an ILLEGAL_ISR().

My questions are:

1) How did i get those .word inst? what can be possibly causing the problem?

2) when I'm stuck in the ILLEGAL_ISR() is there any Register i can read out, that gives me an Idea of what is causing the problem? some sort of error code i can read out? while in my case it seems to be obvious what is causing the problem I was curious if there is such a thing.

Thanks a lot for your help!

BR, Johannes

  • I'll start by saying I'm not a C2000 expert, and I don't have answers for all of your questions.

    The most likely scenario is this area of memory was corrupted by some other part of the program writing to that location in memory.  The successfully-decoded instructions make a sequence that does not seem reasonable; it looks like nonsense.  If you attempt to disassemble a data section as instructions, you'll see similar nonsense. 

    Please use the standalone disassembler dis2000 to examine the same address range in your executable file.  If I am correct, the instructions shown by dis2000 will be much more reasonable, and we will know that the problem occurs at runtime.  If the problem exists in the executable file, there is a problem with the way the program is built.