Part Number: TMS320F280049C
Other Parts Discussed in Thread: TIDM-02008, C2000WARE
Hi Expert,
My customer meets an issue that the CPIO22 output could not be toggled when used in .cla file, just stop at "HWREG(GPIODATA_BASE + GPIO_O_GPACLEAR ) = GPIO_PROFILING1_CLEAR;" line.
Could you please give some comments about how to debug or fix this issue? Thanks!
They have configured the GPIO22 referring to TIDM-02008 code as below,
In .c file, setting the GPIO
GPIO_setDirectionMode(GPIO_PROFILING1,GPIO_DIR_MODE_OUT);
GPIO_setQualificationMode(GPIO_PROFILING1,GPIO_QUAL_SYNC);
GPIO_setPinConfig(GPIO_PROFILING1_PIN_CONFIG);
GPIO_setMasterCore(GPIO_PROFILING1, GPIO_CORE_CPU1_CLA1);
In .cla file, the code in Cla1Task4 loop,
setProfilingGPIO();
......
resetProfilingGPIO();
---------------------------------------------------------------------------------------------------------------------
inline void resetProfilingGPIO(void)
{
#pragma diag_suppress=770
#pragma diag_suppress=173
HWREG(GPIODATA_BASE + GPIO_O_GPACLEAR ) = GPIO_PROFILING1_CLEAR; //always stop here, after click "RUN" button.
#pragma diag_warning=770
#pragma diag_warning=173
}
Best Regards
Rayna