2024-08-28 06:45 AM
Hello
We are testing the SBSFU project on STM32U585 released in the cubeu5 project and came to see that the secure project uses 14kb of size and non secure approximate 1.2MB. Our requirement is to add some modules into the secure area and we need to increase the space in the secure area from 14 kb to 300kb (the modules will be called from the nonsecure application as well - so any changes in the secure nsc area required ?)and the corresponding size in the non secure size can be reduced as well. How can we increase the space in the secure application(the secure .ld file without causing any conflict in the address range after the change has been made).
could anyone suggest the steps required to adjust the spacing
any inputs are preferred
Thanks
Solved! Go to Solution.
2024-08-28 09:08 AM
Hello @sabari1,
In default configuration of SBSFU you have 1 slot containing both secure and non secure image (MCUBOOT_PRIMARY_ONLY and MCUBOOT_APP_IMAGE_NUMBER = 1)
The secure application size is basically defined by:
#define FLASH_S_PARTITION_SIZE (0x06000) /* 24K KB for S partition */
Non secure partition size in defined by
#define FLASH_NS_PARTITION_SIZE (0x140000) /* 1,25 MB for NS partition */
So, just change these values to fit your needs and rebuild everything.
Best regards
Jocelyn
2024-08-28 09:08 AM
Hello @sabari1,
In default configuration of SBSFU you have 1 slot containing both secure and non secure image (MCUBOOT_PRIMARY_ONLY and MCUBOOT_APP_IMAGE_NUMBER = 1)
The secure application size is basically defined by:
#define FLASH_S_PARTITION_SIZE (0x06000) /* 24K KB for S partition */
Non secure partition size in defined by
#define FLASH_NS_PARTITION_SIZE (0x140000) /* 1,25 MB for NS partition */
So, just change these values to fit your needs and rebuild everything.
Best regards
Jocelyn