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

How to setup the internal CAN interface? #1

Closed
rclarke250 opened this issue Jan 16, 2023 · 13 comments
Closed

How to setup the internal CAN interface? #1

rclarke250 opened this issue Jan 16, 2023 · 13 comments

Comments

@rclarke250
Copy link

config says CAN bus (on PB12/PB13) and that is not a choice in make menuconfig. So how does one setup the internal CAN interface with a CB1 mounted on the board?

@emersonsc
Copy link

Looks like there is a pull request but Kevin being Kevin has an issue with something stupid and its being held up.

@looxonline
Copy link
Collaborator

For now, you'll need to use the BTT klipper branch where it is supported until Kev upstreams it. Klipper3d/klipper#5981

@JamesH1978
Copy link

JamesH1978 commented Feb 1, 2023

The issue is that the files submitted in the PR Klipper3d/klipper#5981 , contain sections for a [tmc2240] module which does not exist in mainline klipper. Until btt submits this modile to add the functionality the PR will probably stay stale.

Thanks
James

@rclarke250
Copy link
Author

The latest Klipper3d update allowed me to get CAN functioning. A setup guide in the manual would be helpful for those not familiar with using USB to CAN bridge mode.

@hauserkristof
Copy link

Hi @rclarke250 !

Can you help me with enabling the CAN Bus on the device? I'm struggling with it a bit.

Thank you in advance,
Kristóf

@rclarke250
Copy link
Author

Hi @rclarke250 !

Can you help me with enabling the CAN Bus on the device? I'm struggling with it a bit.

Thank you in advance, Kristóf

Sure what do you need help with?

@yourbuddydinec
Copy link

Hi @rclarke250 !
Can you help me with enabling the CAN Bus on the device? I'm struggling with it a bit.
Thank you in advance, Kristóf

Sure what do you need help with?

I was curious what you chose for the pins on katapult/Canboot. It looks like on the E3EZ it should be the PC12/PB13 but the only choice in Canboot is PD12/PD13

@rclarke250
Copy link
Author

I didn't use Canboot. I just used Klipper make menuconfig...set the STM device to USB bridge mode, and set the pins for can, make and copied to a microsd after changing klipper.bin to firmware.bin and booting the machine.

@Deapper
Copy link

Deapper commented Aug 13, 2023

I didn't use Canboot. I just used Klipper make menuconfig...set the STM device to USB bridge mode, and set the pins for can, make and copied to a microsd after changing klipper.bin to firmware.bin and booting the machine.

Do you use an EBB tool head? I setup the MCU for canbus but could not see the ebb42 I have. I could see the Manta no problem. And seemed quite easy to setup

I followed this guide https://www.youtube.com/watch?v=EA-oBfenxAE&t=160s

@rclarke250
Copy link
Author

rclarke250 commented Aug 13, 2023 via email

@Deapper
Copy link

Deapper commented Aug 13, 2023

So do you use the following under make menuconfig?
USB bridge - CANBUS - PB12 PB13?
Both Manta and EBB42 usb to (CAN bus (on PB0/PB1)?

Also what baudrate do you use? 1000000?

And do you have the 120omh pin shorted on both Manta and EBB42?

thanks

@rclarke250
Copy link
Author

The Manta yes, USB-Canbus-PB12,PB13.
The EBB Canbus PB0,PB1
I used Baud rate 500000. Doesn't seem to be an issue.
And yes, 120 Ohm jumper on each.
cable has to be twisted, with High to High, Low to Low. Doesn't need to have a lot of twist, I also twisted my Power cables with it, and is working okay.

@Deapper
Copy link

Deapper commented Aug 15, 2023

Thank you.

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

7 participants