FYSETC / Catalyst_Kit

Control board kit dedicated to voron0, minimalist wiring.
17 stars 4 forks source link

can0 interface issues. #9

Open beavis69 opened 9 months ago

beavis69 commented 9 months ago

Hello,

I'm using an ebb36 toolhead connected to the can0 interface.

It's not possible to complete a print using the catalyst can0 interface at 1M bit rate.

After 10 minutes of printing klipper stop with error : MCU 'toolhead' shutdown: Timer too close

and dmesg is showing lot of errors related to can0 interface :

[Mon Feb 26 21:46:06 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:46:34 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:47:35 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:48:08 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:48:46 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:49:31 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:55:00 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:56:01 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:57:12 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 21:59:16 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:00:11 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:00:11 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:01:19 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:01:23 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:01:24 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:01:53 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:01:59 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:02:12 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!
[Mon Feb 26 22:03:29 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!

I was able to complete a print after modifiying can0 interface to use 500k bit rate but errors are still present :

[Mon Feb 26 23:33:29 2024] rockchip_canfd fe580000.can can0: can_put_echo_skb: BUG! echo_skb 0 is occupied!

I'm using the debian 11 / kernel 5.10.160 image with klipper v0.12.0-114-ga77d0790

beavis69 commented 8 months ago

Seems to be related to the source clock frequency of can0. Can you release a kernel with a different can source clock frequency ( see https://forum.odroid.com/viewtopic.php?p=370937#p370937 )

polovi commented 7 months ago

still no solution? it looks like the Catalyst will go straight to the trash and I'll replace it with something functional 🤔

kkobold commented 3 months ago

I really need that one swell. any luck?

beavis69 commented 3 months ago

Actually works well at 500k with an ebb36 toolhead but too many errors at 1M.

I'm trying to get dts tree from fysetc to build my own kernel (ideally to get more recent armbian kernel) to support 1M.