This is likely a very noob question so I apologize in advance.
I have connected the PICkit 4 to the ATMEGA328P in the way this blog post, https://www.yorku.ca/professor/drsmith/2021/07/23/debuggers-mplab-x-and-the-arduino/, which is a post by a york university prof so I think its right.
The error message I am getting is:
'
Data transmission failed. Error code -112 returned while trying to send USB data.
A communication error with the debug tool has occurred. The tool will be reset and should re-enumerate shortly.
Connection Failed.
'
And then in the debugger console:
'
Launching
Could not connect to tool hardware: pk4hybrid, com.microchip.mplab.mdbcore.pk4hybrid.Pk4HybridTooImpl
The debugger could not be started. Terminating debug session.
User program finished
'
I am guessing that the problem is arising with communication between the PICkit4 and the ATMEGA328p.
Of note is that the ATMEGA chips I am using are old but I tried 4 of them. I bought them from digikey about 6 years ago. I do have some ATtinys on the way for a project so I will be retrying with them.
What could be the problem? Where can I find information about the error code?
I have connected the PICkit 4 to the ATMEGA328P in the way this blog post, https://www.yorku.ca/professor/drsmith/2021/07/23/debuggers-mplab-x-and-the-arduino/, which is a post by a york university prof so I think its right.
The error message I am getting is:
'
Data transmission failed. Error code -112 returned while trying to send USB data.
A communication error with the debug tool has occurred. The tool will be reset and should re-enumerate shortly.
Connection Failed.
'
And then in the debugger console:
'
Launching
Could not connect to tool hardware: pk4hybrid, com.microchip.mplab.mdbcore.pk4hybrid.Pk4HybridTooImpl
The debugger could not be started. Terminating debug session.
User program finished
'
I am guessing that the problem is arising with communication between the PICkit4 and the ATMEGA328p.
Of note is that the ATMEGA chips I am using are old but I tried 4 of them. I bought them from digikey about 6 years ago. I do have some ATtinys on the way for a project so I will be retrying with them.
What could be the problem? Where can I find information about the error code?