XC16 compiler setting. help me!!

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

XC16 compiler setting. help me!!

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: XC16 compiler setting. help me!!

Post 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)"

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: XC16 compiler setting. help me!!

Post by seokgi »

Hello BENJ.
Thanks for the quick answer.
I'm following your advice.
Thank you.
Attachments
FC8.png
(174.7 KiB) Downloaded 718 times

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: XC16 compiler setting. help me!!

Post by seokgi »

still have the same problem. I am new to 16-bit version.
Is there a problem for me?

Thank you.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: XC16 compiler setting. help me!!

Post 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 3702 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: XC16 compiler setting. help me!!

Post 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)

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: XC16 compiler setting. help me!!

Post 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

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: XC16 compiler setting. help me!!

Post 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.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: XC16 compiler setting. help me!!

Post 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

Post Reply