Skip to main content
farukisiker
Associate III
March 11, 2025
Question

CUBEIDE Bug in RTC Generation

  • March 11, 2025
  • 2 replies
  • 824 views

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.

 

2 replies

Technical Moderator
March 11, 2025

Hello @farukisiker 

Thank you for posting!

Could you mention the name of the MCU where you encountered the issue?

KR,

Souhaib

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.
farukisiker
Associate III
March 11, 2025

Stm32H7 Series

TDK
Super User
March 11, 2025

TDK_1-1741686298843.png

This behavior is correct. 12 decimal expressed in BCD format is 0x12. If you change it to binary format, it will be 12.

"If you feel a post has answered your question, please click ""Accept as Solution""."
farukisiker
Associate III
March 11, 2025

You can check that video to ensure that there is a problem here. 

BCD only shows that the number is between 0-9. It even does not accept hex value during configuration.