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!
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
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.hi just dont know what they are for, e.g.TIM2_CLOCK_SPEEDandCAN_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!