Skip to content

Issues porting to STM32F405RGT #189

Description

@mowoe

Hi everyone,

i am currently trying to port candlelight to the STM32F405RGT
My messy progress can be found here: https://github.com/mowoe/candleLight_fw/tree/feature/STM32F405RGT

After lots of issues, i got some stuff working, the stm correctly enumerates as a gs_usb device.
But when i try to bring the interface up, the operation times out and the stm gets stuck at https://github.com/mowoe/candleLight_fw/blob/27430416dcdec51a65a46e25d3c703beddd1528e/src/can/bxcan.c#L139

while ((can->MSR & CAN_MSR_INAK) != 0);

Unfourtunately, i dont have enough experience with the STM HAL to get what might be wrong here. I largely used the STM32F407 devboard config as a starting ground, but for some things in config.h i just dont know what they are for, e.g. TIM2_CLOCK_SPEED and CAN_CLOCK_SPEED.

I also heavily modified the clock configuration because the stm ran way too slow for some reason with the default setup (i am also using an 8Mhz crystal like on the devboard). I copied this config from a working cubeMX project over and now the time seems okay.

Any help would be appreciated, thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions