cube MX issues with STM32U585OIY6QTR
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!
