Page 1 of 1

FC7 issues - UART interrupt register

Posted: Thu Sep 08, 2016 4:27 pm
by pladnows
Hi everyone,
I've got another problem in parallel with the ones I've described in my first post. Compiling a program for 32MZ2048ECM064, with all six UART ports declared and initialized, drops a following error:
(..)
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:\Program Files (x86)\Flowcode 7\CAL\includes.c:840:0,
from C:\prj\SMM\SMM.c:1260:
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c: In function 'FC_CAL_UART_Init_3':
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c:325:12: error: '__IEC5bits_t' has no member named 'U3RXIE'
IEC5bits.U3RXIE = 0;
^
C:\Program Files (x86)\Flowcode 7\CAL\PIC32BIT\PIC32BIT_CAL_UART.c:326:12: error: '__IEC5bits_t' has no member named 'U3TXIE'
IEC5bits.U3TXIE = 0;
^
C:\Program Files (x86)\Flowcode 7\compilers\pic32\bin\xc32-gcc.exe reported error code 255
FINISHED
Which is true, as the DS60001191F datasheet shows on its page 125 the U3TXIE bit is located in the IEC4 register.

Please correct me if I'm wrong.

Cheers,
Piotr

Re: FC7 issues - UART interrupt register

Posted: Fri Sep 09, 2016 9:22 am
by LeighM
Hi Piotr,

Thanks for the spot, you are correct.
I've updated the PIC32BIT_CAL_UART.c file,
copy attached, to go into Flowcode7 installation directory ...\CAL\PIC32BIT

Thanks,
Leigh

Re: FC7 issues - UART interrupt register

Posted: Fri Sep 09, 2016 4:28 pm
by pladnows
Many thanks, it works!