C-File from Version 10 to MPLAB

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Jorg_Guldner
Posts: 31
http://meble-kuchenne.info.pl
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

C-File from Version 10 to MPLAB

Post 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

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: C-File from Version 10 to MPLAB

Post by Steve-Matrix »

I can see only warnings in that excerpt and no errors. Can you post the full file?

Jorg_Guldner
Posts: 31
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

Re: C-File from Version 10 to MPLAB

Post by Jorg_Guldner »

Hello!
Here is the old file.....


Regards
Jorg
Attachments
PIC12F617_V10.fcfx
(35.57 KiB) Downloaded 12 times

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: C-File from Version 10 to MPLAB

Post 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.

Jorg_Guldner
Posts: 31
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

Re: C-File from Version 10 to MPLAB

Post by Jorg_Guldner »

Hello!
Here is the complete message from MPLAB.

Regards
Jorg
Attachments
PIC12F617_Compile meassage MPLAB.txt
(20.49 KiB) Downloaded 13 times

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: C-File from Version 10 to MPLAB

Post 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.

Jorg_Guldner
Posts: 31
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

Re: C-File from Version 10 to MPLAB

Post by Jorg_Guldner »

Hello!
Thanks for the info.
"Succsessfully compiled" means, that all is OK without errors?



Regards
Jorg

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: C-File from Version 10 to MPLAB

Post 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

Post Reply