"avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00" with AVRDUDE outside of Arduino IDE

Viewed 48

I'm in macOS 12.5.1 on Intel-based MacBook Pro using a ATmega328P in Audio Uno, avr-gcc and avrdude integrated by Makefile in VSCode IDE for my development.

I've my program done. But it tried ten times avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding and reported avrdude: opening programmer "avrisp" on port "/dev/tty.usbmodem14301" failed when I use avrdude -c avrisp -p m328p -b 19200 -P /dev/tty.usbmodem14301 -U AVRTest.hex to upload my program to on-board microcontroller on Arduino Uno.

enter image description here

However, after a while, what error I mentioned above disappeared. But it also has an error that avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check.

enter image description here

By the way, I successfully uploaded a program in Arduino IDE but failed to burn Bootloader with an error Error while burning bootloader..

enter image description here

Does it means it's impossible to load program to Arduino Uno's on-board microcontroller via AVRDUDE outside of Arduino IDE? If not, how can I fix this?

0 Answers
Related