raspberrypi / debugprobe

785 stars 211 forks source link

Picoprobe/OpenOCD can crash, requiring power cycle #104

Open byteit101 opened 1 year ago

byteit101 commented 1 year ago

Unsure where this should be reported, but about once every 5 minutes I have to pull the power on the picoprobe and DUT and plug them both in again to reset them. During this time, Serial/UART bridge is broken and doesn't work too. I'm not sure what triggers this, as it usually spontaneously happens when I'm not doing anything in particular beyond UART reading. Sometimes I'm connected via GDB, sometimes I'm not. If I only reset power for the picoprobe, the led stays off until I reset power to the DUT too.

Symptoms via OpenOCD:

...
Error: CMSIS-DAP command CMD_SWD_Configure failed.                                                                                           
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                                                                                 
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_SWD_Configure failed.                                                                                           
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                                                                                 
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                                                                                 
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_SWD_Configure failed.                                                                                           
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                                                                                 
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_SWD_Configure failed.                                                                                           
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                                                                                 
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_SWD_Configure failed.                                                                                           
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                                                                                 
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                                                                                 
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_SWD_Configure failed.                                                                                           
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                                                                                 
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_SWD_Configure failed.                                                                                           
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_DISCONNECT failed.                                                                                              
Error: error writing data: No such device (it may have been disconnected)                                                                    
Error: CMSIS-DAP command CMD_CONNECT failed.                                    
...
P33M commented 1 day ago

I have sort-of reproduced this. If you connect the probe to an unpowered Pi, then jiggle the Pi power connector in-out you can get the probe to stop responding (but UART LEDs still flash, so it's not crashed).