avrdude: ser_open(): can't open device "\\.\COM30": Access denied

I am trying to upload a sketch to an atmega328 via FTDI USD adapter and the arduino IDE show me this error:

avrdude: ser_open(): can't open device "\.\COM30": Access denied

and follows more errors:

Problem uploading to 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=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x6a

After researching I do nothing, and I thougth to use an older arduino IDE version [arduino-0022]. The second IDE shown me this error:

avrdude: stk500_getsync(): not in sync: resp=0x4f
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I have already downloaded and unistalled the FTDI drivers. When I plug in the adapter the number of com port show up.

  1. Is the 328P bootloaded? (I bootload all my 328Ps as Uno) You can't do a serial download if it is not.

  2. How is your circuit wired up? Does it look like the connections in a Duemilanove, with DTR going thru a 0.1uF cap to Reset, with a 10K pullup from Reset to Vcc?
    https://www.arduino.cc/en/uploads/Main/arduino-duemilanove-schematic.pdf
    I often leave out the resistors on the Rx & Tx lines when I don't plan to use the serial pins for anything except serial comm's via USB.

  1. The atmega is 328 with the bootloaded, I know that has the bootloaded because every time I turn on the circuit the led at the 13 pin is bling ones.

What do you mean when you say "I bootload all my 328Ps as Uno"?
I had bought this atmega from ebay separately.

  1. My circuit has DTR going thru a 0.1uF cap to Reset, with a 100K pullup from Reset to Vcc?

I use this FTDI adapter and works, with a 100 or 10 resistor and a 0.1μF, like you said.

But with this FTDI adapter with the same cyrcuit it doesn't work.

Why?

They have a different pinout - have you accounted for that?

The first one has the usual Gnd Cts Vcc Tx Rx DTR

The second one has 3.3 Gnd 5v Tx Rx DTR.

If you account for that in your connections, the second one should work.