I want to try programming my Nano using Atmel Studio 6 but I don't want Arduino core libraries, just pure AVR C. So, following guides, I've set up new External tool in Studio with following parameters:
Title: Serial Program
Command: D:\Applications\Arduino\hardware\tools\avr\bin\avrdude.exe
Arguments: -C D:/Applications/Arduino/hardware/tools/avr/etc/avrdude.conf -v -v -patmega328p -carduino -P\.\COM7 -b115200 -D -Uflash:w:"$(ProjectDir)Debug$(ItemFileName).hex":i
But after trying to upload the code I'm getting not in sync errors by avrdude (note that it works fine with Arduino IDE). I think that "-carduino" argument needs to be changed. Any help?