FC7 issues - UART interrupt register

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
pladnows
Posts: 11
Joined: Thu Sep 08, 2016 1:27 pm
Has thanked: 6 times
Been thanked: 6 times

FC7 issues - UART interrupt register

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: FC7 issues - UART interrupt register

Post 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
Attachments
PIC32BIT_CAL_UART.c
(18.95 KiB) Downloaded 271 times

pladnows
Posts: 11
Joined: Thu Sep 08, 2016 1:27 pm
Has thanked: 6 times
Been thanked: 6 times

Re: FC7 issues - UART interrupt register

Post by pladnows »

Many thanks, it works!

Post Reply