CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Debugger: possible to attach to a "locked up" PIC?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
allenhuffman



Joined: 17 Jun 2019
Posts: 537
Location: Des Moines, Iowa, USA

View user's profile Send private message Visit poster's website

Debugger: possible to attach to a "locked up" PIC?
PostPosted: Mon Aug 19, 2019 9:22 am     Reply with quote

On many debuggers I have worked with, it is possible to attach to a running system and see where it is. This is useful when a system is (or appears to be) locking up.

I do not see anything I recognize as an "attach to" option in the debugger, so I thought I'd ask here.
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Mon Aug 19, 2019 9:53 am     Reply with quote

Not possible.

The debuggers on the PIC, rely on having a microcode debug executive
loaded into the chip. So the code has to be programmed with this present
and loaded.
You were probably using a hardware debugger that stopped the primary chip
and took over the bus, and monitored the registers.
allenhuffman



Joined: 17 Jun 2019
Posts: 537
Location: Des Moines, Iowa, USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Aug 19, 2019 10:30 am     Reply with quote

Ttelmah wrote:
Not possible.
The debuggers on the PIC, rely on having a microcode debug executive
loaded into the chip. So the code has to be programmed with this present
and loaded.
You were probably using a hardware debugger that stopped the primary chip
and took over the bus, and monitored the registers.


Good to know. Thank you.
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Mon Aug 19, 2019 10:53 am     Reply with quote

As a comment, I assumed by 'debugger', you meant ICD?. I do actually have
a full hardware debugger for quite a few PIC's and this does support hot
connection, but is a very expensive system and 'not common'. Assumed you
didn't have such a system. I don't think they are made anymore.
allenhuffman



Joined: 17 Jun 2019
Posts: 537
Location: Des Moines, Iowa, USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Aug 19, 2019 11:22 am     Reply with quote

Ttelmah wrote:
As a comment, I assumed by 'debugger', you meant ICD?. I do actually have
a full hardware debugger for quite a few PIC's and this does support hot
connection, but is a very expensive system and 'not common'. Assumed you
didn't have such a system. I don't think they are made anymore.


We use the ICD-U80s and some PICKIT thing, but I haven't worked with it yet.
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Mon Aug 19, 2019 12:25 pm     Reply with quote

Yes, so standard ICD's. Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group