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)
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.
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
Compiler-dependent component behavior[SOLVED]
-
- Posts: 105
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 12:11 pm
- Has thanked: 37 times
- Been thanked: 13 times
Compiler-dependent component behavior[SOLVED]
Last edited by Sasi on Sat May 10, 2025 4:19 pm, edited 1 time in total.
Re: Compiler-dependent component behavior
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.
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
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.

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