Hi,
I facing a strange issue in Rx66t (R5F566TEADFP) GPT Pwm. I'm using GPT0 (Triangular Mode 2) for generating Complimentry Pwm. Pin - (PD6 & PD7) was configured as PWM pins. When I'm using Debugger to debug and run. I'm Getting the PWM as expected. When I remove debugger and try to run standalone, I haven't get the Pwm. With same Configuration GPT3 (PD0 & PD1) has no issues, I'm getting PWM as expected. I have created a simple code where i'm just starting a PWM before while. Kindly help me with this. I'm strucked at this Point.
void R_Config_GPT0_Start(void){ /* Enable GPTW0 interrupts */ IR(PERIA,INTA253) = 0U; IEN(PERIA,INTA253) = 1U;
/* Disable GPTW0 start write protect */ GPTW0.GTWP.BIT.STRWP = 0U;
/* Start GPTW0 counting */ GPTW0.GTSTR.BIT.CSTRT0 = 1U;
/* Enable GPTW0 start write protect */ GPTW0.GTWP.BIT.STRWP = 1U;}
void main(void){ R_Config_GPT0_Create(); R_Config_GPT3_Create(); R_Config_GPT0_Start(); R_Config_GPT3_Start(); while(1) {
}}
Hello Krishna,
Pins RD6 and PD7 are multiplexed with the JTAG interface. So probably when the debugger is disconnected, these pins keep waiting for the JTAG commands.
If it's possible in your design, try to remap the PWM pins to other pins. Or disable the JTAG interface when the debugger is not used.
Kind regards,
Sergey
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Hi Sergey, we found the issue, where EMLE pin pulled up. Looks like it's making those pins as JTAG interface. Thanks for your insight.