cancel
Showing results for 
Search instead for 
Did you mean: 

CUBEIDE Bug in RTC Generation

farukisiker
Associate II

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.

 

4 REPLIES 4
Souhaib MAZHOUD
ST Employee

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.

TDK
Super User

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".

Stm32H7 Series

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.