2024-10-09 02:42 AM
Hi, I'm developing an application based on STM32U031K8. I need to use the IRTIM peripheral to create an IR transmitter. I set TIM15_CH1 and TIM16_CH1 as "Output Compare No Output" but IRTIM peripheral still cannot be activated. May someone help me?
2024-10-09 06:58 AM
Hello @aerauliqa
Thank you for reporting,
Actually, IRTIM is not supported by STM32U0 MCUs.
It seems that CubeMX is being displayed incorrectly. I have escalated the issue to the relevant team for review and correction in internal ticket 193280.
KR,
Souhaib
2024-10-09 07:41 AM - edited 2024-10-09 07:42 AM
Not supported? In the STM32U031 data sheet the IRTIM peripheral is mentioned. See the attached screen-shot.
2024-10-09 08:23 AM
IR_OUT AF optimaly to PB9 enable it or ?
2024-10-09 08:32 AM - last edited on 2024-10-09 09:16 AM by MM..1
IR_OUT is on PA13 (PB9 does not exist in STM32U031K8)
2024-10-09 09:20 AM
Ofcourse K8 , but PA13 is SWD pin and isnt very effective use it ... Try C8 package or if swd debug isnt required use PA13.
2024-10-10 01:18 AM
Hello @aerauliqa
I checked RM0503 and found no mention of IRTIM. Currently, I will verify this because there is a discrepancy between the datasheet and the RM.
THX
Souhaib
2024-10-10 07:23 AM
Hello @aerauliqa
After double-checking, yes, the STM32U0 supports the IRTIM peripheral. I confirm that there is an issue with CubeMX that will be resolved as soon as possible.
Thank you,
Souhaib
2024-10-10 07:43 AM
Thanks so much for your precious support. Do you know whether an RC5 library is available to implement an IR transmitter? Or may you tell me where to find some example?