Hello,
write access to the BAF region should be disabled by setting the PFLASH_PFCR3[BAF_DIS] bit, to prevent execution from non-safety-compliant code.
disabling BAF execution in PFLASH control register3 (PFLASHC_PFCR3[BAF_DIS]


During debugging, I placed a breakpoint in the bootloader’s main() function and observed that the PFLASH_PFCR3[BAF_DIS] bit was already set (i.e., execution from the BAF region was disabled) before reaching this point.
Not execution. But access to the BAF flash region.
Could you please confirm:
I expect not as it is no documented. The default reset value is BAF_DIS=0. But I do not expect it since if it is set, BAF wont be able execute the branch to startup of application. It just makes no sense to have it set in BAF execution.
Yes, it is recommended.
I would check where your SW is BAF_DIS setting by placing breakpoint on write to BAF_DIS in your debugger.
Best regards,
Peter