Arduino uno ATmega328PB CH340G

Basic Information:

Printer Model: None
MCU / Printerboard: Arduino Uno ATmega328PB CH340G

I am trying to burn klipper on this arduino uno, but from linux mint… without success

1 Like

maybe the same challenge i had with my nano in my MPCNC?

Flashing: Chips like the Nano with OldBootloader have to be flashed with 57000 Boud,
if necessary you have to flash manually, 
e.g. avrdude -C/etc/arduino/avrdude.conf -v -patmega328p -carduino -b57000
-P/dev/ttyUSB0 -D -Uflash:w:out/klipper.elf.hex:i 
Support for the atmega328p doesn't seem to be around that long, it sometimes pinches when flashing.

Did you solve it? with the nano there are some differences…
I see that many contain the nano but with a Raspberry and I am using a netbook…

as already mentioned above … klipper also uses an avrdude call, but with a different boud rate. Arduino Boards with an old bootloader have to be flashed with 57000 boud. The shown avrdude call is an example depending to my config. Maybe you are faced to the same challenge.

You didn’t provide any details about the issue that you’ve encountered.

Before reflashing my printer firmware, I’ve tested the various components I had with klipper installed on an Arduino UNO connected to an AMD64 laptop, everything worked just fine. And yes, I was able to flash it, but my host OS (openSUSE Leap 15.5) had some library version conflicts, so I’ve decided to build and flash Klipper from a privileged debian:buster docker container, using the official installation guide. I’ve also tried bullseye and bookworm, but I had some issues, I don’t remember exactly what, but it was dependency version conflict again.

In the “build” part the ATmega328PB does not exist, so I looked for another method, but it is only available for Raspberry apparently…

The ATmega328PB just has a few extra features on some of the pins, otherwise it’s compatible with ATmega328P, and code will run without changes on ATmega328PB, see: AT15007: Differences between ATmega328/P and ATmega328PB

And as for raspberry pi, it just runs a linux distribution, there are plenty of guides around detailing how to do the same on various linux distros like mint.

Do you have any example I can follow? or something similar? srry, I’m a newbie and everything I found doesn’t work for me or I don’t know how to make it work.

I’ve just read the docs (see Klipper Architecture / Ecosystem and Building and flashing the micro-controller) and verified my setup against scripts/ci-install.sh, to make sure I have all required dependencies.

There’s olso OS Sanity Checks and Fixes from the KIAUH KB-page. Sineos has done a great job documenting things, you just need to look around until you understand what’s needed.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.