bigtreetech/Manta-M8P

Manta M8P v1.1 BTT-CB1 2.3.3 Bullseye Linux 5.16.17-sun50iw9 does not update MCU

AdeilnAcinrst opened this issue · 0 comments

I tried to update using make flash and SD card, no way to have it updated.


This is frequently caused by running an older version of the
firmware on the MCU(s). Fix by recompiling and flashing the
firmware.

Your Klipper version is: v0.12.0-286-g81de9a861
MCU(s) which should be updated:
CB1: Current version v0.11.0-241-gffb5105b
adxl: Current version rampon_anchor
Up-to-date MCU(s):
mcu: Current version v0.12.0-286-g81de9a861

Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.

mcu 'adxl': Command format mismatch: query_adxl345 oid=%c rest_ticks=%u vs query_adxl345 oid=%c clock=%u rest_ticks=%u

I have these versions showing on mainsail:

mcu(stm32g0b1xx)
Version: v0.12.0-286-g81de9a861
Load: 0.01, Awake: 0.00, Freq: 64 MHz,

mcu CB1(linux)
Version: v0.11.0-241-gffb5105b
Load: 0.02, Awake: 0.00, Freq: 50 MHz,

Host(aarch64, 64bit)
Version: v0.12.0-286-g81de9a861
OS: Debian GNU/Linux 11 (bullseye)
Load: 0.41, Mem: 297.6 MB / 986.9 MB , Temp: 49°C
wlan0 (192.168.0.125) : Bandwidth: 2.4 kB/s , Received: 1.8 MB , Transmitted: 26.3 MB

I tried to follow the manual instructions:

make: Nothing to be done for 'all'.
biqu@BTT-CB1:~/klipper$ ls -ltra /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Aug 28 10:17 usb-Anchor_Rampon-if00 -> ../../ttyACM0
drwxr-xr-x 4 root root 80 Aug 28 10:17 ..
lrwxrwxrwx 1 root root 13 Aug 28 10:39 usb-Klipper_stm32g0b1xx_10001A000E504B4633373520-if00 -> ../../ttyACM1
drwxr-xr-x 2 root root 80 Aug 28 10:39 .
biqu@BTT-CB1:~/klipper$ make flash FLASH_DEVICE=/dev/serial/by-id/usb-Klipper_stm32g0b1xx_10001A000E504B4633373520-if00
  Flashing out/klipper.bin to /dev/serial/by-id/usb-Klipper_stm32g0b1xx_10001A000E504B4633373520-if00
Entering bootloader on /dev/serial/by-id/usb-Klipper_stm32g0b1xx_10001A000E504B4633373520-if00
Device reconnect on /sys/devices/platform/soc/5200000.usb/usb2/2-1/2-1.4/2-1.4:1.0
sudo dfu-util -p 2-1.4 -R -a 0 -s 0x8002000:leave -D out/klipper.bin

dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash   "
Downloading to address = 0x08002000, size = 30880
Download	[=========================] 100%        30880 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status

Failed to flash to /dev/serial/by-id/usb-Klipper_stm32g0b1xx_10001A000E504B4633373520-if00: Error running dfu-util

If the device is already in bootloader mode it can be flashed with the
following command:
  make flash FLASH_DEVICE=0483:df11
  OR
  make flash FLASH_DEVICE=1209:beba

If attempting to flash via 3.3V serial, then use:
  make serialflash FLASH_DEVICE=/dev/serial/by-id/usb-Klipper_stm32g0b1xx_10001A000E504B4633373520-if00

make: *** [src/stm32/Makefile:111: flash] Error 255

It errors as mentioned in the manual, but ignoring it doesn't solve the issue, the firmware is not updated.

I formatted a SD card using FAT with compiled firmware renamed to firmware.bin and it doesn't update. I tried to press BOOT and RESET buttons, no success.