AnsweredAssumed Answered

STM32F207 cubeMx CAN problem

Question asked by Blaž Kvas on Aug 25, 2017
Latest reply on Sep 14, 2017 by Ed Maynard


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.



So I tried it without interrupts.

Transmit function is working fine, but when placed in loopback mode the receive function just times out.