FC7 issues - UART MX_HARD_BAUD_5 undeclared
Posted: Tue Sep 13, 2016 2:59 pm
After declaring and configuring 6 uart channels on 32MZ2048ECM064 I'm getting the error message listed below. All parameter fields are filled, including the baud rate of course. I've tried setting the baud rate manually using component macros but that didn't help either. I'm sure the project did compile previously (with software SPI set), before applying the SPI update from this viewtopic.php?f=63&t=18092 topic however it seems to be a completely separate issue. The project has 6 uart channels, 5 pwm's, one SPI channel and 5 analog inputs declared and initiated.
As usual, any help will be appreciated.
As usual, any help will be appreciated.
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic32\bin\xc32-gcc.exe -mprocessor=32MZ2048ECM064 -O1 -o "C:\prj\SMM\SMM.out" "C:\prj\SMM\SMM.c"
In file included from C:\prj\SMM\SMM.c:83:0:
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c: In function 'FC_CAL_UART_Init_5':
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c:173:36: error: 'MX_HARD_BAUD_5' undeclared (first use in this function)
#define MX_UART_BAUD_X CAL_APPEND(MX_HARD_BAUD_, MX_UART_NUM)
^
C:\Program Files (x86)\Flowcode 7\CAL\internals.c:65:26: note: in definition of macro 'CAL_APD'
#define CAL_APD(a, b) a##b
^
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c:173:25: note: in expansion of macro 'CAL_APPEND'
#define MX_UART_BAUD_X CAL_APPEND(MX_HARD_BAUD_, MX_UART_NUM)
^
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c:339:11: note: in expansion of macro 'MX_UART_BAUD_X'
U4BRG = MX_UART_BAUD_X; // Set the baud rate
^
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c:173:36: note: each undeclared identifier is reported only once for each function it appears in
#define MX_UART_BAUD_X CAL_APPEND(MX_HARD_BAUD_, MX_UART_NUM)
^
C:\Program Files (x86)\Flowcode 7\CAL\internals.c:65:26: note: in definition of macro 'CAL_APD'
#define CAL_APD(a, b) a##b
^
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c:173:25: note: in expansion of macro 'CAL_APPEND'
#define MX_UART_BAUD_X CAL_APPEND(MX_HARD_BAUD_, MX_UART_NUM)
^
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c:339:11: note: in expansion of macro 'MX_UART_BAUD_X'
U4BRG = MX_UART_BAUD_X; // Set the baud rate
^ ^
(..)