@xlandrexl
The code example I got from NXP didn't work. However I did figure out how to change the mandate, from my notes:
You need to create a User ID with the id of RESERVE_ID_PLATFORM_SCP. When SCP is mandatory, the connection to the SE050 is required to be platform SCP. When connected via Platform SCP, you can create a user id and create a session with this user id within an SCP session. That’s the key, authenticating using a UserID object with the id of RESERVE_ID_PLATFORM_SCP.
I initially created an AES object with a RESERVE_ID_PLATFORM_SCP id then make platform scp required. To undo I needed to authenticate with this id (RESERVE_ID_PLATFORM_SCP), however I can’t create a session with an AES key since mandatory SCP is enabled. One option would be to create a UserID with kSE05x_AppletResID_FACTORY_RESET id and then clear everything
I haven't worked on the SE050 for a while, so you'll probably need to do some debugging here. I can't share any sample code because it is proprietary.
Also, NXP might have a working example now.
Dean