Page 1 of 1

8 bit upgrade issue

Posted: Mon Feb 13, 2017 11:35 am
by petesmart
Hello team,

I upgraded FC7 today to include the 8-bit pic chip pack.

The purpose for upgrading was to make modifications to code that was previously generated in FC 6 for miac V1/V2

The first time I tried to compile to the miac device – compiled to C but froze on the next step. Hit the cancel button and retried and got the following error message

Code: Select all

Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe  --chip=18F4455 "gen control v9.c" --MSGDISABLE=359,1273,1388 --CODEOFFSET=800h --ROM=default,-0-7FF
Microchip MPLAB XC8 C Compiler (Free Mode) V1.38
Build date: Jun 30 2016
Part Support Version: 1.38
Copyright (C) 2016 Microchip Technology Inc.
License type: Node Configuration

(1180) directory "." does not exist
(908) exit status = 1

C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1
Reinstalled FC 7 just to make sure that the licensing came down okay.

Any clues?

All the best

Pete

Re: 8 bit upgrade issue

Posted: Mon Feb 13, 2017 12:33 pm
by petesmart
update - version FC7.1.1 Sept

Okay after a little further investigation – I decided to run FC 7 in administrator mode on my Windows 10 machine.

This time I got a little more error information

Code: Select all

http://www.flowcode.co.uk
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe  --chip=18F4455 "gen control v9.c" --MSGDISABLE=359,1273,1388 --CODEOFFSET=800h --ROM=default,-0-7FF
'\\QNAP\HAZTECH Systems\projects\GL3PFG~3'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
'\\QNAP\HAZTECH Systems\projects\GL3PFG~3'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
Microchip MPLAB XC8 C Compiler (Free Mode) V1.38
Build date: Jun 30 2016
Part Support Version: 1.38
Copyright (C) 2016 Microchip Technology Inc.
License type: Node Configuration

(1180) directory "." does not exist
(908) exit status = 1

C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1
So it appears that compiling to hex using a NAS drive causes the problem above "UNC paths are not supported". To confirm this I copied the project over to a local directory on the "C: drive" and successfully compiled project to the miac.

I don't recall having the same issue with the pic 16 chip pack and compiling to the DSPic miac – will conduct some more tests and provide an update shortly.

****** update ******

Just conducted a test with DSPic 16 devices – compiles from the NAS drive ok.... 8bit pic does exhibits the error above...

any clues?

All the best,

Pete

Re: 8 bit upgrade issue

Posted: Mon Feb 13, 2017 1:26 pm
by Benj
Hi Pete,

Microchips XC16 compiler originated from their C30 compiler.

Microchips XC8 compiler originated from the HiTech PIC C compiler.

So while both compilers seem to be in a family their roots are very different and hence behind the scenes may be very different too.

There may be a way to make XC8 play nicely with UNC paths, maybe by mapping the network drive so it's no longer a UNC?

Re: 8 bit upgrade issue

Posted: Mon Feb 13, 2017 2:23 pm
by petesmart
Thanks Ben... will give it a go and report

Re: 8 bit upgrade issue

Posted: Wed Apr 11, 2018 1:45 pm
by LeighM
We have a workaround for projects on UNC paths.
A batch file is required, this is usually created in the compilers\pic\batch directory, for example picc.bat
The contents as follows:

Code: Select all

@REM $(chip) "$(outdir)" "$(target)"
@PUSHD %~2
%~dp0..\bin\xc8.exe --chip=%~1  "%~3.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
@POPD
The Flowcode compiler options dialogue then needs the addition of a new configuration with the following settings:

Code: Select all

$(appdir)compilers\pic\batch\picc.bat
$(chip) "$(outdir)" "$(target)"
Create, save and set this as default, as shown in the image below.
xc8.jpg
xc8.jpg (68.51 KiB) Viewed 4329 times
Hope that helps,
Leigh