Page 1 of 1

PIC32 PWM(internal) component (resolved)

Posted: Sat Nov 09, 2019 5:38 am
by chad
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

Re: PIC32 PWM(internal) component broken

Posted: Sat Nov 09, 2019 11:21 am
by Benj
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.

Re: PIC32 PWM(internal) component broken

Posted: Sat Nov 09, 2019 3:13 pm
by QMESAR
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 4341 times

Re: PIC32 PWM(internal) component broken

Posted: Sat Nov 09, 2019 9:04 pm
by chad
That's what I ran into on a hand full of components that I tried.

Chad

Re: PIC32 PWM(internal) component broken

Posted: Mon Nov 11, 2019 1:42 pm
by Benj
Thanks for letting us know. This one should be fixed now too.

Re: PIC32 PWM(internal) component broken

Posted: Mon Nov 11, 2019 3:17 pm
by chad
Thanks, I'll give this another try!

CHad