Skip to content

'struct FDCAN_InitTypeDef' has no member named 'ClockDivider' #6

@luzz94

Description

@luzz94

Hi,

I'm trying to use your library on a STM32H743 microcontroller. Actually I got the following error:

lib/SimpleCAN/src/stm/fdcan/CAN.cpp: In member function 'virtual bool STM_FDCAN::begin(int)':
lib/SimpleCAN/src/stm/fdcan/CAN.cpp:67:9: error: 'struct FDCAN_InitTypeDef' has no member named 'ClockDivider'
67 | init->ClockDivider = FDCAN_CLOCK_DIV1;

by looking at this implementation seems that in the case of the STM32H7 the init->ClockDivider = FDCAN_CLOCK_DIV1; and others are not used.

any suggestion on that? i leave the code of the project that i'm working on
robomarlin-development.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions