I am making a project/hobby drone using an arduino pro mini as the onboard computer, after finishing the soldering i uploaded code to the pro mini using a CP2102 USB to TTL UART, since the module that i bought didn’t have a DTR pin i just reset the pro mini manually during upload.
For the first couple of weeks this worked perfectly, afterwards at some point i didn’t touch the arduino pro mini (or the project in general) for about 3/4 days, and when i came back uploads started failing, using the exact same method.
The CP2102 using the loopback test seems to work fine, all the connections seem to be intact while measuring with a multimeter. One answer to this problem that i found online is a corrupted bootloader (which I’m not sure how it would get corrupted), i couldn’t test the specific problem and/or burn the bootloader since i no longer have access to the ICSP pins. My question is do you think the bootloader is the problem, and if so, is there a way to fix it using only the TX/RX/VCC/GND pins ?
Additional info:
I’ve checked that i have the correct board and com port selected during upload. The power led on the arduino is always on (when connected), while the user/built-in led is always off (even though i had previously uploaded a sketch, altough i don’t rember how it interacted with the built-in led since i have now uploaded and tested many different sketches). Now on the CP2102 the power led seems to work fine, while the TX pin shines very dimly periodically, and the RX led doesn’t shine at all (while previously when i was able to upload code succesfully to the arduino ,both TX and RX leds shined brightly). And here is the error that i am getting during upload:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x27
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x27
Failed uploading: uploading error: exit status 1
And as i said previously, i was able to upload code consistently with manual reset (using the above method) for at least 2/3 weeks, and the only event that i can think off between the upload working and not working was an update on my PC, which afterwards I tried to make sure that all the drivers and the com-ports where visible and working as intended.