Hi ALL
I am trying to program a standalone ATmega328 via an Atmel ICE programmer.
In the past week I think I have gone through every single item that comes up from a Google search but cannot get anything to work.
Does anybody have, or is able to point me in the right direction, an INI file that works.
I am running PlatformIO within VSCode and a Windows 11 desktop PC.
Thanks
Mike
I’m not very familiar with this matter myself, but have you seen previous discussions on this topic?
Please post your current platformio.ini and the output of project tasks → Advanced → Verbose Upload here, as well as your wiring between the Atmel ICE and your ATMega328 board.
Well Good News
After going through all of the settings trying to reply to maxgerhardt I stumbled across the problem.
I checked Devices in PlatformIO and found that the Atmel ICE was not there so I double checked the drivers with Zadig and they were OK.
Next I did a Google search “atmel ice not showing in platformio device list” and it states " The Atmel-ICE will never appear in the PlatformIO device list because it is a dedicated programmer/debugger, not a serial/COM port device. The PlatformIO device list only displays virtual COM ports or serial devices (like an Arduino Uno connected via USB). It then gives an example INI file which I used and it worked!!!
Here is the final INI file.
type or [env:ATmega328P]
platform = atmelavr
board = ATmega328P
framework = arduino
upload_protocol = atmelice_isp
board_upload.require_upload_port = no
upload_flags = -e
upload_port = usb
Thanks for the help.
Mike