AVRDUDE and the 328PB chip
Generally, it has always been a headache to upload to 328PB chips using the Arduino IDE interface. With the latest batch, it is just impossible it seems.
- Install AVRDUDE, on Windows from here: https://github.com/mariusgreuel/avrdude
- Generate the hex file using the Arduino IDE
- Power the board from a PSU @ 15+V
- From the Command Prompt, run
avrdude -p m328pb -c stk500v2 -B 10 -U flash:w:BH.hex -P COM8 -U lfuse:w:0xFF:m -U hfuse:w:0xDF:m -U efuse:w:0xF9:m
Obviously, the filename and the COM port number needs to be adjusted.
- m328pb is the chip type
- stk500v2 works fine with the ISP we have
- -B 10 sets the timing right. This is critical.
- lfuse has to be set to FF, otherwise it will use the internal oscillator!!
While I had earlier trouble with PB chips apparently consuming more than the P ones, the latest generation seems superb! Almost certainly was a configuration issue.
No comments to display
No comments to display