Page 1 of 1

How to enable canbus and SDIO on custom board?

Posted: Thu Oct 07, 2021 9:05 pm
by opelpanfan
Been testing rusEFI on the custom board and am almost got everything I need working.

STMF407zg using SN65HVD230QDR
CAN1 is on PD0 and PD1
CAN2 is on PB5 and PB6

Compiled with:
#define EFI_CAN_SUPPORT TRUE
Alternative pin mode PIN_MODE_ALTERNATE and PIN_AFIO_AF( 0, 9U)

All set in TS but still no messages coming through to CANHacker
image.png
SDIO is set as
PC8-PC9-PC10-PC11-PC12-PD2
#define EFI_FILE_LOGGING TRUE
#define EFI_SDC_DEVICE SDCD1
Alternative pin mode PIN_MODE_ALTERNATE and PIN_AFIO_AF( x, 12U)

A simple HAL sketch works fine with the same hardware.
Do I miss anything?

Re: How to enable canbus and SDIO on custom board?

Posted: Thu Oct 07, 2021 9:27 pm
by AndreyB
I am looking at the code and I am not sure if we even have all the code for secondary CAN bus?

Re: How to enable canbus and SDIO on custom board?

Posted: Thu Oct 07, 2021 9:28 pm
by mck1117
AndreyB wrote:
Thu Oct 07, 2021 9:27 pm
I am looking at the code and I am not sure if we even have all the code for secondary CAN bus?
that would be correct

Re: How to enable canbus and SDIO on custom board?

Posted: Fri Oct 08, 2021 10:54 am
by opelpanfan
What about CAN1 then, do I missing anything to get it enabled in FW?

Re: How to enable canbus and SDIO on custom board?

Posted: Fri Oct 08, 2021 1:56 pm
by opelpanfan
Sorry it started working on CAN1 after full powercycle on all can items (Dash, Canhacker and ECU)