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.

AM2634-Q1: Why we add this line code will affect PWM waveform work normally?

Part Number: AM2634-Q1
Other Parts Discussed in Thread: AM2634

Hi Experts,

I am asking for my customer.

They used AM2634 develop LLC and DC-DC, R5F1-0 used LLC control(PWM1/PWM2/PWM3/PWM4), R5F1-1 used PFC control (PWM6/PWM7/PWM8/PWM9). They can run normally without line 136 complier, and then R5F1-0 and R5F1-1 can run normally as below figure 1. But if customer add line 136 complier as below figure 2, and then R5F1-0 and R5F1-1 ISR run normally, but PWM waveform abnormally it will disturb// always PWM9A high, PWM9B low, both PWM1A always low and PWM1B always high. we also check TBPRD and CMPA value is right. So they wonder why this difference? 

We also do same experiment let R5F 1-0 code size increase by setting up code optimization level, we setup code optimization level from g to none, and then the same issue happen again.

Question:

Q1:When SBL starts, does it run in dual-core or lock-step core mode? Is the TCM initialized?

Q2:We have G0/G1/G2/G3 PWM module, we try R5F1-0 and R5F1-1 access same group different PWM, the same issue happen. we also try R5F1-0 access G1/PWM1/PWM2/PWM3/PWM4 and R5F1-1 access G3/PWM1/PWM2/PWM3/PWM4, only we add the line 136 code to project, the same issue happen. How to debug this issue? How to understand different Group PWM? Please give us some suggestion.

Figure1.

Figure2.