How to add CAN-FD to a Fly-CDYv2 and connect a CAN-FD Toolboard

Overview

From 3.5b2, it is now possible to use one or two toolboards with an STM32F4 based board using the CAN-FD protocol. To do so, you must purchase a separate SPI to CAN-FD module. TeamGloomy have worked with Flymaker/Mellow to produce 2 designs of module to suit the board you are using.

For the Fly-CDYv2 we recommend the both module, which can be purchased from Aliexpress.

Connecting the driver module (DFD)

You need either a spare driver slot or you replace an extruder driver with a toolboard. The driver slot should ideally be the last one on the board and have a working voltage of 24v.
The driver slot you are going to use should be put in SPI mode. This is done using jumpers as shown below.

Fly-CDYv2 SPI Jumpers

Install the driver module. Ensure the module is installed so the hole thats in the same position as the diag pin is closest to the driver socket.
Also make sure you install the jumper as shown below.

Driver SPI to CAN-FD Module
Driver SPI to CAN-FD Module

Wiring for the driver module

CAN-FD only requires 2 wires to be connected between each board, CAN-H and CAN-L.
We recommend using stranded twisted wire pairs, such as those found in ethernet patch cables.

Using the image below, the H connection is the CAN-H connection and should be connected to CAN-H on the toolboard. L is the CAN-L connection and should be connected to CAN-L.

Driver SPI to CAN-FD Module Connections
Driver SPI to CAN-FD Module Connections

Board.txt changes

The following two lines should be added to board.txt and assume the last driver slot is used. If another driver slot is used the appropriate CS pin must be chosen.

//CAN-FD Interface
can.csPin = PE_9
can.spiChannel = 2

Don’t forget to reduce the number of smart drivers if you are replacing a driver with the drive SPI to CAN-FD module.

If you are running the DFD module at the same time as 5160 drivers, it is recommended to slow down the SPI connection. To do so, add the following line to your board.txt.

can.spiFrequencyHz = 10000000

Config.g Changes

If successful, the toolboard should show in the object model.
See this page for more information about CAN addresses etc.

Connecting the EXP1/EXP2 module (EFD)

The type of module shouldn’t be shared with a 12864 display.
Connect the EXP1 header on the module to EXP1 on the board. Connect the EXP2 header to EXP2 on the board.

Wiring for the driver module

CAN-FD only requires 2 wires to be connected between each board, CAN-H and CAN-L.
We recommend using stranded twisted wire pairs, such as those found in ethernet patch cables.

Using the image below, the CAN-H connection should be connected to CAN-H on the toolboard. The CAN-L connection should be connected to CAN-L. A jumper should be added to the pins highlighted by the red box.

EXP1/EXP2 SPI to CAN-FD Module Connections
EXP1/EXP2 SPI to CAN-FD Module Connections

Board.txt changes

The following two lines should be added to board.txt

//CAN-FD Interface
can.csPin = PA_4
can.spiChannel = 0

Config.g Changes

If successful, the toolboard should show in the object model.
See this page for more information about CAN addresses etc.

Tags: