Skip to main content
Associate II
April 12, 2024
Solved

Stm32G431KBU6 CANFD can't work when BRS On?

Hi community:

     I'm using CANFD on stm32g431kbu6 board, but I find some issue that CANFD cant work normally with BRS ON,my config of CANFD show in the comments。Does anyone know about this?

 

Thanks

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
May 7, 2024

You need to increase TSEG1 and TSEG2 as much as possible an decrease the prescaler either for Nominal or data phases.

TSEG1 ~= 80% (TSEG1+TSEG2) for sampling point at 80%

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

12 replies

eason_YiAuthor
Associate II
April 12, 2024

eason_Yi_0-1712890508884.pngeason_Yi_1-1712890524111.png

 

mƎALLEm
ST Technical Moderator
April 12, 2024

Hello and welcome to the community.

First, please see these guidelines when posting:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

Second, as stated in the guidelines above, you need to provide more information.

  1. What do you mean by "cant work normally"? no transmit? no receive? sometimes work sometimes not? please be concise.
  2. Did you test your solution in Loopback mode?
  3. Please provide details about your HW? which board? ST board? custom board? how about the transceiver? which transceiver part number?
  4. Please provide details about your CAN bus config? what is connected to?
  5. What about the clock source you're using? HSE/HSI?
  6. What about the filter config?

Need also to share your project, schematics if possible. Hard to tell about your issue based on the few lines you posted.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
eason_YiAuthor
Associate II
May 6, 2024

OK, and I find the reason, there is another CAN node with inconsistent data area sampling points (80%)in my CAN bus,my setting is 75%,so when it work together, CAN bus hang up

mƎALLEm
ST Technical Moderator
May 6, 2024

Hello,

Thank you for the feedback. But I'm not sure the issue is related to the sampling point. 80% or 75% as sampling points position don't make a difference, it could be something else .. May be it's a resolution of the bit time issue based on time quanta of that another CAN node.

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