Problem writing some code in ATMEGA328P off the platform Arduino UNO.

Hi folks. I'm in trouble to record the sample code "blink" in ATMEGA328P outside the Arduino UNO platform; the bootloader is already recorded.
I'm using Windows 10 and the IDE v1.6.1,
and the message that appears is:

avrdude: ser_open (): Can not open device "\ \ COM3.": Access is denied.
Problem loading for the board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 1 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 2 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 3 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 4 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 5 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 6 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 7 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 8 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 9 of 10: not in sync: resp = 0x4A
avrdude: stk500_recv (): programmer is not responding
avrdude: stk500_getsync () attempt 10 of 10: not in sync: resp = 0x4A
Problem loading for the board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

configuring the IDE's how:

  • Arduino Duemilanove or Diecimila
  • Processor: ATmega 238
  • Scheduler: AVRISP MkII

The wiring diagram is:

If anyone can help me I will be grateful!