Page 1 of 1

GPS 8Bit Pic not compile!

Posted: Mon Mar 18, 2024 7:17 pm
by jgu1
Hi MM!

I think there is an issue with the GPS component In 10, tested both.

I Have an old examble with the GPS. If I compile something in XC8 error, if I change to Arduino it compile.
As soon I add the GPS component to the dashboard and initialise and try to compile, the compiler come with an error. I try to make a new testprogram with Pic16f876 not possible to compile, am I doing something wrong :?:

EDIT, now also without using the GPS component:

C:\Flowcode10\MMeksembler\GPStest>"C:\Program Files (x86)\Flowcode\Common\Compilers\pic\bin\xc8-cc.exe" -mcpu=16F876 "Fjern.c" -w=359,1273,1388 -fno-short-float -fno-short-double -std=c90 -Os
'"C:\Program Files (x86)\Flowcode\Common\Compilers\pic\bin\xc8-cc.exe"' is not recognized as an internal or external command,
operable program or batch file. ? :?:

No problem in FC9

Br Jorgen

Re: GPS 8Bit Pic not compile!

Posted: Mon Mar 18, 2024 10:58 pm
by medelec35
Hi Jorgen.
There are two issues.
First is it looks like the wrong PIC toolchain has been installed.
Can you go to here and download the 8bit tool chain, install that.
The correct path should be
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\" 16F15386 "D:\Flowcode Testing\" "GPS_876_Selv"

Not
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\pic\" 16F876 "C:\Flowcode10\MMeksembler\GPStest\" "GPS_test2_876"

Or it could be the path is wrong within Global Options > Locations
For the PIC: entry, it should be

Code: Select all

C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\

Also, there is not enough memory available using your current target.
You will need to change for a target device with more memory.

Re: GPS 8Bit Pic not compile!

Posted: Tue Mar 19, 2024 1:20 pm
by jgu1
Hi Martin!

Thank you for fast reply :D First the problem is on my second Laptob, not use this very often, I have a master PC, think the 8 bit work on this.

Your link "here" doesnt work, could you please check Martin, then I will install the Toolchain this evening and see if it is possible to compile to hex.

Many thankĀ“s in advance ;)

Jorgen

Re: GPS 8Bit Pic not compile!

Posted: Tue Mar 19, 2024 7:21 pm
by medelec35
Hi Jorgen.
Sorry, corrected the link, so it should work now

Re: GPS 8Bit Pic not compile!

Posted: Tue Mar 19, 2024 7:31 pm
by jgu1
Mealwhile I found it Martin, thank you. :D Install the Toolchain and first still not compile, same, but then I (as you say change to "bigger chip) I can compile :D

But this is a very simpel and small program with gps, is this gps take so much space in the pic16F876?

Will it be a good idea to reinstall all the toolchain or are they not newer version?


Att. new device.

EDIT. I remember that I have used similar project almost equal in FC5 with target pic16f876, there I have no problem with enough space? Please :)



Jorgen