Hi, I made my first PCB using Atmega 328pb micro controller. I have an ICSP header on the board for programming. I successfully burnt the bootloader using the OptiLoader (
https://github.com/WestfW/OptiLoader ) using an Arduino UNO board. However, I can't seem to program the microcontroller. I am trying to program the microcontroller using "Arduino as ISP". I took the following steps in the Arduino IDE.
1) Uploaded the Optiloader Sketch to Arduino UNO board.
2) Connected the ICSP header as described in the OptiLoader Sketch and opened Serial Monitor.
The bootloader was burnt successfully to the microcontroller.
3) Uploaded the Arduino ISP sketch using "AVRISP MkII" programmer option to the Arduino Uno Board.
4) Uploaded a test sketch (turning a pin HIGH/LOW every 500 ms) to the microcontroller using "Arduino as ISP". I chose the board as the "Arduino /Genuino Uno" in the "Tools" menu in the Arduino IDE.
The sketch got uploaded to the Arduino Uno board instead of the microcontroller. I don't know what I am doing wrong. Does anyone have any suggestions for this problem? I only have ICSP header available for programming.
Thanks!