cancel
Showing results for 
Search instead for 
Did you mean: 

CAN and system clock configuration

Jith cr
Associate II
Posted on April 26, 2017 at 06:50

Hi,

CAN interface  on STM32F769I is not sending data using Clock configuration 1 but CAN interface is sending data with configuration 2.

I am not able to narrow down that how the CAN interface is getting affected by  Clock configuration 1.

Can you pls comment on the same?

Thank in advance

Clock Configuration 1

RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;

RCC_OscInitStruct.HSEState = RCC_HSE_ON;

RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;

RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;

 RCC_OscInitStruct.PLL.PLLM = 25;

 RCC_OscInitStruct.PLL.PLLN = 400;

 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;

 RCC_OscInitStruct.PLL.PLLP = 2;

 RCC_OscInitStruct.PLL.PLLQ = 8;

 

 

 

Clock configuration 2

  RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;

  RCC_OscInitStruct.HSIState = RCC_HSI_ON;

  RCC_OscInitStruct.HSICalibrationValue = 16;

  RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;

  RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;

  RCC_OscInitStruct.PLL.PLLM = 8;

  RCC_OscInitStruct.PLL.PLLN = 216;

  RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;

  RCC_OscInitStruct.PLL.PLLQ = 2;
3 REPLIES 3
Jith cr
Associate II
Posted on April 27, 2017 at 20:13

Hi ,

I could find the CAN_Networking application from STM32Cube_FW_F7_V1.6.0.In this sample project , HSE is used as clock source.I tested this application in STM32F769I evk board and found CAN packet transmit is working fine.

I have connected the evk board to host pc using a CAN bridge module.So that I could see the CAN packet in host PC which is transmitted by 

STM32F769I evk board.

But the CAN packet receive is not happening When I am trying to send the CAN packet from Host PC to 

STM32F769I evk board.

But the STM32F769I evk board able to receive the CAN packet from host PC when I am using the 

Clock configuration 2.

I am not really wonder by seeing this result.

Is it possible to use  HSE clock source for CAN receive application?

How can I use the CAN_Networking application to test the CAN packet receiving at evk side?

Posted on May 19, 2017 at 13:37

Its got solved after correcting the BS1,BS2 and SJW values.

Posted on January 08, 2018 at 06:23

Hi jith, I am also working on the same , I am also facing the same issue that CAN is able to send with Clock 2 Configuration only. Can you please tell me the values of BS1,BS2 and SJW , which worked for you and what is the baud rate your using.Please reply ASAP.

Thanks