STM32F207 cubeMx CAN problem
Hi,
I recently started programming on the STM32F207 nucleo board and I ran into a problem.
I used CubeMx to create initialisation code for CAN1 and it doesn't seem to work.
I'm trying to implement CAN with interrupt. Besides the code generated by the cubeMx I initialised the filter in CAN_MspInit function and called the HAL_CAN_Receive_IT(&hcan1, CAN_FIFO0) function in main() before while() loop.
I looked over the example and I couldn't find an error.
Am I missing something? Does anybody else have this problem.
EDIT:
So I tried it without interrupts.
Transmit function is working fine, but when placed in loopback mode the receive function just times out.
#can #cubemx #stm32f2