Raspberry Pi crash on BTT OctoPus Pro v1.1 connection

Basic Information:

Printer Model: Custom coreXY
MCU / Printerboard: Octopus pro v1.1 H723
Host / SBC: Raspberry Pi 3B+ rev 1.3
klippy.log+cfg.zip (748.9 KB)

Hello everyone, I deal for a few day with an unconditional Host crash/freeze when it try to establish connection with my brand new octopus mcu.

I previously use tow mcu (and works fine):

  1. skr-mini-e3-v3

    • bed
    • heater
    • X, Y and extruder motor (TMC2209 in UART)
    • senors (bed / heater)
    • fans (heatbrake / blower / stepper)
  2. creality-4.2.2

    • 4x Z motor (TMC2208)
    • sensors (stepper / box)
    • extra fan stepper

So decided to go on the next step and buy :

  • mcu : otopus pro v11.1 (H723)
  • X Y stepper: TMC5160
  • other stepper: TMC2240

As I understoud, I need to switch on spi mode for those stepper so I’ve converted my printer.cfg following generic-bigtreetech-octopus-pro-v1.1.cfg.
I’ve compiled and flash successfully the firmware on mcu but when I try to connecting the host to the mcu… It crash / freezing each time, and no logging of this… After some hours of deep search on the global network, looking for a solution or guideline, I found nothing…

So here I am looking help, hope I could find it there. I certainly mistaken something but I don’t understand what and where.
Is my rpi is to old, powerless ? (I have already check the power supply and make some stress tests without issues)
is my config ?
or the mcu ?

Thanks.

From the log:

mcu 'mcu': Starting serial connect
mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/usb-Klipper_stm32h723xx_2C0018000851323235363233-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Klipper_stm32h723xx_2C0018000851323235363233-if00'

Probably one of the items listed in Issues flashing the printer board

ok, so I reflash the mcu :

###### Flashing '/dev/serial/by-id/usb-Klipper_stm32h723xx_2C0018000851323235363233-if00' ...

###### Stop klipper.service ...
[OK] OK!
Flashing /home/corentin/klipper/out/klipper.bin to /dev/serial/by-id/usb-Klipper_stm32h723xx_2C0018000851323235363233-if00
Checking FatFS CFFI Build...
Building FatFS shared library...Done
Connecting to MCU...Connected
Checking Current MCU Configuration...Done
MCU needs restart: is_config=0, is_shutdown=1
Attempting MCU Reset...Done
Waiting for device to reconnect...Done
Connecting to MCU...Connected
Initializing SD Card and Mounting file system...

SD Card Information:
Version: 2.0
SDHC/SDXC: True
Write Protected: False
Sectors: 7744512
manufacturer_id: 3
oem_id: SD
product_name: SU04G
product_revision: 8.128
serial_number: 03A1A705
manufacturing_date: 4/2012
capacity: 3.7 GiB
fs_type: FAT32
volume_label: b'OCTOPUS'
volume_serial: 2741892755
Uploading Klipper Firmware to SD Card...Done
Validating Upload...Done
Firmware Upload Complete: firmware.bin, Size: 41044, Checksum (SHA1): BA2C4D3649AB8BBA9A1573670754EE3CB8E17DB8
Attempting MCU Reset...Done
Waiting for device to reconnect...Done
Connecting to MCU...Connected

This board requires a manual reboot to complete the flash process.
If the board's bootloader uses SDIO mode for its SDCard, then a full
power cycle is required.  Please perform the power cycle now and then
rerun this utility with the 'check' option to verify flash.

Attempting MCU Reset...Done
SD Card Flash Complete

###### Start klipper.service ...
[OK] OK!

[OK] Flashing successful!

klippy.log (207.0 KB)

I found this (lines 1088/1096):

Enabling TMC virtual enable for 'stepper_x'
TMC stepper_x failed to init: Unable to write tmc spi 'stepper_x' register GLOBALSCALER
Enabling TMC virtual enable for 'stepper_y'
TMC stepper_y failed to init: Unable to write tmc spi 'stepper_y' register GLOBALSCALER
TMC stepper_z failed to init: Unable to write tmc spi 'stepper_z' register DRV_CONF
TMC stepper_z1 failed to init: Unable to write tmc spi 'stepper_z1' register DRV_CONF
TMC stepper_z2 failed to init: Unable to write tmc spi 'stepper_z2' register DRV_CONF
TMC stepper_z3 failed to init: Unable to write tmc spi 'stepper_z3' register DRV_CONF
TMC extruder failed to init: Unable to write tmc spi 'extruder' register DRV_CONF

First @Sineos thanks for your help, I finally start !
I have forgot to wired my separated motor power supply, that cause TMC issue, my bad !
:confounded_face:

But after the first start I realize that I have some bad PIN configuration and It’s insane because I following the github instruction and schematic diagram.
Especially the BIGTREETECH-Octopus-Pro-V1.0-Color-PIN-V3.0.pdf
but I have forgot this tab:

Changes in V1.1 compared to V1.0

  • Pinout changes
    Title Octopus Pro V1.0/V1.0.1 Octopus Pro V1.1
    HE0 PA2 PA0
    HE2 PB10 PB0
    Motor4-EN PA0 PA2
    RGB PB0 PB10

Now I to adjust tuning. I have see that my TMC2240 appears in temperature graph but without values, I will search in the documentation for a solution.

I think we can close this post with solved quote.