As I understand it, NXP deleted the relevant bit description in the DCM register, DCMDEB register- HSE_APP_DIS_FLD, HSE_DBG_EN_FLD, HSE_APP_DIS_OEM and HSE_DBG_EN_OEM bitfields are removed.
Disable debug can only be implemented using HSE-H, that is, paid version HSE.(in HSE_B I saw the API,but can not use)
Otherwise, only password protection can be used for authentication.

BRs,
xianlong