Unable to compile to hex file XC8

For general Flowcode discussion that does not belong in the other sections.
Post Reply
ilikejam
Posts: 3
http://meble-kuchenne.info.pl
Joined: Thu Feb 11, 2021 9:46 pm

Flowcode v10 Unable to compile to hex file XC8

Post by ilikejam »

I have upgraded from Flowcode 8 to Flowcode 10 and installed the tool chain from the Flowcode website (picv2) to compile for Microchip pic 8-bit devices. When I try to compile to hex the compiler (XC8) gives an error message "(902) no chip name specified; use "XC8 - CHIPINFO" to see available chip names". It seems as though the compiler is not being passed or is unable to recognise the $(chip) parameter? Is there a missing file? Is there a problem with XC8?

I have tried uninstalling/reinstalling Flowcode and the tool chain, installing the latest version of XC8 (V3.00) and followed the Wiki on how to change the Global Options Location to point to the newer version. In the Compiler Options I have tried variations on the $(chip) Parameter; forcing uppercase, lowercase and adding $(chipalt) parameter.

In the Project Options I have made sure the target device has been selected correctly (initially pic 16f1829) and the configuration is set correctly, then tried with various targets such as pic 12f675 and pic 16f1619 but the compiler still gives the same error code.

The flowchart compiles successfully to C code and can create and export stand-alone C code.

What am I missing? I have being trying to get it to compile to hex for the last few days and it's driving me crazy ( and my Wife as I'm not paying enough attention to her ;)

Device specification:

Processor AMD Ryzen 7 8845HS w/ Radeon 780M Graphics 3.80 GHz
Installed RAM 32.0 GB (31.3 GB usable)
System type 64-bit operating system, x64-based processor

Windows specification:

Edition Windows 11 Home
Version 24H2
Installed on ‎01/‎04/‎2025
OS build 26100.3476
Experience Windows Feature Experience Pack 1000.26100.54.0
Attachments
XC8 compiler error.jpg
XC8 compiler error.jpg (36.09 KiB) Viewed 1732 times
Global Options Locations.jpg
Global Options Locations.jpg (68.57 KiB) Viewed 1732 times
Compiler options.jpg
Compiler options.jpg (126.77 KiB) Viewed 1732 times

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 701 times

Re: Unable to compile to hex file XC8

Post by medelec35 »

Hello.
I have recently found that XC8 v3.00 does not work with Flowcode ,that could be the cause of the errors?
I'm currently using v2.50

What you can try is Select Build > Compiler Options
For PIC select Eblocks, then Click on the box for Default compiler for the platform C for PIC.
That should allow you to compile to hex or if you you have PIC upstream board you can select Compile to Target.

If you want to use a later compiler version that the default, the easiest way shown on this post.

The same information is available on the wiki
Martin

ilikejam
Posts: 3
Joined: Thu Feb 11, 2021 9:46 pm

Re: Unable to compile to hex file XC8

Post by ilikejam »

Thanks medelec35, I changed back to the compiler downloaded from the Flowcode website (in C:\Program Files (x86)\Flowcode\Common\Compilers\picv2) then selected the PICKIT3 (my programmer) in the Compiler Options and this allowed the C file to be compiled without warnings to the hex file.

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 701 times

Re: Unable to compile to hex file XC8

Post by medelec35 »

You're welcome.
That's great!
I'm glad you have Flowcode compiling again.
Thanks for letting us know.
Martin

Post Reply