cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-CLASSB-U5 Integration with STM32U575zit6q

JShah.7
Associate III

Hi Support team;

I am using STM32U575-ZIT6Q for my project. I need to integrate X-CUBE-CLASSB-U5(STL) library in my project. I download library and try run example available in library.
STM32Expansion_CLASSB_U5_V4.0.0\Firmware\Projects\NUCLEO-U575ZI-Q\Applications\STL\STL_Single_Tests\STM32CubeIDE
Example working fine as per given configuration.
But i have some different configuration in my project. I have enable dual bank option.
In bank-1 i have 2 partition
1)Secure
2)Non secure
Same 2 partition in bank-2 also. Please check attached image for partition configuration.

Non secure post build command:

arm-none-eabi-objcopy -O binary "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.bin" && arm-none-eabi-size "${BuildArtifactFileName}" && echo " \"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe\" -sl \"${CWD}\\${BuildArtifactFileName}\" 0x08080000 0x080FFFFF 0x200" > call_prg.bat && "${CWD}\call_prg.bat"

secure post build command:

arm-none-eabi-objcopy -O binary "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.bin" && arm-none-eabi-size "${BuildArtifactFileName}" && echo " \"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe\" -sl \"${CWD}\\${BuildArtifactFileName}\" 0x0C000000 0x0C07FFFF 0x200" > call_prg.bat && "${CWD}\call_prg.bat"

 


When i try to build this example it will gives me error "Error: The slice size is invalid".so please guide me for same.

Please share working example if possible

JShah7_0-1687850262003.png

 

0 REPLIES 0