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
[*] 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.
You try to disconnect it. Run lsusb and check the list.
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”
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
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 (when flashing)