Page 1 of 1

PWM no function after update

Posted: Sat Nov 11, 2023 12:12 pm
by DirkB
Hello,

there has been an update to the PWM. After the update, the compiler returns an error. The PWM no longer works. My chip is the 16F1825. Everything worked fine until yesterday.
Here is the error message.

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_PWM.c:88:2: error: (192) undefined identifier "MX_PWM_TRIS_11"
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_PWM.c:88:27: error: (192) undefined identifier "MX_PWM_PIN_11"
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_PWM.c:88:43: error: (192) undefined identifier "MX_PWM_PORT_11"
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_PWM.c:340:1: error: (192) undefined identifier "MX_PWM_TRIS_11"
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_PWM.c:340:25: error: (192) undefined identifier "MX_PWM_PIN_11"
PWM no function after update

Dirk

Re: PWM no function after update

Posted: Sat Nov 11, 2023 12:24 pm
by chipfryer27
Hi

Can you attach your chart?

Also, after an update components sometimes "default" to initial pin values. It's worth checking that your pin assignments are still valid.

Regards

Re: PWM no function after update

Posted: Fri Nov 17, 2023 3:17 pm
by DirkB
Hello,

of course, I always create a new project with this
component to rule out other errors. The same result.

Re: PWM no function after update

Posted: Fri Nov 24, 2023 6:15 pm
by DirkB
After the update to PWM V7 the PWM works. According to the data sheet,
the PIC18F14K22 has up to 4 PWM outputs. How can I set these?

Dirk