Good afternoon Alice:
I think I didn't mention, but I have an app developed in CW MQX and I want to use the PWM in that app, that's why I didn't want to use the PE. I had tried it before but the problem is when I want to add the instructions. I tried copy-paste option, import-export, and nothing.
I've been trying to use the PE according to your comments but I have not succeeded, I think I have this problem according to what I'm doing .
1) I made a new MQX lite project, just for test, and using the processor expert of that project, the PWM worked.
2) According to your previous answer, I tried to do the same for the MQX project using the PE located in the bsp_twrk53n512 folder. I opened this PE, add the PWM_LDD component, set it up and generated the code.
4) For now, I created a new project in MQX, just for test again, to add the sample code shown in the help section of the PWM component, and in the paths and symbols option add the generated code folder, for libraries and other things I could need.
5) I build the project and no errors appear, but when I debug and run the project, it stock in the next line on Cpu.c file on Generated code folder:
while((MCG_S & MCG_S_LOCK_MASK) == 0x00U) { /* Wait until locked */
}
Am I doing something wrong? or what I am missing? I hope my explanation has been clear.
Best regards.
José