View previous topic :: View next topic |
Author |
Message |
allenhuffman
Joined: 17 Jun 2019 Posts: 552 Location: Des Moines, Iowa, USA
|
Debugger: possible to attach to a "locked up" PIC? |
Posted: Mon Aug 19, 2019 9:22 am |
|
|
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: 19520
|
|
Posted: Mon Aug 19, 2019 9:53 am |
|
|
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: 552 Location: Des Moines, Iowa, USA
|
|
Posted: Mon Aug 19, 2019 10:30 am |
|
|
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: 19520
|
|
Posted: Mon Aug 19, 2019 10:53 am |
|
|
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: 552 Location: Des Moines, Iowa, USA
|
|
Posted: Mon Aug 19, 2019 11:22 am |
|
|
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: 19520
|
|
Posted: Mon Aug 19, 2019 12:25 pm |
|
|
Yes, so standard ICD's. |
|
|
|