Page 1 of 1

C-File from Version 10 to MPLAB

Posted: Wed Feb 21, 2024 8:20 am
by Jorg_Guldner
Hello Matrix team,
how can I managed it, to compile a Flowcode C-File in MPLAB? I got a lot of errors. Info: For future the C90 library is discontinued by Microchip.

Errors:
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make -f nbproject/Makefile-default.mk dist/default/production/Test.X.production.hex
make[2]: Entering directory 'C:/Downloads/Test.X'
"C:\Program Files\Microchip\xc8\v2.46\bin\xc8-cc.exe" -mcpu=12F617 -c -mdfp="C:/Program Files/Microchip/MPLABX/v6.20/packs/Microchip/PIC10-12Fxxx_DFP/1.7.178/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -mno-default-config-bits -std=c90 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/_ext/1472/PIC12F617_V10.p1 ../PIC12F617_V10.c
advisory: (2099) legacy C90 library is deprecated and will be discontinued in a future release; consult the release notes for more details
advisory: (2095) legacy HI-TECH support is deprecated and will be discontinued in a future release; consult the release notes for more details
../PIC12F617_V10.c:32:45: warning: (1388) configuration setting/register of "CONFIG" with 0x3F94 will be truncated by 0xFFF
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_IO.c:199:50: warning: (373) implicit signed to unsigned conversion
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_IO.c:205:27: warning: (373) implicit signed to unsigned conversion
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_IO.c:206:50: warning: (373) implicit signed to unsigned conversion
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_IO.c:212:33: warning: (373) implicit signed to unsigned conversion
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_IO.c:218:23: warning: (373) implicit signed to unsigned conversion
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_IO.c:219:33: warning: (373) implicit signed to unsigned conversion
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_String.c:500:19: warning: (373) implicit signed to unsigned conversion
......


Regards
Jorg

Re: C-File from Version 10 to MPLAB

Posted: Wed Feb 21, 2024 9:07 am
by Steve-Matrix
I can see only warnings in that excerpt and no errors. Can you post the full file?

Re: C-File from Version 10 to MPLAB

Posted: Wed Feb 21, 2024 11:27 am
by Jorg_Guldner
Hello!
Here is the old file.....


Regards
Jorg

Re: C-File from Version 10 to MPLAB

Posted: Wed Feb 21, 2024 11:52 am
by Steve-Matrix
Sorry. I mean the file (or a complete output listing) with the errors that was produced when you ran the C-code file through MPLAB.

Re: C-File from Version 10 to MPLAB

Posted: Thu Feb 22, 2024 4:15 pm
by Jorg_Guldner
Hello!
Here is the complete message from MPLAB.

Regards
Jorg

Re: C-File from Version 10 to MPLAB

Posted: Fri Feb 23, 2024 9:23 am
by Steve-Matrix
Thanks. Looking at that file, there are no errors being reported and the build is reported as being successful. So your project should work ok.

The warnings being reported can probably be ignored.

Re: C-File from Version 10 to MPLAB

Posted: Fri Feb 23, 2024 5:44 pm
by Jorg_Guldner
Hello!
Thanks for the info.
"Succsessfully compiled" means, that all is OK without errors?



Regards
Jorg

Re: C-File from Version 10 to MPLAB

Posted: Fri Feb 23, 2024 7:11 pm
by WingNut
It usually means it will work but you have a lot of 'warnings' which might produce unexpected results in hardware so you should try to resolve these