Compiler problem

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

Moderator: Benj

Post Reply
blackelle93
Posts: 5
Joined: Sun Sep 15, 2013 4:48 am
Has thanked: 4 times
Been thanked: 2 times
Contact:

Compiler problem

Post by blackelle93 »

I have a project in F7 that uses a PIC18F252, but will not compile to generate a HEX file...........errors reported as per below. No problem when compiling and assembling with boostC in FC6.
In an attempt to discover where the problem is, I have systematically removed each and every part/component of the program until there is only the Start and End icon and the processor. Error messages still occur. It seems the issue is with the PIC18F252..............
Starting a new project with just start and end icons and a PIC18F252 generates the same message when compiling. Also tried a PIC18F258 and a PIC 18F452 with the same results..........
Can anyone help please -

Thanks
Richard

Target folder: E:\COMMON~1\FLOWCO~2\DUSTSE~1
Source name: E:\COMMON DATA\Flowcode 7\Dust Sensor\Dust module_compiler_testoing.fcfx
Title:
Description:
Device: PIC.18F.18F452
Generated by: Flowcode v7.0.0.4
Date: Monday, August 08, 2016 11:59:25
Users: 1
Registered to: XXXXXXXX
Licence key: YYYYYY
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe --chip=18F452 "Dust module_compiler_testoing.c" --MSGDISABLE=359,1273,1388
Dust module_compiler_testoing.cmf: 181: (1437) CMF error: token 1 is not unsigned long of base 16
Dust module_compiler_testoing.cmf: 181: (1437) CMF error: token 4 is not unsigned long of base 10
Microchip MPLAB XC8 C Compiler (Free Mode) V1.36
Build date: Jan 14 2016
Part Support Version: 1.36
Copyright (C) 2016 Microchip Technology Inc.
License type: Node Configuration

Employing 18F452 errata work-arounds:
* Address 4000h boundary
* Faulty table reads at -40 degrees C
* GOTO instruction at reset vector must be preceded by NOP
* Peripherals can misbehave if BSR = 15
* DAW instruction may improperly clear CARRY bit
* Specifically disable interrupt sources during tblwt instruction
* Writes to flash must target opposite side of 4000h boundary
Dust module_compiler_testoing.cmf: 181: (1437) CMF error: token 1 is not unsigned long of base 16
Dust module_compiler_testoing.cmf: 181: (1437) CMF error: token 4 is not unsigned long of base 10
Dust module_compiler_testoing.cmf: 181: (1437) CMF error: token 1 is not unsigned long of base 16
Dust module_compiler_testoing.cmf: 181: (1437) CMF error: token 4 is not unsigned long of base 10
Dust module_compiler_testoing.cmf: 325: (908) exit status = 1
(908) exit status = 1

C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1


FINISHED

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: Compiler problem

Post by LeighM »

Hi
I cannot replicate this issue.
Have you tried the updates from this post? ...
http://www.matrixtsl.com/mmforums/viewt ... 63&t=17953

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: Compiler problem

Post by Benj »

Hello,

The problem seems to be your Flowcode project name "Dust module_compiler_testoing" for some reason the XC8 compiler doesn't like it. If you try using the project name "testoing" then compilation works as expected.

It seems any spaces in the Flowcode project name will cause the problem.

blackelle93
Posts: 5
Joined: Sun Sep 15, 2013 4:48 am
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: Compiler problem

Post by blackelle93 »

Thanks for the feedback.............The project name was meant to be a single word with underscores between separate words and one got missed. Finger trouble on my part and as often happens, the harder one looks the less one actually sees!. Program seems to compile/assemble now. Thanks again.

Richard

blackelle93
Posts: 5
Joined: Sun Sep 15, 2013 4:48 am
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: Compiler problem

Post by blackelle93 »

Hi LeighM
Problem seems resolved now - see Benj reply. Yes I did find the updates and have them installed. Thanks for the reply

Richard

Post Reply