Need help running RADDS + DUE

Basic Information:

Printer Model: BLV MGN12
MCU / Printerboard: Arduino DUE + RADDS
Host / SBC - RaspberryPi 3
klippy.log
klippy.log (376.9 KB)

Describe your issue:

Hy guys,
i´m trying to switch from Repetier 0.92 to klipper.
My Problem is that Mainsail/Moonraker wont connect to my DUE.
I flashed the generated Klipper.bin via Bossa Prgrammer and also via kiauh. I tried both USB Ports, but every time i try to connect it stops with “mcu ‘mcu’: Unable to connect”
I generated the Klipper.bin via kiauh MCU=Sam3/Sam4/Sam E70, processor: SAM3x8e, Interface: USB.
I Changed in printer.cfg all possible values for USB :
#serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_9543231333835101F040-if00
#serial: /dev/serial/by-id/usb-03eb_6124-if00
serial: /dev/ttyACM0

nothing works …
Could someone help me?

ps: sorry for my bad english

The general algorithm would looks like for USB:

  1. Flashing, for USB, you have probably done that.
[*] Enable extra low-level configuration options
    Micro-controller Architecture (SAM3/SAM4/SAM E70)  --->
    Processor model (SAM3x8e)  --->
    Communication interface (USB)  --->
    USB ids  --->
[*] Optimize stepper code for 'step on both edges'
()  GPIO pins to set at micro-controller startup

Probably it would look like that.

  1. You try to disconnect it. Run lsusb and check the list.
  2. Connect it, run lsusb check the difference.
    There would be a new line, probably named like OpenMoco <blah-blah-blah…>

If that’s so, then you simply do the:

ls -al /dev/serial/by-id

Found some files, like in your examples above “usb-Klipper_sam3x8e_somefancynumbers-if00”

And, well, use that name:

[mcu]
serial: /dev/serial/by-id/usb-Klipper_sam3x8e_fancynumbers-if00

Obviously, you have to find your local names and use them. Mine will not work.

Hope that helps.

Hy and Thx Nefelim4ag for helping.

When i run lsusb I`ve got an difference :
Bus 001 Device 005: ID 2341:003d Arduino SA Due Programming Port

So, if i do : ls -al /dev/serial/by-id, i got a :

usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_9543231333835101F040-if00 → ../../ttyACM0

but thats the same text i already tried.
If i copy this text it wont work.
Also i hat before this text, but without the " → ../../ttyACM0" on the end.

But i still get :

Klipper reports: ERROR
mcu ‘mcu’: Unable to connect

This makes me crazy …

That only means it is in programming mode, as stated in the name.
So, you need to flash it, or do something to boot it into the firmware, not a bootloader.
You can probably flash it by:

make flash FLASH_DEVICE=/dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_9543231333835101F040-if00

But how to change the boot mode, or reboot into the firmware, I don’t know.
I never had an arduino.

The Arduino DUE has an Programming and an Native USB Port.
I use everytime the programming port (worked with Repetier the whole time). Because i use this port, the name is Arduino_due_Prog.Port

But i tried to flash it with the native Port via Kiauh.
He gaves me an ok by erasing the flash and 100% flashing.
When i use KIAUH over the RespberryPi and select “Get MCU ID” he gaves me _ /dev/serial/by-id/usb-03eb_6124-if00
But still same Problem. I changed the Value in the printer.cfg and stil : mcu ‘mcu’: Unable to connect.

Here you can read the flashing text:

Flashing /dev/serial/by-id/usb-03eb_6124-if00 …
Stop klipper.service …

[✓ OK] Stop klipper.service successfull!
Flashing out/klipper.bin to /dev/serial/by-id/usb-03eb_6124-if00
Entering bootloader on /dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0
Device reconnect on /dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0
lib/bossac/bin/bossac -U -p /dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0 -e -b -w out/klipper.bin -v

Erase flash

Done in 0.023 seconds
Write 35720 bytes to flash (140 pages)
[==============================] 100% (140/140 pages)
Done in 0.976 seconds
Verify 35720 bytes of flash
[==============================] 100% (140/140 pages)
Verify successful
Done in 0.703 seconds
Set boot flash true
[✓ OK] Flashing successfull!

Start klipper.service …

[✓ OK] Start klipper.service successfull!

Slowly I´m thinking i can only use Repetier on this Board …

Well, because this is the id of the USB2UART converter, not the MCU.
/dev/serial/by-id/usb-03eb_6124-if00
If you want to use it, mcu should be compiled to use UART on an appropriate port.

Probably like this:

[*] Enable extra low-level configuration options
    Micro-controller Architecture (SAM3/SAM4/SAM E70)  --->
    Processor model (SAM3x8e)  --->
    Communication interface (Serial)  --->
(250000) Baud rate for serial port (NEW)
[*] Optimize stepper code for 'step on both edges'
()  GPIO pins to set at micro-controller startup
1 Like

YYEESSSS,

that was it!!

MANY THANKS TO YOU!!

For all Other People:
Flash the Due via Programming Port (not Native - doesnt work!) and you have to use Serial for the Firmware, not USB (when generating).
But later on you have to flash via USB :slight_smile: (when flashing)

Again,
MANY THX. You made my day

1 Like