Hello everyone.
I am trying to make a simple LED blink using the microcontroller ATMEGA328P on breadboard, serial port and Arduino from here .
However, I got his avrdude problem while trying to upload the code into the microcontroller. I also have refer the forum through here and try the possible suggestions but still not working . Kindly need your advices regarding this issue.
I'm using Win10 and Arduino IDE (latest version). I've done the following but the avrdude still occur:
- changed the board from UNO to Nano and select the 328P / 328P (old bootloader)
- Installed FTDI serial drivers, and use #include <SoftwareSerial.h) library
- Installed Minicore driver, use ATMega 328p board
- Changed the programmer from one to another
- Bought new ATMEGA328p without bootloader and burnt the bootloader into it
The error that I got appears as:
> vrdude: Version 6.3-20190619
> Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
> Copyright (c) 2007-2014 Joerg Wunsch
>
> System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
>
> Using Port : COM3
> Using Programmer : arduino
> Overriding Baud Rate : 57600
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x01
> avrdude: stk500_recv(): programmer is not responding
> avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x01
>
> avrdude done. Thank you.
>
> Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.
My code is :
#include <SoftwareSerial.h>
volatile int value = 1000; //Set the delay integer
void setup() {
// put your setup code here, to run once:pinMode(13, OUTPUT); //Set digital pin13 as output
attachInterrupt(0, blink, RISING); //attch an interrupt module
}void loop() {
// put your main code here, to run repeatedly:
Serial.begin(9600);
digitalWrite(13, LOW); //Set digital pin13 to Logic 0
delay(value); //Set delay value to milliseconds
digitalWrite(13, HIGH); //Set digital pin13 to Logic 1
delay(value); //Set delay value to milliseconds
}void blink() {
value = value - 200; //Decrease the interrupt by 200
}