2025-03-11 2:10 AM
Hello,
In CubeIDE I try to generate RTC code which has decimal parameters. However in code generation I realized that it converted to hex value by itself.
You can check screen shots in the attachment.
2025-03-11 2:40 AM
Hello @farukisiker
Thank you for posting!
Could you mention the name of the MCU where you encountered the issue?
KR,
Souhaib
2025-03-11 2:45 AM - edited 2025-03-11 2:46 AM
This behavior is correct. 12 decimal expressed in BCD format is 0x12. If you change it to binary format, it will be 12.
2025-03-11 3:26 AM
Stm32H7 Series
2025-03-11 3:33 AM