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.
Tool/software: Code Composer Studio
EPWM1, 2,3 are defined and initialized in CPU1, and ePWM1 interrupt configuration is conducted in CPU2. CPU2 cannot enter ePWM interrupt.
That's what it says in the manual:
Hi,
Can you check if the interrupt is getting recieved at CPU1? There might be some issue with PWM configurations.
Also, ideally the ownership of PWM1 should be passed to CPU2 as there might be need to perform some critical PWM configurations in ISR. What is the usecase of keeping the ownership still with CPU1?
Thanks
Vasudha
EPWM1, 2,3 are defined and initialized at CPU1.
When i just configure the pwm1 interrupt at CPU1, the CPU1 can enter the pwm1 interrupt .
When i configure the pwm1 interrupt in the CPU1 and CPU2, both of them can enter the pwm1 interrupt.
When i just configure the pwm1 interrupt at CPU2, the CPU2 can not enter the pwm1 interrupt .
I want to construct a motor control system. CPU1 is responsible for current loop calculation and generate PWM duty ratio. If the CPU2 control the PWM module, Can CPU1 write the value to the register directly? If not, CPU1 maybe use the meassageRAM and create the delay of communication.
Thanks for your help.
Hi,
Can you check if interrupt is enabled and latched at EPWM level in CPU1 by checking the ETFLG.INT in Debug window? Try clearing the EPWM interrupt flag before enabling the interrupt at CPU2. Check if Interrrupt is getting latched at PIE level in CPU2. Also please share the ISR code at CPU2, the interrupt needs to be acknowledged in CPU2 ISR.
Thanks
Vasudha