Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am using PSoC® Creator™ 4.2, PDL 3.1.0, and PSoC Programmer 3.28 tools and trying to debug the CM4 core of PSoC 6 MCUs. Debugging halts in the disassembly and not in main(). How do I get debugging to work properly?
This issue is caused because system calls added in the startup code of PDL 3.1.0 cannot be executed after the CM4 core debugging session is initiated. PSoC Programmer disables all interrupt notifications in the IPC_INTR_STRUCT.INTR_MASK register except for the debug access port (DAP). As a result, a system call from PDL is invoked but stuck in the loop polling for the IPC lock released. PSoC Programmer 3.28.3 release will provide the fix for this issue.
In the meantime, you can use one of the following workarounds:
1: In the Cy_SystemInit startup code, typically found in cyfitter_cfg.c:
Set the default value for the CYREG_IPC_INTR_STRUCT0_INTR_MASK register before the call to Cy_SysPm_LdoSetVoltage().