hello
how can i compile the C code generated with flowcode in MPLAB i know is possible but i cant do that?
C code compiling in mplab
-
- Posts: 40
- http://meble-kuchenne.info.pl
- Joined: Mon Apr 05, 2021 1:59 am
- Has thanked: 8 times
- Been thanked: 4 times
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: C code compiling in mplab
Hello,
It should be possible to take the Flowcode C and H files and compile them in MPLAB on a PC that has Flowcode installed. There are various library CAL files that the C and H file will access but as long as on the same PC then it all should work.
What errors are you getting in MPLAB?
It should be possible to take the Flowcode C and H files and compile them in MPLAB on a PC that has Flowcode installed. There are various library CAL files that the C and H file will access but as long as on the same PC then it all should work.
What errors are you getting in MPLAB?
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: C code compiling in mplab
yes i know but mplab dont compile it ........
i attached this
i attached this
- Attachments
-
- MPLAB ERR.txt
- (14.72 KiB) Downloaded 45 times
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 285 times
Re: C code compiling in mplab
Please post your *.fcfx project file, or better still a simple project that also has this issue, and we will investigate.
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 285 times
Re: C code compiling in mplab
Thinking further on this, you could try replicating the XC8 switches used by Flowcode as much as possible when compiling via MPLAB. For example, Flowcode uses "-std=c90" whereas your MPLAB compilation attempt uses "-std=c99" and that could be the setting that is causing the problem.
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 285 times
Re: C code compiling in mplab
For STM32 projects, the compilation process is more complex. Flowcode uses the GCC compiler toolchain and uses a batch file (stm32comp.bat) to perform the numerous compilation steps. You may be able to replicate this through a different IDE, but that is something we can't help with.