Skip to main content
Associate II
May 20, 2025
Solved

STM32CubeMX - V6.12.0 CAN-FD Transciever Delay Compensation & Auto Retransmission

  • May 20, 2025
  • 2 replies
  • 661 views

Hi,

I'm currently using STM32CubeMX V6.12.0 to initialise the peripherals on an STM32H753 processor, and I had a couple of questions:

1. How do I enable & then configure the CAN Transciever Delay Compensation within CubeMX?

2. Is there a mechanism for limiting the number of auto-retransmissions in the event of a CAN Error? I currently have that option unchecked but when doing bench-top testing it's clogging up the processor and causing it to run slowly.

 

Many Thanks,

 

Crispin

Best answer by Semer CHERNI

Hello @CZuercher_Ilm 

First let me thank you for posting.

About the CAN Transciever Delay Compensation, it is not possible to configure it from within STM32CubeMX.

For more details, I will redirect your question to the STM32MCUs forum as it is a better place to get help with the CAN configuration.

KR,
Semer.

2 replies

Semer CHERNI
Semer CHERNIBest answer
ST Employee
May 23, 2025

Hello @CZuercher_Ilm 

First let me thank you for posting.

About the CAN Transciever Delay Compensation, it is not possible to configure it from within STM32CubeMX.

For more details, I will redirect your question to the STM32MCUs forum as it is a better place to get help with the CAN configuration.

KR,
Semer.

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.
Technical Moderator
May 23, 2025

@CZuercher_Ilm wrote:

2. Is there a mechanism for limiting the number of auto-retransmissions in the event of a CAN Error? I currently have that option unchecked but when doing bench-top testing it's clogging up the processor and causing it to run slowly.


You can disable completely the retransmission with Init.AutoRetransmission = DISABLE.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
Associate II
May 28, 2025

Hi Saket,

 

Yes; I have disabled this particular bit of functionality, however in the fullness of time I need to be able to limit the number of retransmission attempts to say, 6, before that message is abandoned.

Is there a way of doing this elegantly and efficiently, without having to call interrupts etc.?

 

Many Thanks,

 

Crispin