10 Replies Latest reply on May 18, 2015 8:16 AM by rajender.mehta

    Not able to switch Stack pointer to PSP by setting CONTROL[1].

    rajender.mehta

       By default, SP points to MSP on init.

         

      Steps used:

         

          1. Set MSP and PSP registers.

         

          2. Assert SP reset to MSP upon setting.

         

          3. Set CONTROL[1] to switch SP to PSP.

         

          4. Asset CONTROL[1] as "high"

         

       

         

      Issue:

         

          SP still points to MSP. SP is not switching to PSP.

         

       

         

      Question:

         

      Are you aware of such behaviour? if yes, Is there any work around?