STM32U535: SPI2 Stops Working When TRNG Enabled in CubeIDE
- November 17, 2025
- 5 replies
- 439 views
Hi
I’m using STM32U535CBTx MCU, using STM32Cube IDE.
Peripherals in use:
I2C1
UART4
LPUART1
SPI2
GPIO PB8, PB9, PB10 for LEDs
Issue:
SPI2 works fine when TRNG is disabled.
After enabling TRNG, SPI2 stops working.
I’ve attached both .ioc files (with TRNG enabled and disabled). Could someone please review them and suggest a solution?
Could anyone please:
Review my .ioc files
Explain why this happens and how to fix this issue?
Suggest how to use TRNG and SPI2 together
I have attached two .ioc files for reference:
sensor nodewith TRNG.ioc – this version has the TRNG peripheral enabled.
sensor node without TRNG.ioc – this version does not use TRNG and SPI2 works correctly.
Please review and help identify why SPI2 stops working when TRNG is enabled.”
Thanks in advance!
