Uploader Firmware for UNO-NANO with ubasp

Hello I still ude the Arduino IDE to install a new firmware on an 328p,
how can I do this with the PlatformIO IDE

I take it you want to use a USBASP programmer to program a Arduino Uno or Nano? Or do you mean a new bootloader? I’ll assume it’s the former for now, as whilst I know it’s possible to install a new bootloader via PlatformIO, I’ve not tried it myself yet.

In the case of uploading a new program, you’ll want to refer to the Upload via Programmer documentation. But in a nutshell:

  1. Add the following to your projects platformio.ini file
upload_protocol = usbasp
upload_flags =
  1. Use the Upload with Programmer target rather than the Upload one.

1 Like