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.

TMS320F28377D: A question of disassembly.

Part Number: TMS320F28377D

Hi champs,

My customer used CCS 9.2 and CGT v6.4.6 for applications, he uses assembly language and find one problem when debugging this software. He found that his assembly code is wrong from Disassembly Window, please refer to below picture.

My question is that my customer is using assembly language, will Disassembly Window disassemble the assembly code again? 

Please advise how to debug this issue if any idea, thanks for help.

-Luke

  • Luke,

    The disassembly window reads memory to determine what assembly instructions are present at the specified address range.

    I will loop in a compiler expert regarding why the assembly is different from what is expected.

    Regards,

    John  

  • My first guess is that this 2-word instruction is correctly assembled into the program.  At some later point, the first word of this 2-word instruction is somehow overwritten with the value 0x0BAD, which happens to be the instruction DEC @SP.  

    The C28x compiler installation includes a disassembler named dis2000.  It is located in a directory similar to ...

    C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_6.4.6\bin

    Run it from the command line similar to ...

    % dis2000 project_executable_file.out > disassembly.txt

    Inspect the file disassembly.txt and see what is located at address 0x014c2e.  If it does not match what CCS shows, then something went wrong at some point after the program is built.  An error may have happened when flashing or loading the program, or during program execution.

    Thanks and regards,

    -George