FYSETC / Cheetah_V3.0

Apache License 2.0
14 stars 3 forks source link

Unable to setup CAN network #5

Open akinferno opened 1 year ago

akinferno commented 1 year ago

Attempted to setup the CAN network, but I am unable to establish communication. The Pi doesn't recognize a can0 network. The BigTreeTech Octopus requires the MCU be flashed to set the board into CANbridge mode, at which point that network is visible. I don't see any documentation or firmware to do the same for the Cheetah. I need some guidance on setting that up.

eliwong commented 1 year ago

Like most STM32 boards, you only need to use the CAN Bridge option to connect Cheetch 3.0 to other CAN boards. The CAN-RX / CAN-TX of Cheetah V3.0 is located on PB8 and PB9. After resetting in menuconfig, compile and upload the firmware to Cheetah V3.0. Of course, you also need to update printer.cfg.

shaka972 commented 1 year ago

Hi, Same problem here, board is connected to RPI by serial connexion, not USB. So I can't see the can0 network. Is it really possible to use serial connection for rpi AND at the same time can interface ? Apart of that, it seems to be a great board, but documentation, how to's, tutorials and so are really hard to find, if it ever exists, and if it does, it's very partial, maybe for experts users only... I'm really having hard time configuring it, unfortunatly... thanks

nielsfaber commented 1 year ago

@eliwong Could you provide a setup instruction for CAN bridge mode on the Cheetah V3.0? I tried following the instructions given here: https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/free1/uploads/klipper/original/2X/a/ad777531ba414299815e18b0f59a96ab4a0308ef.pdf . However after flashing CanBoot on the Cheetah all I/O seem to be randomly triggering (steppers are moving, fans blowing etc), even when klipper is not running. So I guess some step(s) have to be adjusted.

shaka972 commented 12 months ago

@nielsfaber

I have used the Fysetc Spider WIKI to have instructions on can settings and USART communication. https://wiki.fysetc.com/Spider/#3-can-bus-on-pd0pd1

Also, you have an excellent Github repo about CANBUS with a great guide: https://github.com/maz0r/klipper_canbus

Mixing both did the trick.

For your canboot flash "make menuconfig", make sure you have correct jumpers settings (B0 ; GND ; 3V3 and power jumper), and set canboot communication to USB, same pins as the spider or the board (MKS Monster) used as an exemple in Maz0r's guide, because it's the same STM32 chip. At one point, you will have to double clic quickly on the board reset button to put it in canboot mode and then you"ll be able to flash Klipper on the board. Everithing is in Maz0r's guide.

I still haven't been able to use CAN and USART at the same time, so I'm stuck with USB communication, and I believe that's a limitation on the chip.

Hope that will help.

phanthuat commented 8 months ago

Is there any specific instructions to set up CAN bus on this board, I have searched but very little information, do I need another u2c board to set it up?