Page 1 of 1

some 18F67K40 compilation errors

Posted: Tue Jul 25, 2017 7:28 pm
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!

Re: some 18F67K40 compilation errors

Posted: Wed Jul 26, 2017 10:04 am
by Benj
Hello,

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

Re: some 18F67K40 compilation errors

Posted: Wed Jul 26, 2017 5:01 pm
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!

Re: some 18F67K40 compilation errors

Posted: Thu Aug 17, 2017 2:47 pm
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!

Re: some 18F67K40 compilation errors

Posted: Thu Aug 17, 2017 3:53 pm
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 263 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 244 times
Your program is now compiling correctly for me.
Please let me know if you spot anything else and how you get on.

Re: some 18F67K40 compilation errors

Posted: Thu Aug 17, 2017 6:36 pm
by TaliG
Hi Ben!

All good! :D
No more compilation errors!!

Thanks alot!!

George