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
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?
How to enable canbus and SDIO on custom board?
-
- Posts: 25
- Joined: Thu Oct 07, 2021 1:38 pm
- Github Username: opelpanfan
- Slack: Ben
- 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?
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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- 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?
What about CAN1 then, do I missing anything to get it enabled in FW?
-
- 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?
Sorry it started working on CAN1 after full powercycle on all can items (Dash, Canhacker and ECU)