cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6 FDCAN Baudrate not changed

JaiGanesh
Associate II

Hi,

I’m working with the STM32N6 board and need to configure the FDCAN1 parameters. I’m using the 64 MHz internal clock, and I calculated the bit rate using the Bit Rate Calculator. I want to set a baud rate of 500 kbps, but I’m unable to do so. The configuration always shows a default value of 1000 bps, and it does not change even when I modify Nominal Time Segment 1 & 2 or the Prescaler. In the clock configuration, the FDCAN1 frequency is set to 200 MHz.

Here are the steps I have already tried:

  1. Changing the APB clock.

  2. Changing the FDCAN1 clock frequency to 100 MHz.

  3. Checking both the FSBL and application layers.

  4. Using the STM32 example code from the repository.

  5. Testing on an N6 Nucleo board — the baud rate still does not change

I have also attached the project file for the reference.

If anyone has encountered this issue before or has any suggestions, please let me know.

 

Thankyou.

1 REPLY 1
mƎALLEm
ST Employee

Hello,

That's true the display is showing a constant 1000 bps (I'm reporting that in the internal ticket number 222284) but the code generated reflects the timing configuration. I've tested it with CubeMx 6.16.

mALLEm_0-1763729323883.png

So the bitrate should be correct in real.

Did you test in External Loopback mode and probe on FDCAN_Tx and check the bitrate of 500kb/s?

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.