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.

TMS320F28388D: Debugging CLA assembly file

Part Number: TMS320F28388D


Tool/software:

Hi,

I'm using CCS 20.2.0. I have an assembly file written for the CLA of the CPU2.

I'm currently debugging this assembly file (debug window).

The tasks in the .asm file are running well as I put a MDEBUGSTOP breakpoint in each task and it stops at this MDEBUGSTOP as expected.

My problem is that in the registers view, when I "Step Into" to debug each instruction line by line, the working registers (for example MR0, MR1, MR2, MR3...) are not refreshing, it remains 0. The Continuous Refresh button is checked. That's very annoying.

Any help on tyhat problem ?

Thank you, 

Adrien

  • Hi Adrien,

    Let me test this out myself and get back to you to see if I'm able to replicate the behavior on the F2838x.

    Best Regards,

    Delaney

  • Hi Adrien,

    I tried it out myself and was not able to replicate the behavior: the CLA MR0 register updates if written to with the debugger attached.

    Note that the CLA does single stepping differently since the pipeline isn't flushed with every step (see explanation below), so you won't see each update automatically like with the C28x. Can you try stepping over some additional lines and see if the updates occur later?

    Best Regards,

    Delaney

  • Hi Delaney,

    I've tried to step over some additional lines but I still have the problem.

    Attached, you can find two screenshots. The first one is when the program stops at the breakpoint. The second one is several lines after (more than 8) and the registers are still 0 (for example, at a point, MR1 should contain numerical value 2 but I never see it in the registers view). Maybe, i need to ckech options in the compiler options or I'm using the wrong view. Refresh button is checked as you can see on the screenshots.

    Screenshot 1

    Screenshot 2

    Maybe, you'll have further suggestions after seeing the screenshots.

    Regards,

    Adrien

  • To add a precision, the Program Counter is updated as expected but not the working register.

    Other remark for improvement of the new CCS:
    .asm files are not user friendly with CCS v20.2.0 as instructions are not highlighted compared to the former version v12.

    Adrien

  • Hi Adrien,

    I apologize; I missed the part of your original post and didn't realize you are using CCS 20. The test I did was in Eclipse version 12.8.1. Let me try to replicate what you are seeing in CCS 20 and consult the CCS team about this. I don't see anything wrong with the screenshots though; the register values should be updating with those settings. 

    Best Regards,

    Delaney

  • Yes, exactly. Two precisions:

    1/ I've tried with CSS v9.2.0 (which was a former version i used) and Lab9 (CLA of CPU1 written in assembly) this morning and I don't have the problem. Registers of CLA updates as expected.

    2/ With CCS v20.2.0. Working registers of the CPU updates well. The problem concerns only the CLA.

    Regards,

    Adrien

  • Hi Adrien,

    Glad to hear an older version of CCS doesn't have this issue. I still haven't had a chance to do further testing on my end, but I would suggest sticking with the old CCS version for now for your debugging. I will make sure this gets fixed in future CCS 20 versions if I am able to replicate on my setup and confirm that it is a bug. I apologize for the inconvenience; we are still finding some small issues with CCS 20. I will close this thread but please post another if you have any other questions / run into any other issues.

    Best Regards,

    Delaney