Hello,
I'm trying to broaden my knowledge by learning to program my own Atmega CPU but have encountered some problems that I can't seem to figure out a solution to.
I've bought 2 Atmega328P microcontrollers and connected them properly according to the Data Sheet which I will go through in this topic. But can't seem to upload the simple Example - Blink, code to the Atmega.
This is the pin structure of the Atmega.
This is the FTDI chip I'm using.
I've connected 5V to pin 7 and 20, GND to pin 8.
I have a 16Mhz crystal between XTAL1 and 2, as well as two condensators with 22pf later connected to GND.
RX to TX and vice versa, as well as a 10kOhm resistor from pin 1 to +5VDC.
I open Arduino IDE and select the appropriate port,
Board = "Arduino Duemilanove or Diecimila"
Processor = "Atmega328P"
Programmer = "AVRISP MKII" (Not sure what this one should really be).
I've downloaded the drivers for my FTDI chip.
Error 1:
Warning: Board breadboard:avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB
Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xb7
Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.
Error 2:
** Using Port : COM5**
** Using Programmer : arduino**
** Overriding Baud Rate : 115200**
avrdude: ser_open(): can't open device "\.\COM5": Access is denied.


