Hi @baseerahmadpiracha
to enable the secure boot, it's necessary to enable the CSEc by executing Program Partition command and then it is necessary to load MASTER_ECU_KEY. These operations can be found in 1_Configure_part_and_Load_keys project.
Then you can skip directly to the 4_secure_boot_add_BOOT_MAC_manual which shows how to load BOOT_MAC_KEY, how to enable the secure boot and how to load BOOT_MAC (either automatically or manually). Notice that only manual option is possible in case of strict sequential secure boot mode.
If sequential or parallel boot mode fail, it does not affect the booting and application at all. The only effect is that boot protected keys cannot be used by the application. In this case BOK bit in FCSESTAT register will be '0' after boot.
The device will not start up only if strict sequential boot mode fails. In this case, the device will never leave reset and there’s no way to recover. The device must be replaced.
I recommend to thoroughly read AN5401 before your tests to avoid bricking of the device.
Regards,
Lukas