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/TMS320F2808: debug pointer misaligned

Part Number: TMS320F2808


Tool/software: Code Composer Studio

I have been getting the debug line pointer misaligned with the code, for example.

even with no optimization and debug selected (-Ooff -g). 

The only related thread I could find was https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/716887

  • What's going one here? The above is not what I posted - pictures are missing as well as the second half of the post.
  • Hi Giles,
    Looks like your screenshot didn't get posted. If you post also got truncated, can you reply with the screenshot and the additional information?

    Also, are you doing a "project-less" debug session?

    Thanks
    ki
  • Hi. I intended to add more later, but other things happened & then I forgot.

    My original post meant to say that I had this problem and the only previous posts I could find did not resolve it, BUT that I had found a solution (at least for me).

    The problem was that I had concatenated several source files into one. When looking at with an editor such as Notepad++, I found that although most lines ended with <CR><LF> a few (at the end of the original files) ended with only <CR>. This seemed to confuse the compiler. Looking at the --c_src_interlist output, I could see the C file line numbers getting more-and-more out of line as more solo <CR>s were passed.
    My solution was to do "select all, cut, paste, save". CCS fixes all the line ends after this, and I got no more problems.

    Regards,Giles