Page 1 of 1

Unable to compile to hex file XC8

Posted: Tue Apr 08, 2025 2:53 pm
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

Re: Unable to compile to hex file XC8

Posted: Tue Apr 08, 2025 3:04 pm
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

Re: Unable to compile to hex file XC8

Posted: Tue Apr 08, 2025 7:41 pm
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.

Re: Unable to compile to hex file XC8

Posted: Tue Apr 08, 2025 7:57 pm
by medelec35
You're welcome.
That's great!
I'm glad you have Flowcode compiling again.
Thanks for letting us know.