Hello @Shaffi ,
are you sure you are setting the correct option byte configuration mentinned in the Readme of the project ?
- User Option Bytes requirement (with STM32CubeProgrammer tool)
- TZEN = 1 System with TrustZone-M enabled
- SECWM1_PSTRT=0x0 SECWM1_PEND=0x7F All 128 pages of internal Flash Bank1 set as secure
- SECWM2_PSTRT=0x1 SECWM2_PEND=0x0 No page of internal Flash Bank2 set as secure, hence Bank2 non-secure
you should set the Tzen bit first to be able to see the secure watermark configuration
then the view of SECWM programming should be visible
then using IAR set the project secure as active and rebuild it
then rebuild the NS project (this is not done from your side that is why you get this error)
you should be good to go afterwords.
Regards
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.