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.

Unable to Read Register Contents in CCS

Other Parts Discussed in Thread: TMS570LS3137, TMS570LS0432

Hi,

Device: Hercules Launchpad TMS570L04
CCS Version: 5.5.0.00077

Emulator: XDSv100


I am unable to read register contents and expressions in CSS register/expressions window when program running.  Core, User, FIQ registers values are "Error: unable to read" and peripheral registers values are 0xBAD0BAD0. There is no problem when program suspended and also step over, step into instructions. I tried CCS 6.0 and same problem exist. There is no problem with my other TI launchpads.

  • Hello

    Unless the device supports some type of real-time debug mode that supports real-time access of registers while the target is running, the target would need to be halted to read these registers. For example, C28x devices support real-time memory and register accesses. Cortex devices support real-time memory accesses but not registers.

    For more details, see:

    http://processors.wiki.ti.com/index.php/CCS_Modules_Library#Real-time_Debug

    Thanks

    ki

  • Hello,

    Thanks for the answer. Its good to know some devices does not support real-time debug but i have a new question so. I have a TMDX570LS31CNCD board (which has Cortex R4 core like Hercules Launchpad) and i can access registers when target is running. If cortex devices does not support real-time register access, how it could be possible with that board ?

    Edit: In addition, i also can not access variables from expression window when target (Hercules Launchpad) is running.

  • Hello Lee,

    My problem have not been solved yet.
  • Furkan Aydogan1 said:
    I have a TMDX570LS31CNCD board (which has Cortex R4 core like Hercules Launchpad) and i can access registers when target is running. If cortex devices does not support real-time register access, how it could be possible with that board ?

    When I asked a similar question in Can't get CCS 6.1 "Continuous Refresh" for Memory or Expression views to work for Hercules devices got a response that not all Hercules devices have the functional path wired to allow access to the memory map via DAP to support real-time access.

    The datasheet for the TMS570LS3137 shows more functional paths connected to the DAP:

    Than for the TMS570LS0432 device:

    I am not sure if that is the reason why the TMS570LS0432 can't access registers while the program is running.

    Furkan Aydogan1 said:
    Edit: In addition, i also can not access variables from expression window when target (Hercules Launchpad) is running.
    What is the scope of the variable? i.e. are they global variables or local variables on the stack?

  • Hi Chester,

    Scope variable is a global variable and i can not access its real-time value when device is running.

    Thanks for point out debug subsystems. I have examined ETM and TPIU modules which LS04 series does not have. As far as i understand this modules used for real-time trace. I am still not sure if DAP is enough for real-time trace or ETM and TPIU modules are required.

    By the way, at this forum post Ki-Soo Lee stated that real-time access via DAP is posibble in CCS 5.4 or greater.

  • Furkan Aydogan1 said:
    By the way, at this forum post Ki-Soo Lee stated that real-time access via DAP is posibble in CCS 5.4 or greater.

    Real-time memory access, yes. But not for registers.

    If the registers are memory mapped registers, you can view the physical address in the Memory view for real-time access.