Hey all, thank you for taking the time to help me out!
[Quick spec rundown, I'm using a CH340G Nano 16M ATmega328P Micro-Controller Board that I'm trying to program on a Windows 10 computer via USB]
I'm trying to get an "arduino compatible" board up and running, but it won't let me upload any sketches. I've installed the CH34X drivers and the bootloader is definitely there judging by how the LEDs light properly when attempting to load a sketch, but whenever I try to upload I get errors. I don't always get the same error, however. Some of the errors include:
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xfc
avrdude: stk500_set_extended_parms(): unknown response=0x00
avrdude: stk500_initialize(): failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x10
avrdude done. Thank you.
or
An error occurred while uploading the sketch
avrdude: stk500_getsync(): can't communicate with device: resp=0xfc
avrdude done. Thank you.
or
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): unknown response=0x04
avrdude done. Thank you.
I'm not sure what to do about this, because the resp always seems to be garbage, with 0xfc coming up most often.
I've also tried to loopback test, which appears to be functioning properly (Tx and Rx light up when I send a message, and putting the baud at 300 I can see flashing so there's real data being transmitted, supposedly), except I don't get any text back in the console. Messing around connecting Tx/Rx to ground repeatedly I can get garbage text in the console in the form of ⸮'s and boxes, so supposedly the data coming back is being read.
I've tried
- Reinstalling the drivers, as well as trying drivers sourced from different sites
- Uploading sketches from both a Macbook laptop and a Windows 10 computer (both with the proper drivers)
- Resetting the board at various times before, during, and after hitting the upload button
- Changing COM ports, and verifying under the Devices menu that the board is being detected
- Changing the board/programmer settings under Tools
all to no avail.
Any help would be appreciated, thank you all so much!