Please help me to change the cpu state from secure to non-secure hust after starting in reset handler itself.
Is there any way to change its state to the non-secure region.
From the docs:
C2.4.25 BLX, BLXNSBranch with Link and Exchange (Non-secure). Branch with Link and Exchange calls a subroutine at an address,with the address and instruction set speciﬁed by a register. Bit complies with the Arm architecture interworkingrules for switching between the A32 and T32 instruction sets. However, Armv8-M only supports the T32 instructionset, so bit must be 1. If bit is 0 the PE takes an INVSTATE UsageFault exception on the instruction at thetarget address.Branch with Link and Exchange Non-secure calls a subroutine at an address speciﬁed by a register, and if bit ofthe target address is 0 then the instruction causes a transition from Secure to Non-secure state. This variant of theinstruction must only be used when the additional steps required to make such a transition safe have been taken.
View all questions in Cortex-M / M-Profile forum