Download microchip studio from here https://www.microchip.com/en-us/tools-resources/develop/microchip-studi
Install the program.
I use USBASP to program AVR ATmega328pb.
Go to Tools > External Tools > ADD
Command: location of avrdude
C:\WinAVR-20100110\bin\avrdude.exe
Arguments:
-c usbasp -p m328pb -U flash:w:$(ProjectDir)Debug\$(TargetName).hex:i
Check the Use Output window to be able to see the output of the avrdude inside the microchip studio terminal.
Leave a Reply