Is it possible on STM32H730 (or any) to switch between classical CAN and CANFD configurations during runtime?
I've been working on the STM32H730 processor and have been struggling to get the FDCAN peripherals to switch between classical CAN and CAN FD for transmissions. It seems that when I'm transmitting as classical CAN everything works fine. Then when I stop the peripheral using HAL_FDCAN_STOP, reconfigure it to operate as CAN FD using HAL_FDCAN_Init, start the peripheral back up using HAL_FDCAN_START, and then perform a transmission I see the TX fail multiple times (AutoRetransmission is on) before finally succeeding. It always fails at least once, but sometimes see it fail 5+ times.
I definitely could be doing something wrong, but I'm curious if anyone has done this successfully or if it's just not something that can be handled gracefully as its expected you choose one at startup and not switch, and this is just what you see if you try switching. Providing a snippet of a logic analyzer capture to show it "failing". First one is a successful classical TX, the rest are CAN FD attempts before succeeding. As a side note, if I use my CAN FD configuration at startup and don't switch CAN FD works as expected on the first TX.
EDIT: One note after looking into this more. I've come to the realization that I do not need to reconfigure between classical and CAN FD. I can simply configure the peripheral as CAN FD and then just mark the message in the TX header as classical or CAN FD and it'll correctly send it as one or the other. However I am still seeing this same issue going that route. I'm starting to think it has to do with my CAN FD configuration. I'm trying to do CAN FD with BRS, with baud rates of 500 kbps and 2 Mbps.
