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
PIC32 PWM(internal) component (resolved)
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC32 PWM(internal) component broken
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: PIC32 PWM(internal) component broken
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)
Pic 32MZ0512EFE064
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)
Pic 32MZ0512EFE064
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Posts: 198
- Joined: Sun Nov 04, 2018 7:13 pm
- Has thanked: 27 times
- Been thanked: 33 times
- Contact:
Re: PIC32 PWM(internal) component broken
That's what I ran into on a hand full of components that I tried.
Chad
Chad
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC32 PWM(internal) component broken
Thanks for letting us know. This one should be fixed now too.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel