[*] Enable extra low-level configuration options
Micro-controller Architecture (STMicroelectronics STM32) --->
Processor model (STM32G0B1) --->
Bootloader offset (8KiB bootloader) --->
Clock Reference (8 MHz crystal) --->
Communication interface (CAN bus (on PA11/PA12)) --->
(1000000) CAN bus speed
(PF6) GPIO pins to set at micro-controller startup
now: [mcu] SKRat CAN bus
[*] Enable extra low-level configuration options
Micro-controller Architecture (STMicroelectronics STM32) --->
Processor model (STM32G0B1) --->
Bootloader offset (8KiB bootloader) --->
Clock Reference (8 MHz crystal) --->
Communication interface (USB to CAN bus bridge (USB on PA11/PA12)) --->
CAN bus interface (CAN bus (on PD0/PD1)) --->
USB ids --->
(1000000) CAN bus speed
(PF6) GPIO pins to set at micro-controller startup
Flashing the firmware @hcet14 linked could fix it cause there were bugs in the early factory ones - theoretically they should have foxed them but reflashing is worth a try.
You can just flash it with dfu-util stm32cubeprog not required but also works.
@DrumClock If you like you can try candlelight and also the usbcan bridge klipper fw on the U2C.
Depends on your opinion. F072 has upstream candlelight support - the G0B1 ist stuck on the version BTT ported and did not pushed an update since the port.
Hi, itâs the same with the new FW for U2C. After the first power on the Raspberry CAN bus works, if I reboot the raspberry it stops working.
The MCU is connected via the CAN_OUT (USB output) of the U2C converter.
settings [mcu]
[*] Enable extra low-level configuration options
Micro-controller Architecture (STMicroelectronics STM32) --->
Processor model (STM32G0B1) --->
Bootloader offset (8KiB bootloader) --->
Clock Reference (8 MHz crystal) --->
Communication interface (CAN bus (on PA11/PA12)) --->
(1000000) CAN bus speed
(PF6) GPIO pins to set at micro-controller startup
You should wire your mcu chained in with your EBB toolhead boards.
Also, Your U2C shouldnât be showing up as an MCU. I think youâre trying to set it up like a CAN bridge and it doesnât need to be. Itâs a standalone device.
It should be connected to the Pi and the Pi should recognize it as a CAN adapter and when you setup your Can0 link it uses that, everything else should be handled through the CAN wiring off your U2C.
Hi, @TheFuzzyGiggler
The U2C is connected to the SKRat via a USB cable so the [mcu] must have CAN communication set to PA11/PA12 pins (at least thatâs how I understood it from the U2C documentation).
I know that SKRat has its own USB-CAN bridge, but I want to test the U2C converter. It works, but you must not reboot the Raspberry!
I believe that there is an error in the CAN communication via the PA11/PA12 pins using the USB connection from the U2C converter.
You need to be flashing the SKRat, the U2C doesnât run Klipper.
Per your link:
In the case of the BigTreeTech U2C, this solution has no advantages over the candlelight firmware, since no freely usable pins are available on the board.
I have zero clue why BTT would want you to flash the U2C as a bridge. That makes zero sense honestly. You use a CAN bridge when you already have a board thatâs doing something else (like the SKRat) and you donât want to buy a U2C adapter to handle the CAN bus.
Hereâs what you need to do and I promise it will work 100%.
under Host hardware (not the CAN Bridge part, the Candlelight part), but honestly the Pi should recognize it immediately when you flash Candlelight on it then you just do theâŚ
allow-hotplug can0
iface can0 can static
bitrate 1000000
up ifconfig $IFACE txqueuelen 128
I know that I donât need a U2C converter for SKRat, Iâm just trying the possibility of connecting CAN using the USB-C connector on the board and not the CAN connector.
Apparently it should work, but it doesnât.
The only thing I found out is that if the CAN bus stops working after a raspberry reboot, it helps to press the reset button on the SKRat board and restart the klipper. After that, the CAN bus starts again.
Letâs leave it at that. I donât need a U2C converter from the SKRat board and this discussion leads to nothing.
Thatâs what Iâm telling you, You canât use the SKRat USB connector because thatâs not a CAN connection.
Look at the bottom of the pic âType C D+ D-â those are USB data lines, not CAN bus.
The only CAN connector on the SKRat board is on the right hand side labeled âCAN busâ
Just because the U2C has a USB can connector (which again, is beyond stupid and weird) doesnât mean the SKRat does. USB and CAN canât coexist on one connector (at least I donât see how thatâs even possible, they have different termination and signaling requirements).