Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to setup CAN network #5

Open
akinferno opened this issue Jul 30, 2023 · 5 comments
Open

Unable to setup CAN network #5

akinferno opened this issue Jul 30, 2023 · 5 comments

Comments

@akinferno
Copy link

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
Copy link
Contributor

eliwong commented Aug 3, 2023

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
Copy link

shaka972 commented Aug 13, 2023

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
Copy link

@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
Copy link

shaka972 commented Oct 15, 2023

@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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants