AtmelStudio can't upload but Arduino IDE can? Help needed!

Hey,

I am trying to flash an AtmelStudio project to an Arduino Pro Micro but it fails whenever I deploy it with the following command:

C:\Arduino\hardware\tools\avr\bin\avrdude.exe

-CC:\Arduino\hardware\tools\avr\etc\avrdude.conf -v -v -v -v -patmega32u4 -cavr109 -P\.\COM8 -b57600 -D -Uflash:w:"LOWLEVEL_CDC1.hex":i

This is the output window where the issue is:

Connecting to programmer: .avrdude.exe: Send: . [1b]
avrdude.exe: Send: S [53]
avrdude.exe: ser_recv(): programmer is not responding
avrdude.exe: butterfly_recv(): programmer is not responding

avrdude.exe: ser_recv(): programmer is not responding
avrdude.exe: butterfly_recv(): programmer is not responding
avrdude.exe: Send: V [56]

The Arduino IDE works fine and I have tried using the following drivers which all work in the IDE and fail in AtmelStudio:

-Arduino Leonardo
-Arduino Leonardo Bootloader
-Arduino Micro

If anyone can offer some advice it would be very much appreciated.
Thanks :smiley:

Do you have the bit that does:

Forcing reset using 1200bps open/close on port /dev/cu.usbserial-FTD61T6Q

You can do the reset with "mode com8:1200,n,8,1"
But then it takes a sort of indeterminate time for the com port to reappear, and if you start avrdude before then it will complain that the com port doesn't exist.