Please confirm whether you are using latest PDL 3.1.0. If not, please install the latest PDL from here and configure the PSoC 6 PDL version in PSoC Creator, Tools > Options.
If it does not resolve the issue, could you share the project to recreate the issue at our end?
I am working with modus Toolbox 1.1, how can I check PDL version ?, I still have an issue
I found that the firmware stuck at function "Cy_Flash_RAMDelay" I replace this function with "Cy_SysLib_DelayUs" is this right?
No, you can not use Cy_SysLib_DelayUs instead Cy_Flash_RAMDelay. What cy_flash.c version do you use (see in header of this file) ? Also please inform version of cy_syspm.c. Do you use Cy_SysClk_StartClkMeasurementCounters() or Cy_SysPm_DeepSleep somewhere in your project? If so could you describe the flow how do you use those function in context of RTOS.