Programming the ATmega328PB Xplained Mini By Using mEDBG

  1. Connect the mEDBG USB to the PC.
  2. Go to the Atmel Studio: Click Tools, select Device Programming, and then select the connected mEDBG as Tool with Device as ATmega328PB and Interface as ISP, click Apply.
  3. Select Memories and locate the source .hex or .elf file and then click Program.
  4. If the source contains fuse settings, go to Production file and upload the .elf file and program the fuses.
Note: If ISP programming fails it could be because the debugWIRE is enabled. See Debugging the ATmega328PB Xplained Mini By Using mEDBG on how to disable debugWIRE mode.