How to setup Atmel-ICE to program an ATmega328 on PlatformIO with VSCode on Windows 10

@jcsb1994 @maxgerhardt is the guy to talk to, but this is what I have:

“platformio.ini”:

[env:My_328p8m]
platform = atmelavr
board = My_328p8m
framework = arduino
upload_protocol = atmelice_isp
upload_flags = -e

He also mentioned he made changes to the 328p8m.json file, which would be ATmega328P.json in my case. I don’t even know where to find it. Would that be relevant?

BOARD FILES:
PlatformIO Board Files:
C:\emacs.platformio\platforms\atmelavr\boards

My Board Files:
C:\Users\David.platformio\boards

Firmware binary file location for for board:
[PROJECT_DIRECTORY].pio\build\My_328p8m\firmware.hex

Hope this helps, brother!

1 Like