Skip to main content
JFlor.674
Associate
October 24, 2019
Question

FDCAN example on Nucleo H743ZI not working

  • October 24, 2019
  • 1 reply
  • 809 views

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.

This topic has been closed for replies.

1 reply

JFlor.674
JFlor.674Author
Associate
October 31, 2019

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.