Hi All
After fighting for a long time to get CANBoot on to my Octopus Pro I was able to do so using these instructions as a bases. https://github.com/maz0r/klipper_canbus/blob/main/controller/monster8v2.md
The result is this
pi@Voron2:~/klipper $ ls /dev/serial/by-id/*
/dev/serial/by-id/usb-CanBoot_stm32f446xx_4A002E000250534E4E313120-if00
Now if I download klipper firmware with the following settings.
[*] Enable extra low-level configuration options
Micro-controller Architecture (STMicroelectronics STM32) --->
Processor model (STM32F446) --->
Bootloader offset (32KiB bootloader) --->
Clock Reference (12 MHz crystal) --->
Communication interface (USB to CAN bus bridge (USB on PA11/PA12)) --->
CAN bus interface (CAN bus (on PD0/PD1)) --->
USB ids --->
(500000) CAN bus speed
() GPIO pins to set at micro-controller startup
python3 ~/plugins/CanBoot/scripts/flash_can.py -d /dev/serial/by-id/usb-CanBoot_stm32f446xx_4A002E000250534E4E313120-if00
Attempting to connect to bootloader
CanBoot Connected
Protocol Version: 1.0.0
Block Size: 64 bytes
Application Start: 0x8008000
MCU type: stm32f446xx
Flashing '/home/pi/klipper/out/klipper.bin'...
[##################################################]
Write complete: 2 pages
Verifying (block count = 413)...
[##################################################]
Verification Complete: SHA = 8BD03B80BBC27AD4AD5F9458B830AA19E4C35B0E
CAN Flash Success
After power cycling the printer, The serial device does not exist and no CAN bus interface.
Instead I get these error messages.
[ 618.190762] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
[ 724.685119] usb 1-1.2: USB disconnect, device number 14
[ 724.978657] usb 1-1.2: new full-speed USB device number 15 using xhci_hcd
[ 725.115808] usb 1-1.2: unable to read config index 0 descriptor/all
[ 725.115821] usb 1-1.2: can't read configurations, error -32
[ 725.208661] usb 1-1.2: new full-speed USB device number 16 using xhci_hcd
[ 725.308873] usb 1-1.2: device descriptor read/64, error -32
[ 725.528966] usb 1-1.2: device descriptor read/64, error -32
[ 725.649338] usb 1-1-port2: attempt power cycle
[ 726.308715] usb 1-1.2: new full-speed USB device number 17 using xhci_hcd
[ 726.308936] usb 1-1.2: Device not responding to setup address.
[ 726.528938] usb 1-1.2: Device not responding to setup address.
[ 726.748729] usb 1-1.2: device not accepting address 17, error -71
[ 726.848724] usb 1-1.2: new full-speed USB device number 18 using xhci_hcd
[ 726.887001] usb 1-1.2: unable to read config index 0 descriptor/all
[ 726.887025] usb 1-1.2: can't read configurations, error -32
[ 726.887687] usb 1-1-port2: unable to enumerate USB device
Iām able to flash back a standard Klipper with out CAN bus and its all working again.
Added a Fly-utoc and you get a log which indicates what it should look like.
[ 448.927183] cdc_acm 1-1.2:1.0: ttyACM1: USB ACM device
[ 3511.922845] perf: interrupt took too long (2507 > 2500), lowering kernel.perf_event_max_sample_rate to 79700
[ 4325.211023] usb 1-1.3: new full-speed USB device number 11 using xhci_hcd
[ 4325.358205] usb 1-1.3: New USB device found, idVendor=1d50, idProduct=606f, bcdDevice= 0.00
[ 4325.358237] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4325.358258] usb 1-1.3: Product: FLY-UTOC USB to CAN adapter
[ 4325.358277] usb 1-1.3: Manufacturer: Mellow.
[ 4325.358294] usb 1-1.3: SerialNumber: 004600235842571420323035
[ 4325.434542] CAN device driver interface
[ 4325.439703] gs_usb 1-1.3:1.0: Configuring for 1 interfaces
[ 4325.441170] usbcore: registered new interface driver gs_usb
Any ideas?
Mike