BUG: Error when using CAN and FAT

Please add any bug reports that require discussion here

Moderator: Benj

Forum rules
Only bug reports will be considered here. General questions should not be posted in this forum.
Post Reply
User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

BUG: Error when using CAN and FAT

Post by Jordy101091 »

I'm getting an error when I use a CAN component and a FAT component I the same Flowcode,
It gives an error that has something to do with a prescaler.

Code: Select all

Target folder: \\NASHJJAKL\Jordy Kleian\D6ULV5~V\FKZ0BJ~O\PB83OU~D\AY92OP~W\FY6XBH~1.0\Test
Source name:   \\NASHJJAKL\Jordy Kleian\Documenten\Flowcode Projects\Projecten\Aquarium Automatics\Firmware v1.0\Test\Test2.fcfx
Title:         
Description:   
Device:        PIC.18F.18F6722
Generated by:  Flowcode v6.0.0.60
Date:          Saturday, August 31, 2013 22:52:00
Users:         0
Registered to: 30day_62150048
Licence key:   H9023P
   NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic\boostc\boostc_18F.exe  -v -t PIC18F6722 "Test2.c"
.
Launched program C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic\boostc\boostc_18F.exe
Launching BoostC...
..
BoostC Optimizing C Compiler Version 7.11 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2013 Pavel Baranov
Copyright(C) 2004-2013 David Hobday

Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited


Test2.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic\boostc\pp.exe" Test2.c -i "C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic\boostc\include" -d _PIC18F6722 -la -c2 -o Test2.pp -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX 

C:\Program Files (x86)\Flowcode 6 Beta\CAL\PIC\PIC_CAL_SPI.c(69): Illegal redefinition of symbol: MX_SPI_PR_SCALE_X

1 errors detected
Error: preprocessing error

failure
Launched program C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic\boostc\boostc_18F.exe
Completed BoostC compilation, return = 1

C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic\boostc\boostc_18F.exe reported error code 1


FINISHED
Hope this bug will be fixed soon,

Regards Jordy

PS. I cannot upload C code file its to big 264KiB my limit is 256KiB
the will to learn, should not be stopped by any price

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: BUG: Error when using CAN and FAT

Post by kersing »

Hi Jordy,

You could put the C file in a ZIP archive. Usually C files compress to a fraction of their original size.

Jac
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

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: BUG: Error when using CAN and FAT

Post by Benj »

Hi Jordy,

This file fixes the issue and will go into the release. Simply pop it into your "Flowcode Beta/CAL/PIC" folder to apply the changes.
PIC_CAL_SPI.c
(11.82 KiB) Downloaded 332 times
Thanks for the spot.

Post Reply