Uploading code to ATMega328P-AU

Hi,

I am using exactly this chip in a PCB for a project. The thing is that I wanted to program it using Arduino IDE but then I realized about all that bootloader things that must be done.

This way, I burned the bootloader successfully, but anyway, it doesn't allow me to upload code anymore. I am using the RX, TX, DTR, CTS, GND and Vcc pins as if it was a common Arduino board.

By the way, I had the genius idea to disolder one of this chips from an Arduino board that already had the code inside. And everything was good! However, it doesn't allow me to upload code again.

Could anyone give me some feedback? Maybe I'm missing something.

Thank you so much for your time, regards!!

We can't see how the board is wired. Post a schematic of the PCB.

Thank you for your kind answer. Here is the scheme.

I see 3.3V, so assume that you're not running at 16MHz; did you burn an adjusted bootloader?

A bootloader is only needed if you want to upload code to the board via the UART. If you can burn the boot loader, you can burn your program the same way :wink:

Hi,

This are the settings that I'm using for my application:

Could you explain a bit more about burning my program on that way? Or maybe provide some source.

Thank you so much for your help :slight_smile:

In the IDE, menu sketch -> upload using programmer.

Hi,

I'm also confused with uploading code to this microcontroller but using the Arduino IDE software.
Is that possible? I am trying to upload it using and ISP programmer (Atmel STK500) but nothing seems to work :frowning:

Thank you in advance!

I dunno about you, but I like to keep it simple and just program it directly over ICSP. No STK500 or other hardware needed.
If I want to go all fancy, I chuck a CH340G in there and make it a Nano-clone so that I can play with Serial as well. But that requires SMD soldering; it may not be up your alley.