Compiler-dependent component behavior[SOLVED]

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Sasi
Posts: 105
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 12:11 pm
Has thanked: 37 times
Been thanked: 13 times

Flowcode v10 Compiler-dependent component behavior[SOLVED]

Post by Sasi »

Hello everyone!
I would like to ask for help again.
Unfortunately, my problems with the PIC18F46K80 MCU are still not resolved.
Although I thought I had the solution: viewtopic.php?t=3122

The UART "SendString" component command still only works with the XC8 v2.50 compiler,
and the digital inputs work with everything except v2.50.
Currently, I can't compile a working project in which I use Input Portbits and send Strings via UART.
I created a Flowcode10 test project with XC8 v2.46 and it seems that the UART TX process execution is stuck due to incorrect results of String operations. (Length$("FLOWCODE")=0)
UART_and_Port_Compiler_Test.fcfx
(18.48 KiB) Downloaded 13 times
I created a test project in MPLAB X v6.25 to compare compilers. For XC8 v2.50 and XC8 v2.46 the ports and UART work perfectly.
UART_&_PORT_test.jpg
UART_&_PORT_test.jpg (38.26 KiB) Viewed 945 times
I would like the components used in the Flowcode10 project to also be able to work within a project.
Thank you in advance for your help,
Sasi
Last edited by Sasi on Sat May 10, 2025 4:19 pm, edited 1 time in total.

Sasi
Posts: 105
Joined: Wed Dec 02, 2020 12:11 pm
Has thanked: 37 times
Been thanked: 13 times

Re: Compiler-dependent component behavior

Post by Sasi »

Hello everyone,

I managed to find the cause of my problem with the "SendString" UART component command.
There was no problem with Flowcode.
The solution was to set the "Table Read Protect Boot" bit to "Disabled" in the configuration settings.
More information can be found here:
https://developerhelp.microchip.com/xwi ... tion-bits/
With this setting it also works correctly with the default compiler of Flowcode10. 8-)

However, it does not solve the digital input port bit error when using the compiler of XC8 v2.50,
but the input ports work fine with lower versions.
Regards,
Sasi

Post Reply