Skip to main content
Associate
October 16, 2025
Question

No code when IO Pin Swap enabled

  • October 16, 2025
  • 1 reply
  • 425 views

When I select IO pin swap in CubeMX, the LL SPI initialization code does not update the pin swap register.

Using H5 Nucleo board and LL HAL.  Easy workaround if you know to look for it.

 

1 reply

Technical Moderator
October 16, 2025

Hello @Stephen9 ,

 

Let me thank you for posting and welcome to the ST Community.

For more investigation, could you please provide your Ioc.File.

 

Thanks.

Mahmoud

 

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.
Stephen9Author
Associate
October 20, 2025

See attached .ioc as well as the generated main.c.  LL settings used for code generation.

SPI2 and SPI3 configured as Rx only slaves with IO swap enabled.  Also note TIM15 repetition count set to 80-1 for 80 repeats.

SPI2 and SPI3 do not include pin swap when initialized.  Another issue I noticed is repetition value in the code is "80-LL_TIM_ETR_FILTER_FDIV1_N2;”

Technical Moderator
October 30, 2025

Hello @Stephen9 

 

Let me thank you for bringing those issues to our attention.

First Issue while enabling IO Swap on SPI with LL Drivers, an internal ticket was submitted to the Development Team

( Internal Ticket Number: 220092 ).

Second Issue while enabling Timer with LL Drivers, an internal ticket was also submitted to the Development Team

 ( Internal Ticket Number: 220772).

I will keep you up to date when the problems are solved.

 

Thanks.

Mahmoud

 

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.