Uploading code to ATMega328P-AU

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