cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX Bug Report: User Constants Checking differs between HEX and Decimal

ttodorov
Associate II
Posted on June 19, 2016 at 10:38

Hello,

While using STM32CubeMX version 4.15.1, I noticed the following error:

When creating user constants, the entered values are checked for size as unsigned integer, if entered as decimals, but as signed integers when entered as hexadecimals.

Steps to verify:

1) Create a project and choose a DISCOVERY board as target (I chose STM32F429I-DISCO)

2) Enable the LTDC and FMC -> SDRAM peripherals

3) Configure the clock options

4) Go to the Configuration tab

5) Open the FMC peripheral configuration and create a user constant ''SDRAM_START_ADDRESS''. Enter 0xD0000000 as its value.

When confirmed with OK, the UI will display an error dialog with the message ''Value is not valid!''. But if the constant value is changed to 3489660928, the change is accepted and the constant is added to the project.

Just to confirm, I tried adding 0x7fffffff and 0x80000000 as a test. As expected 0x7fffffff is accepted without problems, but 0x80000000 produces the same error message as stated above.

Expected resolution: Values entered as hex should be checked as unsigned integers, same as values entered as decimals.

Thanks,

Todor

#bug-stm32cubemx
2 REPLIES 2
Nesrine M_O
Lead II
Posted on June 20, 2016 at 10:31

Hi Todor,

Thank you for your feedback. The issue has been reported internally. 

-Syrine-

stm32cube-t
Senior III
Posted on October 06, 2016 at 17:16

Dear user,

This has been fixed in STM32CubeMX 4.16.

Best regards