<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
has entries for both ATmega328P and ATmega328PB (and they differ only in<br>
"signature"). It's just a text file, maybe editing that allows you to<br>
transplant the 328PB into your avrdude.</blockquote><div><br></div><div>I've had to do something like that in mine to get the Arduino IDE to program the 328pb on some of my projects, I also needed to edit the boards.txt (make sure to back them up) to change the fuse bits as default changed some frequencies and affected delays etc.</div><div>it's a pain switching the config files around when you use original 328p boards but I dont think the boards.txt affected the original boards too much</div><div><br></div><div>I have found the arduino bootloader may not work properly on the 328pb at least on my projects, not sure if wiring error, I did base the pinouts/schematic for those pins on the Nano schematic serial port pins (ground reset RX TX). IE using the serial port programmer after using "burn bootloader" doesnt seem to work, (doesnt respond, I may need to update something, I dont think I have the cutting edge version of arduino editor though)</div><div><br></div><div>there must be a way of adding an entry on the "boards list" to get the 328pb to work without needing to switch config files all the time<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 22, 2020 at 12:15 AM Volker Kuhlmann <<a href="mailto:list57@top.geek.nz">list57@top.geek.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue 21 Apr 2020 13:04:42 NZST +1200, Mark Atherton wrote:<br>
<br>
> However the legacy 'USART_RX_vect' is now called 'USART0_RX_vect'.<br>
<br>
Uggh. One almost has to laugh...<br>
<br>
> Also, AVRDUDE does not know about the PB part, so I had to hard-wire<br>
> 328P into Makefile.<br>
<br>
avrdude 6.3-20190619, shipped with Arduino IDE 1.8.12, almost certainly<br>
does know the 328PB.<br>
<br>
  hardware/tools/avr/etc/avrdude.conf<br>
<br>
has entries for both ATmega328P and ATmega328PB (and they differ only in<br>
"signature"). It's just a text file, maybe editing that allows you to<br>
transplant the 328PB into your avrdude.<br>
<br>
Volker<br>
<br>
-- <br>
Volker Kuhlmann<br>
<a href="http://volker.top.geek.nz/" rel="noreferrer" target="_blank">http://volker.top.geek.nz/</a>      Please do not CC list postings to me.<br>
<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank">Chchrobotics@lists.ourshack.com</a><br>
<a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.</blockquote></div>