Page 1 of 1

Arduino LCD compilation errors

Posted: Tue Jan 09, 2018 8:54 pm
by reedas
Trying to add the spi LCD to an Arduino Uno within flowcode. On compilation I get the following "FCP_SET" requires 5 arguments, but only 2 given errors. I have checked for unconnected pins but can't identify any.

Target folder: C:\Users\asr\DOCUME~1\Arduino\flowcode
Source name: C:\Users\asr\Documents\Arduino\flowcode\F3.fcfx
Title:
Description:
Device: AVR.ATMEGA.ATMEGA328P
Generated by: Flowcode v7.3.0.5
Date: Sunday, January 07, 2018 21:51:49
Users: 1
Registered to: reedas
Licence key: UM6C2D
NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.elf" "C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c" "C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.lst"

C:\Users\asr\DOCUME~1\Arduino\flowcode>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.elf" "C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c" -lm -Wl,-gc-sections
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:530:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c: In function 'FCD_04071_LCD__RawSend':
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:530: error: 'FCP_SET' undeclared (first use in this function)
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:530: error: (Each undeclared identifier is reported only once
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:530: error: for each function it appears in.)
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:531:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:532:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:533:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:534:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:535:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:545:40: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:547:40: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:549:40: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:551:40: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:581:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:595:21: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:599:21: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:605:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:606:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:607:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:608:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:609:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:612:40: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:614:40: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:616:40: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:618:40: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:623:23: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:631:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:635:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:681:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c: In function 'FCD_04071_LCD__Start':
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:681: error: 'FCP_SET' undeclared (first use in this function)
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:682:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:683:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:684:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:685:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\asr\DOCUME~1\Arduino\flowcode\F3.c:686:22: error: macro "FCP_SET" requires 5 arguments, but only 2 given

Error returned from [avr-gcc.exe]
.

C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat reported error code 1



FINISHED

TIA

Andrew

Re: Arduino LCD compilation errors

Posted: Tue Jan 09, 2018 10:13 pm
by medelec35
Hi Andrew,
No one will be able to help unless you attach your flowchart.

Martin

Re: Arduino LCD compilation errors

Posted: Wed Jan 10, 2018 8:53 pm
by reedas
Hi,

This is the code, arduino and 16x2 i2c lcd, initialise, clear screen, move cursor, print("Hello World!").
F3.fcfx
(8.03 KiB) Downloaded 143 times
Thanks

Andrew

Re: Arduino LCD compilation errors

Posted: Thu Jan 11, 2018 9:49 am
by LeighM
Hi Andrew,
Thanks for the example.
Please update your LCD component in your Flowcode installation /components directory with the one attached below.
Thanks
Leigh

Re: Arduino LCD compilation errors

Posted: Fri Jan 12, 2018 11:20 pm
by reedas
Thanks LeighM,

That works fine.

Andrew