Jump to content
Sign in to follow this  
TheDSP

[Piccolo] Real time debugging with the C2000 Launchpad?

Recommended Posts

Hello.

I`m really excited with the release of the c2000 launchpad. I come from the delfino and was wondering if real time debugging is possible with the XDS Jtag onboard. Real time debugging is one thing I like about C2000.

Share this post


Link to post
Share on other sites

Absolutely! The C2000 LaunchPad supports real time debug.

 

For those of you new to C2000, real time debug allows you to monitor and change application variables in real time while the CPU is executing your application code. This enables easy debug of the complex analog control loop that our processors typically control.

 

I believe there is some info on the wiki here:

http://processors.wiki.ti.com/index.php/Real-Time_Mode_Debug_with_CCStudio

Share this post


Link to post
Share on other sites

Hi!

I am currently experimenting to get the real-time debug mode running on the c2000 launchpad but no matter what I do I always get the following error:

Trouble Reading PC Register:
(Error -1142 @ 0x0)
Device blocked debug access because it is currently executing non-debuggable code. Choose 'Rude Retry' to disable polite mode and force the operation.
(Emulation package 5.1.8.0)

 

I am using CCS 5.3 with latest updates and latest controlSUITE.

I also tried with a blank project. Normal debugging is fine, but real-time mode does not work :-(

 

UPDATE: The blinking led project as described here http://www.forum.c2kcentral.com/topic/89-real-time-control-a-c2000-debugging-gem/ actually seems to work, but the c2000 launchpad demo does not. The above error is shown.

 

UPDATE 2: Probably the problem has something to do with some special settings, e.g. is a call to CPU_enableDebugInt() required?

 

UPDATE 3: Now it seems to work :-) I have not really changed anything, probably just restarted CCS. So the trick is to enable real-time debug, then run and if the vars don't refresh, to just toggle the "continuous refresh" button until refresh begins. The instructions in the link above are very good.

 

Thanks in advance for any help.

 

Regards,

Anguel

Share this post


Link to post
Share on other sites

Anguel,

Sorry for my slow reply, I've been busy the last few days.

 

Sometimes the real time debug mode can cause the debug interface to get a little weird.  I've had pretty good luck with it as long as I don't try to load code in while the real time debug mode is enabled.  Otherwise it will behave like you've described above.  Just turn off real time debug mode before loading code.

 

Trey

Share this post


Link to post
Share on other sites

Tray, thank you for the help. Maybe it just had something to do with the auto-update I did to my CCS 5.3, now the problem does not reappear, although I am testing with exactly the same projects (your demo project is in flash and the others are injected by the debugger into RAM).

 

BTW, after the auto-update of CCS 5.3 I got some errors listed after install finished but things still seem to work ok. I now have the old v6.1.0 and the new v6.1.2 compiler but I also got each debugger (e.g. XDS100v2) listed twice in the project settings dropdown. Is this expected and can I uninstall the older version somehow?

 

Anguel

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...