-
Notifications
You must be signed in to change notification settings - Fork 8
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
EBB36 CAN not working #3
Comments
Edit: I'm trying to figure out an issue where the steps below remove the klipper serial port, making the MCU on the manta unreachable. @zentaur1ger I was able to get this working. The detail that's missing from literally everywhere is that the Manta contains the U2C hardware built-in, and it's connected to the pi/cb over USB (internally) You need to flash canboot/klipper to it as well. The steps I performed:
When I flashed by EBB I flashed canboot using the dfu-util commands above. In this setup, the klipper image that will be flashed to the EBB needs to be configured with an 8k bootloader |
@Cisien The restart_method is considered invalid by Klipper in this setup and is therefore removed. However, now I face the problem that, no matter what I do, I don't see the EBB36 in the CANBUS. Only the IDs that are not configured in any way are displayed. As I understand it, this means that as long as the ID is not included in the printer.cfg and is addressed directly, it should now be displayed here. Does the connection to the EBB work correctly for you and if so, how and with which settings did you flash it? |
I came to the same conclusion with the can setup and also managed to get the ebb working. I was running into the same issue as you where i couldnt see the ebb no matter what i tried. I unfortunately fried the ebb when i was poking at it with a multimeter. However, when i set up a new one it immediately worked after i flashed only klipper via dfu with the documented settings (no bootloader) |
excuse me for butting in here. i'm looking to do a board swap also using m5p and ebb. from what i understand from this discussion the m5p does not need the separate u2c board? |
No, it is integrated in the M5P. |
YOU sir are a gentleman and a scholar. |
The biggest hurdle for me to understand was that I needed to access the m5p by its canbus_id instead of serial after flashing the board with a u2c klipper |
Hey guys I have ran into an issue setting up my M5p board and EBB42 Canbus board. I know the EBB42 is Very similar to the EBB36 so I figured you guys could help. When querying for the UUIDs I am able to get the UUID for the klipper chip but I am unable to get the UUID for the Canboot chip. please help I do not want to have to buy a U2C to get this to work. Also where are you plugging in the EBB42 when you are flashing canboot? is it to the external Double USB A port or to the single USB A port next to the Canboot plugs ? |
connect the EBB42 over USB and flash canboot with my instructions above. Disconnect from USB and connect back to CAN+power over the U2C
Confirm you can see the canboot device with the canbus query command, get the id from there and use it to flash klipper using the following command: If the flash stalls and errors out part way through, you need to update your u2c put the u2c into boot mode by holding down the boot button as you plug in USB
unplug the u2c, plug it back in, try the flash again |
what if Im trying to connect to the onboard U2C on the M5P board? how would I go about disconnecting and connecting to that? |
Sorry for the confusion, I was using a U2C for my last project, so that was top of mind, you can disregard it if you're using the onboard u2c on the manta. |
could you run me through the process in detail. I have used your guide and still cannot get it to connect. I get the klipper uuid just fine but cannot get the canboot uuid to save my life. i wouldnt be pushing so hard if there was adequate documentation on it but your my best try. |
I will make an effort to put together a document this weekend. If you're on discord, feel free to join the Voron discord and reach out (i'm using the same name there) |
i can do that. |
Edit: You don't need mcp251x. The Board MCU is providing an USB to CAN interface... Did you solve the hardware issue/documentation on dmesg ?
|
There is no mcp251x in the hardware sch file. The issue should be closed and renamed. |
What exactly does that mean then? |
See CM4 block in the SCH file. You will see that there is no CAN bus IC provisioned on it. So, only one way to use the CAN Bus and it is the USB to CAN from the MCU. |
@IniterWorker wait, so you're telling us, that there is a can bus connector on the M5P, but there is no chip available, that would be able to deliver the can signal? |
@zentaur1ger, the easy way to see it:
|
@IniterWorker don't want to bother you, but I need to get my head around that. |
@zentaur1ger, the only way to use CAN bus on the MP5 is to enable #3 (comment) USB to CAN bus bridge. The reason why, it's because you don't have any component (IC) available on the CM4 hardware part. Note: If you enabled the overlay from |
@IniterWorker thank you for that clarification |
Gentlemen, I did everything according to the instructions and I received this help message pi@hypercube:~ $ ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0 |
Did you @McMabb follow the #3 (comment) ? |
I am struggling as well to get a uuid for the ebb. |
As you write, with Manta M4P + U2C + ebb36/ebb42. From what I managed to determine, the Manta M5P should be switched to CAN0 mode and both drains must operate in this mode. |
Thank you for the response. I will keep plugging away. |
Finally got it working. I think it was the CB1 and the core 3566 that were the problem. I broke down and paid scalper prices for a cm4 and had it up in no time. Hard lesson learned. |
There are some problems with the steps here, I refer to the steps linked below, but the configuration is based on yours, and it was successfully installed. |
I've spent some time gathering information on how to get the Manta M5P to use the CANBUS with a CB1.
I first flashed klipper to the EBB36 according to the instructions in the manual.
Connected are 24V and CAN-H M5P<>CAN-H EBB36 and CAN-L M5P<>CAN-L EBB36.
LED on EBB36 is active.
The jumpers for the 120R resistor are set on both the M5P and the EBB36.
The CB1 also runs with klipper and I can also control all the pins from the M5P.
Then I have the entry in \boot\BoardEnv.txt
uncomment the following overlays for MCP2515 spi to canbus module
overlays=mcp2515
activated and the CB1 restarted.
The file nano /etc/network/interfaces.d/can0 was then created with the following content and restarted:
auto can0
iface can0 can static
bitrate 250000
up ifconfig $IFACE txqueuelen 1024 .
The selected bit rate also corresponds to that selected in the firmware for the EBB36.
However, the CANBUS does not start for me.
The output of dmesg looks like this:
biqu@TIDIRIUM-TT-SP:~$ dmesg | grep -i '(can|spi)'
[ 1.257093] CAN device driver interface
[ 2.267968] mcp251x spi0.0: MCP251x didn't enter in conf mode after reset
[ 2.268109] mcp251x spi0.0: Probe failed, err=110
[ 2.268133] mcp251x: probe of spi0.0 failed with error -110
[ 2.277677] SPI driver fb_st7796 has no spi_device_id for sitronix,st7796
[ 2.329629] can: controller area network core
[2.329715] NET: Registered PF_CAN protocol family
[ 3.255536] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[ 3.304967] sun4i-drm display engine: [drm] Cannot find any crtc or sizes
[ 3.306270] sun4i-drm display engine: [drm] Cannot find any crtc or sizes
[ 364.607839] can: raw protocol
Elsewhere I found the information that
[ 2.267968] mcp251x spi0.0: MCP251x didn't enter in conf mode after reset
[ 2.268109] mcp251x spi0.0: Probe failed, err=110
indicates a connection problem and the error 110 represents a timeout. I checked the connection and it's fine.
And now, to be honest, I'm stuck. I have no idea if I need to configure anything else at any point.
The text was updated successfully, but these errors were encountered: