Page 1 of 1

e3 input on 16F18857

Posted: Fri May 24, 2019 10:52 am
by dannyvanneijenhoff
Hello

When i use e3 as input. And when generating code, the compiler give an error.
When i remove input e3, the program is working on hardware

On FC 6 and 7 no problem.



FC8 test 16f18857 rev0.c: main()
84: FCV_TEST_E3 = (FC_CAL_Port_In_DDR__x((&PORTE), (&TRISE), ((1<<3)), (3)));
(192) undefined identifier "TRISE" ^
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\Program Files (x86)\Flowcode\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1


Target folder: C:\Users\danny\Desktop\TEST16~1
Source name: C:\Users\danny\Desktop\Test 16F18857\FC8 test 16f18857 rev0.fcfx
Device: PIC.16F.16F18857
Generated by: Flowcode v8.1.0.8
Microchip MPLAB XC8 C Compiler (Free Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45

Re: e3 input on 16F18857

Posted: Fri May 24, 2019 2:06 pm
by Benj
Hello,

Thanks for letting us know, the problem is that the Flowcode I/O expects to control the data direction register and for your device there isn't one for PortE.

It's something I've come across before and it was fixed so interesting it has come back.

As a short term fix you can do the following.

If you click on Build -> Project Options.

Check the "Use Supplementary Code" tick box

Click the Supplementary Code button and add the following code under the definitions and declarations then this should solve the problem.

Code: Select all

unsigned char TRISE;