Hello Jazmi,
At first, I need to ask you, did you follow the steps in the "4 Programming the CSEc Security Module" in the AN5401?
https://www.nxp.com/webapp/Download?colCode=AN5401
There is an important description:
"4.1 PRGPART: Program Partition Command
To start using the CSEc command set, the user must configure the device into emulated-EEPROM mode."
Did you run the Program Partition Command?
I would like to recommend you the working example, but I cannot share it on the community.
Could you please create a ticket? How to submit a new question for NXP Support
Thank you.
Best Regards,
Diana