Hi guys,
can you help me, i want to Debug runtime of FOC with PIN FOC_GPIO_PIN0 and oscilloscope.
I can't find this in the schematics of TMDSIDK437X.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi guys,
can you help me, i want to Debug runtime of FOC with PIN FOC_GPIO_PIN0 and oscilloscope.
I can't find this in the schematics of TMDSIDK437X.
here is the part of file foc.c
/* * ======== PWM ISR Hwi (10Khz) ======= * Continue FOC Routine. Post the Semaphore so SPI read can start */ void PwmISR(UArg a0) { #ifdef ENABLE_DEBUG_FOC_PROFILE_GPIO GPIO_write(FOC_GPIO_PIN0, 1); #endif Drv_PWM_ClearInt(pruIcssHandle); // clear the INT in PWM module //Swi_post(swi0_foc_loop); // post SWI to start FOC loop FocLoop(); #ifdef ENABLE_DEBUG_FOC_PROFILE_GPIO GPIO_write(FOC_GPIO_PIN0, 0); #endif }
herer is the part of foc_pwm.h
#define FOC_GPIO_PIN0 (0 + ETHERCAT_GPIO_OFFSET)