PIC32 PWM(internal) component broken

Moderator: Benj

chad
Posts: 131
Joined: Sun Nov 04, 2018 7:13 pm
Has thanked: 23 times
Been thanked: 28 times
Contact:

PIC32 PWM(internal) component broken

Postby chad » Sat Nov 09, 2019 5:38 am

I tried to add a IPWM component and I can't asign a pin to it. It also won't compile.

Target folder: C:\Users\ralph\DOCUME~1\PICFLO~1
Source name: C:\Users\ralph\Documents\Pic flow projects\PicMZ test 1.fcfx
Title:
Description:
Device: PIC32.32MZ.32MZ0512EFE064
Generated by: Flowcode v8.2.1.13
Date: Friday, November 08, 2019 21:35:13

Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\bin\xc32-gcc.exe -mprocessor=32MZ0512EFE064 -O1 -o "C:\Users\ralph\DOCUME~1\PICFLO~1\PicMZ test 1.elf" "C:\Users\ralph\DOCUME~1\PICFLO~1\PicMZ test 1.c"
In file included from C:\Users\ralph\DOCUME~1\PICFLO~1\PicMZ test 1.c:90:0:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c: In function 'FC_CAL_PWM_Enable_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:53:36: error: 'MX_PWM_RPOR_1' undeclared (first use in this function)
#define MX_PWM_RPOR_X CAL_APPEND(MX_PWM_RPOR_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:70:26: note: in definition of macro 'CAL_APD'
#define CAL_APD(a, b) a##b
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:53:25: note: in expansion of macro 'CAL_APPEND'
#define MX_PWM_RPOR_X CAL_APPEND(MX_PWM_RPOR_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:74:3: note: in expansion of macro 'MX_PWM_RPOR_X'
MX_PWM_RPOR_X = MX_PWM_RPOC_X; //Assign PWM Channel OCx -> RPx - See FCD Defines For Info
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:53:36: note: each undeclared identifier is reported only once for each function it appears in
#define MX_PWM_RPOR_X CAL_APPEND(MX_PWM_RPOR_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:70:26: note: in definition of macro 'CAL_APD'
#define CAL_APD(a, b) a##b
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:53:25: note: in expansion of macro 'CAL_APPEND'
#define MX_PWM_RPOR_X CAL_APPEND(MX_PWM_RPOR_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:74:3: note: in expansion of macro 'MX_PWM_RPOR_X'
MX_PWM_RPOR_X = MX_PWM_RPOC_X; //Assign PWM Channel OCx -> RPx - See FCD Defines For Info
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:54:36: error: 'MX_PWM_RPOC_1' undeclared (first use in this function)
#define MX_PWM_RPOC_X CAL_APPEND(MX_PWM_RPOC_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:70:26: note: in definition of macro 'CAL_APD'
#define CAL_APD(a, b) a##b
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:54:25: note: in expansion of macro 'CAL_APPEND'
#define MX_PWM_RPOC_X CAL_APPEND(MX_PWM_RPOC_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:74:19: note: in expansion of macro 'MX_PWM_RPOC_X'
MX_PWM_RPOR_X = MX_PWM_RPOC_X; //Assign PWM Channel OCx -> RPx - See FCD Defines For Info
^
In file included from C:\Users\ralph\DOCUME~1\PICFLO~1\PicMZ test 1.c:90:0:
C:\Users\ralph\DOCUME~1\PICFLO~1\PicMZ test 1.c:173:23: error: 'TRIS' undeclared (first use in this function)
#define MX_PWM_TRIS_1 TRIS
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:306:35: note: in definition of macro 'clear_bit'
#define clear_bit(var,bitno) var &= ~(1 << bitno)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:81:3: note: in expansion of macro 'FC_CAL_Bit_Low_DDR'
FC_CAL_Bit_Low_DDR (MX_PWM_PORT_X, MX_PWM_TRIS_X, MX_PWM_PIN_X); //PWM pin is an output
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:70:26: note: in expansion of macro 'MX_PWM_TRIS_1'
#define CAL_APD(a, b) a##b
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:71:28: note: in expansion of macro 'CAL_APD'
#define CAL_APPEND(a, b) CAL_APD(a, b)
^
C:\ProgramData\MatrixTSL
\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:51:25: note: in expansion of macro 'CAL_APPEND'
#define MX_PWM_TRIS_X CAL_APPEND(MX_PWM_TRIS_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:81:38: note: in expansion of macro 'MX_PWM_TRIS_X'
FC_CAL_Bit_Low_DDR (MX_PWM_PORT_X, MX_PWM_TRIS_X, MX_PWM_PIN_X); //PWM pin is an output
^
C:\Users\ralph\DOCUME~1\PICFLO~1\PicMZ test 1.c:172:23: error: 'PORT' undeclared (first use in this function)
#define MX_PWM_PORT_1 PORT
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:306:35: note: in definition of macro 'clear_bit'
#define clear_bit(var,bitno) var &= ~(1 << bitno)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:81:3: note: in expansion of macro 'FC_CAL_Bit_Low_DDR'
FC_CAL_Bit_Low_DDR (MX_PWM_PORT_X, MX_PWM_TRIS_X, MX_PWM_PIN_X); //PWM pin is an output
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:70:26: note: in expansion of macro 'MX_PWM_PORT_1'
#define CAL_APD(a, b) a##b
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:71:28: note: in expansion of macro 'CAL_APD'
#define CAL_APPEND(a, b) CAL_APD(a, b)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:50:25: note: in expansion of macro 'CAL_APPEND'
#define MX_PWM_PORT_X CAL_APPEND(MX_PWM_PORT_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:81:23: note: in expansion of macro 'MX_PWM_PORT_X'
FC_CAL_Bit_Low_DDR (MX_PWM_PORT_X, MX_PWM_TRIS_X, MX_PWM_PIN_X); //PWM pin is an output
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c: In function 'FC_CAL_PWM_Disable_1':
C:\Users\ralph\DOCUME~1\PICFLO~1\PicMZ test 1.c:173:23: error: 'TRIS' undeclared (first use in this function)
#define MX_PWM_TRIS_1 TRIS
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:305:35: note: in definition of macro 'set_bit'
#define set_bit(var,bitno) var |= (1 << bitno)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:111:3: note: in expansion of macro 'FC_CAL_Bit_In_DDR'
FC_CAL_Bit_In_DDR (MX_PWM_PORT_X, MX_PWM_TRIS_X, MX_PWM_PIN_X); //PWM pin is an input
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:70:26: note: in expansion of macro 'MX_PWM_TRIS_1'
#define CAL_APD(a, b) a##b
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:71:28: note: in expansion of macro 'CAL_APD'
#define CAL_APPEND(a, b) CAL_APD(a, b)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:51:25: note: in expansion of macro 'CAL_APPEND'
#define MX_PWM_TRIS_X CAL_APPEND(MX_PWM_TRIS_, MX_PWM_NUM)
^
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC32BIT\PIC32BIT_CAL_PWM.c:111:37: note: in expansion of macro 'MX_PWM_TRIS_X'
FC_CAL_Bit_In_DDR (MX_PWM_PORT_X, MX_PWM_TRIS_X, MX_PWM_PIN_X); //PWM pin is an input
^

C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\bin\xc32-gcc.exe reported error code 255

Autoclose turned off


FINISHED

Chad

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: PIC32 PWM(internal) component broken

Postby Benj » Sat Nov 09, 2019 11:21 am

Hi Chad

Have you assigned the remap pin connection in the component properties. Same goes for uart based components.

If you have already done this then please post your programs so we can investigate.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1127
Joined: Sun Oct 05, 2014 3:20 pm
Has thanked: 347 times
Been thanked: 555 times
Contact:

Re: PIC32 PWM(internal) component broken

Postby QMESAR » Sat Nov 09, 2019 3:13 pm

Hi Ben,

Unless I make a mistake it seems that it is not possible to do a selection for the remap on the chip in FC
Shouldn't a list open with all the possibility in FC ? if I click on the remap position
at the moment the the list box change to white color with no list or pin descriptions (empty list) :D

Pic 32MZ0512EFE064

P1.jpg
P1.jpg (122.07 KiB) Viewed 162 times
These users thanked the author QMESAR for the post:
chad (Sat Nov 09, 2019 9:05 pm)
Rating: 5.26%
 

chad
Posts: 131
Joined: Sun Nov 04, 2018 7:13 pm
Has thanked: 23 times
Been thanked: 28 times
Contact:

Re: PIC32 PWM(internal) component broken

Postby chad » Sat Nov 09, 2019 9:04 pm

That's what I ran into on a hand full of components that I tried.

Chad

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: PIC32 PWM(internal) component broken

Postby Benj » Mon Nov 11, 2019 1:42 pm

Thanks for letting us know. This one should be fixed now too.
These users thanked the author Benj for the post:
chad (Mon Nov 11, 2019 3:17 pm)
Rating: 5.26%
 

chad
Posts: 131
Joined: Sun Nov 04, 2018 7:13 pm
Has thanked: 23 times
Been thanked: 28 times
Contact:

Re: PIC32 PWM(internal) component broken

Postby chad » Mon Nov 11, 2019 3:17 pm

Thanks, I'll give this another try!

CHad