Page 1 of 1

XC16 compiler setting. help me!!

Posted: Thu Nov 28, 2019 4:00 am
by seokgi
Hello
I use the first 16-bit dsPIC in this project. Compiled with While Icon without any code, I get the following message. Can someone help me with compiler settings?
I referenced this article.

viewtopic.php?t=20646


Target folder: D:\Project\Ing\180621-SK_Cap-Transformer\Program\DSPIC33EP512GM304
Source name: D:\Project\Ing\180621-SK_Cap-Transformer\Program\DSPIC33EP512GM304\Flowcode1.fcfx
Title:
Description:
Device: PIC16.33E.33EP512GM304
Generated by: Flowcode v8.2.1.14
Date: Thursday, November 28, 2019 11:59:42
Users: 1
Registered to: seokgi
License key: WTVQCH
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\xc16\v1.41\bin\pic16_C30_comp.bat "

D:\Project\Ing\180621-SK_Cap-Transformer\Program\DSPIC33EP512GM304>xc16-gcc -c -mcpu= -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\MICROC~1\xc16\v1.41\bin\..\support\h" -I"C:\PROGRA~2\MICROC~1\xc16\v1.41\bin\" -std=gnu99 ".c -o ".o
coff-gcc.exe: no input files

Error returned from [xc16-gcc.exe]

C:\Program Files (x86)\Microchip\xc16\v1.41\bin\pic16_C30_comp.bat reported error code 1

Autoclose turned off


FINISHED

Re: XC16 compiler setting. help me!!

Posted: Thu Nov 28, 2019 11:35 am
by Benj
Hello,

In your compiler output it looks like the call to the compiler is missing some detail.

Here is your call.
Launching the compiler...
C:\Program Files (x86)\Microchip\xc16\v1.41\bin\pic16_C30_comp.bat "
and here is mine.
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat "Flowcode1" "C:\Users\Ben\Desktop\" "33EP512GM304"
Maybe go into the Build -> Compiler Options menu and check that the configuration is setup as shown below and marked as the default compiler.

Compiler
Location

C:\Program Files (x86)\Microchip\xc16\v1.41\bin\pic16_C30_comp.bat

Parameters
"$(target)" "$(outdir)" "$(chip:u)"

Re: XC16 compiler setting. help me!!

Posted: Thu Nov 28, 2019 12:28 pm
by seokgi
Hello BENJ.
Thanks for the quick answer.
I'm following your advice.
Thank you.

Re: XC16 compiler setting. help me!!

Posted: Thu Nov 28, 2019 10:17 pm
by seokgi
still have the same problem. I am new to 16-bit version.
Is there a problem for me?

Thank you.

Re: XC16 compiler setting. help me!!

Posted: Fri Nov 29, 2019 9:01 am
by QMESAR
Hi,
I am not sure about the compiler path settings as shown above by Ben and you confuse me as well
My XC16 compiler function well in FC with these paths

location
$(compilerpic16)batchfiles\pic16_C30_comp.bat

Parameters
"$(target)" "$(outdir)" "$(chip:u)"

P1.jpg
P1.jpg (65.44 KiB) Viewed 4614 times

Re: XC16 compiler setting. help me!!

Posted: Fri Nov 29, 2019 9:24 am
by LeighM
Thanks QMESAR
Yes, I have same as you.
Looks like Ben might have made a typo with his copy'n'paste,
(we have a lot on at the moment, interesting new products)

Re: XC16 compiler setting. help me!!

Posted: Fri Nov 29, 2019 9:44 am
by QMESAR
leigh.
I was just worried I have some wrong settings as paths is not my strength :D
If I have the same as you I am happy

Re: XC16 compiler setting. help me!!

Posted: Sat Nov 30, 2019 3:42 am
by seokgi
Thanks to your help, the Compilation goes well. However, it does not apply when a new compiler is released. What should I do?
Thank you all for your help.

Re: XC16 compiler setting. help me!!

Posted: Sat Nov 30, 2019 5:42 am
by QMESAR
it does not apply when a new compiler is released
No this never change even if there is an new version of the compiler