Page 1 of 1
Problem programming
Posted: Sun Mar 15, 2026 12:51 pm
by peterhalloway
HI All
I have just come back to compile a hex file and I have been getting errors, even though I changed nothing at this point. I did try to make some changes in the compiler options but still having issues. I will attach a screen shot I am hoping someone can point me in the right direction please.
Re: Problem programming
Posted: Mon Mar 16, 2026 2:06 am
by medelec35
Please don't screenshot compiler messages.
Either attach .msg.txt file or copy and paste messages within a forum code tags.
From what I can see the original compiler settings have been manually overwritten.
Within Build > Compiler Options... For the
PIC section you should have...
Location:
Code: Select all
$(fcddir)PIC\batch\pic_xc8_comp.bat
Parameters:
Code: Select all
"$(compilerpic)" $(chip) "$(outdir)" "$(target)"
If your Location and parameters are different, what have you got?
Re: Problem programming
Posted: Tue Mar 17, 2026 6:41 am
by peterhalloway
Thank you Martin and I have noted your comment on compiler messages.
Pete
Re: Problem programming
Posted: Tue Mar 17, 2026 6:44 am
by peterhalloway
just looked I have what you have posted
here is the offending error message
(902) no chip name specified; use "XC8 --CHIPINFO" to see available chip names
(908) exit status = 1
C:\Program Files (x86)\Flowcode\Compilers\picv2\pic\bin\xc8.exe reported error code 0x1
Re: Problem programming
Posted: Tue Mar 17, 2026 10:26 am
by Steve-Matrix
Hi Pete,
It looks like the error is because the parameters being passed to the toolchain are not appropriate, or you are sending those parameters to the wrong exe/batch file. This is because you have modified them in the "Compiler Settings" window of Flowcode.
If you compare what the default toolchain settings are with what you have, you may be able to work out what is wrong. Or please post your settings here as that might offer a clue to the problem.
Also, it might be worth explaining why you are using modified compiler settings as there may be a better way to achieve what you want.