cancel
Showing results for 
Search instead for 
Did you mean: 

FDCAN example on Nucleo H743ZI not working

JFlor.674
Associate II

Hi,

So I am trying to use the example of "FDCAN_Classic_Frame_Networking" from the mentioned examples in other thread STM32Cube_FW_H7_V1.2.0\Projects\STM32H743I_EVAL\Examples\FDCAN\FDCAN_Classic_Frame_Networking

But I am always caught in an error when initializing the HW. I am debugging to see exactly where it stops and it happen to be in initialization and specifically a timeout in these lines

// File is stm32h7xx_hal_fdcan.c 
// lines 310 and 311 
/* Wait until the INIT bit into CCCR register is set */
 while((hfdcan->Instance->CCCR & FDCAN_CCCR_INIT) == RESET)

All my settings are as in the example, but it never set that bit in the register to continue.

Have you encountered something similar or know a way to solve this issue?

Thanks in advance.

1 REPLY 1
JFlor.674
Associate II

I have solved the problem now.

My problem was that I needed to specify the communication parameters in the STM32CUBEIDE and get the timing parameters from http://www.bittiming.can-wiki.info/ specifiying the brand , clock speed and CAN speed.

Everything is working now, and the example is too.