Hello @Avinpat123
To enter ISP mode, please use the runBootloader API.

Example:
In the application image boot process, regardless of whether the ISP pin is connected to the high level, the device will directly enter the ISP mode through the UART interface according to the parameter ISP Interface in arg.
#define ROM_API_TREE ((uint32_t*)0x1303fc00)
#define RUN_BOOTLOADER_API_TREE ((void (*)(void *)) ROM_API_TREE[0])
uint32_t arg = 0xEB120000; /*0xEB: represents Enter Boot; 0x12: represents enter ISP mode by UART only */
RUN_BOOTLOADER_API_TREE->runBootloader(&arg);
After the application image, which calls the above runBootloader API, has booted successfully, the device will only allow the UART interface to be connected to transfer the data with the host.
Thank you.
BR
Alice