PWM no function after update

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
DirkB
Posts: 58
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 3:55 pm
Been thanked: 4 times

PWM no function after update

Post 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

chipfryer27
Valued Contributor
Posts: 1148
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 285 times
Been thanked: 412 times

Re: PWM no function after update

Post 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

DirkB
Posts: 58
Joined: Thu Dec 10, 2020 3:55 pm
Been thanked: 4 times

Re: PWM no function after update

Post by DirkB »

Hello,

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

DirkB
Posts: 58
Joined: Thu Dec 10, 2020 3:55 pm
Been thanked: 4 times

Re: PWM no function after update

Post 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

Post Reply