*CanBoot has Change it's name to katapult after the making of this video. Any mention of CanBoot can be replaced with katapult*
How to set up CANbus on the Bigtreetech Manta M8P to work with multiple nodes.
I have see several having issues getting CANbus working on the Manta M8P v.1.1 so if that is you or you are just going at it for the first time, this video is for you.
*************************************************************************
Affiliate links to help the channel grow.
Manta M8P and Cb1 -- shrsl.com/47lwp
EBB42 -- shrsl.com/47lwq
BTT Pi -- shrsl.com/47lv8
BIQU/Bigtreetech Official sales site -- shareasale.com...
*************************************************************************
Table of Contents
-----------------------------
02:11 - Install STM32CubeProgrammer
02:55 - Download katapult (formally CanBoot) repo
03:50 - make katapult.bin
08:15 - extract katapult.bin
10:30 - flash katapult.bin to ebb with stm32 cube programmer
10:58 - set up ebb to communicate with stm32 cube programmer
17:00 - make klipper.bin for Manta M8P
22:57 - flash klipper.bin to M8p via DFU
25:57 - check for can bus UUID for M8p
28:46 - Make klipper.bin for ebb
30:30 - shut down, power off and connect the ebb to the canbus line
33:39 - get your ebb UUID
35:03 - use script to flash ebb klipper.bin with CanBoot
36:57 - verify the klipper.bin was flashed by querying can0
40:26 - bunus see it working in mainsail.
Get $5 discount (gives me a $5 discount too) from BIQU's official site using this link refrr.app/u6Jw...
If you are feeling generous, click the donation link on my about page to help my channel grow.
My cheatsheet:
NOTE: I forgot to mention, to make sure you have the 120R jumpers installed on your devices.
Also you may need to double check the can0 setup before starting to make sure it's set and to get the bitrate to use with other devices.
check can0 setup,
sudo nano /etc/network/interfaces.d/can0
this is the settings I use in there:
allow-hotplug can0
iface can0 can static
bitrate 500000
up ifconfig $IFACE txqueuelen 1024
ctrl-x to exit
y to confirm the change and enter to save.
Download and install. www.st.com/en/...
Note that this is only needed to help flash CanBoot if you choose to go that rout.
1: Install the OS. Flash it with Raspberry Pi imager or Balena Etcher
github.com/big...
I used github.com/big...
2: Enter your wifi info in the system.cfg file Remember both the SSID and Password are case sensitive.
3: Boot up and update. Everything!
sudo apt-get update && sudo apt-get upgrade -y
4: Install CanBoot (note It's now called katapult )
(github.com/Ark...) its a heplfull tool for updating firmware later on the EBB
cd ~ && git clone github.com/Ark...
5: Make the katapult bootloader for the EBB
cd katapult
make menuconfig
Enter the information for your EBB. I am using the EBB42 V1.1. Check the information for the you you are using as pins and board can be different. The process is the same though.
My version uses the STMG0B1 chip and PB0/PB1 for CAN Communication.
After you input your boards info hit Q then Y to save the config.
Then run,
make clean
make
6: Extract the katapult.bin file with something like winscp
7: Open STM32 cube Programmer and install the bootloader.
8: Verify the connection, and copy your UUID for future use.
~/katapult/scripts/flash_can.py -i can0 -q
or
~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
9: make klipper for the M8P
cd ~/klipper/
make menuconfig
[\*] Enable extra low level configuration options
Micro controller Architecture (STMicroelectronics STM32 )
Processor model (STM32G0B1 )
Bootloader offset 8 KiB bootloader)
Clock Reference (8 MHz crystal)
Communication interface (USB to CAN bus bridge (USB on PA11/PA12))
CAN bus interface (CAN bus (on PD12/PD13))
(500000) CAN bus speed
make clean
make
10: Enter DFU mode. Hold BOOT and tap RESET, then let go of BOOT. There will be no notification that it went into DFU mode but it shoud have if you did the sequence.
11: flash the firmware.
make flash FLASH_DEVICE=0483:df11
12: check the UUID and copy it down.
~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
13: make klipper firmware for the EBB
cd ~/klipper/
make menuconfig
input the info for your ebb
make clean
make
14: flash the ebb
python3 ~/katapult/scripts/flash_can.py -i can0 -f ~/klipper/out/klipper.bin -u Put_Your_UUID_Here
15: Set up klipper and enjoy
Негізгі бет Manta M8P+EBB CANbus Setup
Пікірлер: 325