STM32F746 CAN Transmit Code hangs
I am having some trouble with CAN on the STM32F746 DISCO board.
I have a can transceiver connected to PB8/9, but eveytime I try an put a message on the bus, the code just freezes.
I have hade this once before the the SPI bus and it was caused by not enabling the clock on the peripheral bus, but I can't see a similar issue this time. Anyone know what could cause the code to hang?
Code snipped here where it freezes:
if
(
HAL_CAN_Init
(
&
CanHandle
)
==
HAL_OK
)
{
//Everythying OK, so send the message
HAL_CAN_Transmit
(
&
CanHandle
,
10
)
;
}
