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.

TMS320F28379D: Non-intrusive connection to a target

Part Number: TMS320F28379D


Hi,

I am trying to test a program where I load code in the Flash and then have some code running on the RAM through the load to RAM.  I was trying to see if I can connect to the parameters in the RAM through the non-intrusive connection to running target. 

e2e.ti.com/.../923695

However I have been getting an Illegal ISR and a the device refused to allow debug mode message when I try this.  I was curious if a connection to the target in this way is possible or do I have to load the code every time if I have to debug it without halting the processor or any process running in the RAM when I connect to the target.  

Thanks,

Aditya

  • Aditya,

    You can connect the target and load the symbol. Either remove the GEL file from target configuration or comment Reset function inside OnTargetConnect() function and then connect the target.

  • Hi Santosh,

    Thanks a lot for the reply.  I tried to clear the GEL file from the target configuration file. However the order of operation isnt very clear to me.

    I have an ISR on the RAM of the MCU which blinks an LED.  When the debugger looses communication with CCS, I can still see the LED blinking confirming that it is just a communication issue.  I cannot access any of the debug variables at this point.

    1) After this I went to the target configuration and deleted the link to the GEL file in the initialization script box. I guess I am not sure if that is all that I need to do to remove the GEL file as I cannot see the delete symbol get highlighted. Do I need to go to the workspace and delete the GEL file?

    2) After this I tried to connect to target from the run tab in debug view, but it actually halts the ISR.  After I hit resume I can see the LED blinking again, but it does not allow access to the variables.

    Not sure if I am doing anything wrong in this process.  I would appreciate any suggestions.  Also would deleting the GEL file create any problems the next time I have to download code from CSS using the same target configuration file?

    Thank you,

    Aditya Ghule

  • Aditya,

    When your target is running, and you want to attach the debugger without reseting the target, you can do following steps:

    1. Open target configuration file, select cpu1, and remove the gel file.
    2. Save the target configuration file. In the Target Configuration View, select .ccxml file, Right-Click  and launch it.
    3. Connect CPU1, (select cpu1 in debug view, right-click and connect)
    4. Then go ro CCS menu run->load, select load symbols (point to your out file), and run. Here you are not loading the program to target, rather just loading the symbols to debug.

    Let me know if you still have issue.