e3 input on 16F18857

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

Moderator: Benj

Post Reply
dannyvanneijenhoff
Posts: 65
Joined: Thu Feb 07, 2008 7:59 am
Has thanked: 17 times
Been thanked: 10 times
Contact:

e3 input on 16F18857

Post 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
Attachments
FC8 test 16f18857 rev0.fcfx
input e3 test
(6.6 KiB) Downloaded 186 times

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: e3 input on 16F18857

Post 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;

Post Reply