some 18F67K40 compilation errors

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
TaliG
Posts: 52
Joined: Fri Apr 07, 2017 1:55 am
Location: Greece
Has thanked: 16 times
Been thanked: 14 times
Contact:

some 18F67K40 compilation errors

Post by TaliG »

Hi,

I started playing with this new device and had the following compilation errors:


1. C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_ADC.c: FC_CAL_ADC_Disable()
5583: ANSELC = 0x00;
^ (192) undefined identifier "ANSELC"

2. 12132: IOEBP=0xFF;
^ (192) undefined identifier "IOEBP"

3. Test18f67k40.c: myisr()
19875: PIR1bits.TMR2IF = 0;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S226


Thanks in advance!

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: some 18F67K40 compilation errors

Post by Benj »

Hello,

Thanks for letting us know of the problem. Please can you attach your Flowcode project so we can investigate the issues.

TaliG
Posts: 52
Joined: Fri Apr 07, 2017 1:55 am
Location: Greece
Has thanked: 16 times
Been thanked: 14 times
Contact:

Re: some 18F67K40 compilation errors

Post by TaliG »

Hi,

here is a flowcode exaple that can produce the compilation errors I previously posted plus errors of I2c, SPI, UART. It is not my main project , but I think it shoul help.
I am actualy migrating a flowcode project from 18f47k40 to this new one (pins are never enough :) )

Thanks!
Attachments
test18f67k40.fcfx
(17.2 KiB) Downloaded 243 times

TaliG
Posts: 52
Joined: Fri Apr 07, 2017 1:55 am
Location: Greece
Has thanked: 16 times
Been thanked: 14 times
Contact:

Re: some 18F67K40 compilation errors

Post by TaliG »

Hi Ben,

Did you have any chance to look at those compilation errors?
Is there a possibility to include a fix together with your next (bug fix-new features) update please?

Thanks!

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: some 18F67K40 compilation errors

Post by Benj »

Hello,

Looking at your program, some of the compilation errors are being caused by the SPI_Master component as there are no hardware remap pins specified in the comp properties.

Another problem is being caused by the ADC CAL so here is an updated version that solves that problem. Simply copy to the "Flowcode 7/CAL/PIC" folder.
PIC_CAL_ADC.c
(117.3 KiB) Downloaded 243 times
Finally the timer 2 and IOC interrupt problems are being caused by the definition file, these have also now been fixed. Simply copy the attached to the "Flowcode 7/FCD/PIC" folder.
18F67K40.fcdx
(68.14 KiB) Downloaded 224 times
Your program is now compiling correctly for me.
Please let me know if you spot anything else and how you get on.

TaliG
Posts: 52
Joined: Fri Apr 07, 2017 1:55 am
Location: Greece
Has thanked: 16 times
Been thanked: 14 times
Contact:

Re: some 18F67K40 compilation errors

Post by TaliG »

Hi Ben!

All good! :D
No more compilation errors!!

Thanks alot!!

George

Post Reply