cancel
Showing results for 
Search instead for 
Did you mean: 

cube MX issues with STM32U585OIY6QTR

JulioAndrade
Associate II

 

 

Hello,

I'm currently using STM32CubeIDE, version 1.15.1 (Build: 21094_20240412_1041 UTC), with the embedded package version 1.5.0. I have set up a project with a secure zone configuration.

After generating code from the IOC file, I encounter an issue in the flash.c file at line 54. The generated code looks like this:

 

//!!! HAL_FLASHEx_OBProgram is commented because some parameters are missing

//pOBInit.OptionType = OPTIONBYTE_USER|OPTIONBYTE_BOOTADDR

|OPTIONBYTE_WMSEC;

//pOBInit.WMSecStartPage = 0;

//pOBInit.WMSecEndPage = 126;

//HAL_FLASHEx_OBProgram(&pOBInit);

 

//!!! HAL_FLASHEx_OBProgram is commented because some parameters are missing

//pOBInit.OptionType = OPTIONBYTE_USER|OPTIONBYTE_BOOTADDR

|OPTIONBYTE_WMSEC;

 

 

The OPTIONBYTE_WMSEC parameter is on the next line of the comment, which causes it to be ignored by the //. This obviously breaks the build.

While this is easy to fix manually, I have to go back and correct this every time I regenerate the code from the IOC file. Has anyone else experienced this issue or found a more permanent solution?

Thanks in advance!

 

2 REPLIES 2
nouirakh
ST Employee

Hello @JulioAndrade

Could you please, provide more details about which MX version are you using?
Also could you please attach your .Ioc file/configuration or another Ioc that contains the same possible issue? This would help us to reproduce the issue and find a solution.

JulioAndrade
Associate II

Hello i am using 
STM32CubeIDE Version: 1.15.1 Build: 21094_20240412_1041 (UTC)