8 bit upgrade issue

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

Moderator: Benj

Post Reply
User avatar
petesmart
Valued Contributor
Valued Contributor
Posts: 395
Joined: Thu May 06, 2010 11:42 am
Location: Sydney, Australia
Has thanked: 187 times
Been thanked: 140 times
Contact:

8 bit upgrade issue

Post 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
sorry about that Chief!

User avatar
petesmart
Valued Contributor
Valued Contributor
Posts: 395
Joined: Thu May 06, 2010 11:42 am
Location: Sydney, Australia
Has thanked: 187 times
Been thanked: 140 times
Contact:

Re: 8 bit upgrade issue

Post 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.matrixtsl.com
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
sorry about that Chief!

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: 8 bit upgrade issue

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

User avatar
petesmart
Valued Contributor
Valued Contributor
Posts: 395
Joined: Thu May 06, 2010 11:42 am
Location: Sydney, Australia
Has thanked: 187 times
Been thanked: 140 times
Contact:

Re: 8 bit upgrade issue

Post by petesmart »

Thanks Ben... will give it a go and report
sorry about that Chief!

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: 8 bit upgrade issue

Post 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 3456 times
Hope that helps,
Leigh

Post Reply