2025-10-16 7:05 AM
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.
2025-10-16 7:51 AM
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.
2025-10-20 4:50 AM
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;”
2025-10-30 1:53 AM
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.