Hello,
Also you can try to use the script "LPC546xxMassErase" to erase and read ECRP level, it can confirm whether the ECPR is configured by OTP.
https://community.nxp.com/t5/LPC-Microcontrollers/LPC5460x-ECRP-Lockout/m-p/1351480/page/2
Only need check the one reply:

It describe detail steps.
About the meaning of CRP level return value:
Regarding this question, there is a table translation from the ECRP level user defined and the ECRP definition used by the ROM code:
/* Feature bit defines */
#define CRP_JTAG_EN_BIT (1 << 6)
#define CRP_MASS_ERASE_DIS_BIT (1 << 7)
#define CRP_IAP_PROT_EN_BIT (1 <<8)
#define CRP_ISP_PINS_EN_BIT (1 << 9)
#define CRP_ISP_IAP_EN_BIT (1 << 10)
#define CRP_DBG_MBOX_EN_BIT (1 << 11)
#define CRP_COUNT_MASK 0x3F
#define CRP_DEFAULT_FEATURES 0xFFFFFFFF
#define CRP_MASS_ERASE_ONLY (CRP_SECT_ERASE_DIS_BIT)
For example:
In CRP_JTAG_EN_BIT, 1 is JTAG/SWD enabled and 0 is disabled. It’s corresponding to ECRP value bit 17 and 16.
In CRP_MASS_ERASE_DIS_BIT, 0 is Mass Erase allowed and 1 is disallowed. It’s corresponding to the combination of ECRP value bit 0~5, bit 10~11, and bit 14~15.
In CRP_IAP_PROT_EN_BIT, 1 is IAP protection enabled and 0 is disabled. It’s corresponding to ECRP value bit 14~15.
In CRP_ISP_PINS_EN_BIT, 1 is ISP pin enabled and 0 is disabled. It’s corresponding to ECRP value bit 12~13.
In CRP_ISP_IAP_EN_BIT, 1 is ISP in IAP mode enabled and 0 is disabled. It’s corresponding to ECRP value bit 14~15.
In CRP_DBG_MBOX_EN_BIT, 1 is ISP-AP or debugger mailbox enabled and 0 is disabled. It’s corresponding the combination of some reserved ECRP bits and OTP setting.
Of course, all these ECRP value used by the ROM not only look into the user defined ECRP value but also check the OTP setting.
When “Query ECRP Level” is called, it returns the value used by the ROM code, but not the ECRP value programmed in the image by the user.
Unfortunately, this table is provided in the User Manual.
BR
Alice