How to enable canbus and SDIO on custom board?

It's all about the code!
Post Reply
opelpanfan
Posts: 25
Joined: Thu Oct 07, 2021 1:38 pm
Github Username: opelpanfan
Slack: Ben

How to enable canbus and SDIO on custom board?

Post 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
image.png (95.02 KiB) Viewed 3169 times
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?
User avatar
AndreyB
Site Admin
Posts: 14331
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

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

Post by AndreyB »

I am looking at the code and I am not sure if we even have all the code for secondary CAN bus?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
mck1117
running engine in first post
running engine in first post
Posts: 1494
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

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

Post 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
opelpanfan
Posts: 25
Joined: Thu Oct 07, 2021 1:38 pm
Github Username: opelpanfan
Slack: Ben

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

Post by opelpanfan »

What about CAN1 then, do I missing anything to get it enabled in FW?
opelpanfan
Posts: 25
Joined: Thu Oct 07, 2021 1:38 pm
Github Username: opelpanfan
Slack: Ben

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

Post by opelpanfan »

Sorry it started working on CAN1 after full powercycle on all can items (Dash, Canhacker and ECU)
Post Reply