Arduino LCD compilation errors

An area to discuss AVR and Arduino specific problems and examples

Moderator: Benj

Post Reply
reedas
Posts: 6
Joined: Fri Jan 05, 2018 3:59 pm
Contact:

Arduino LCD compilation errors

Post 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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9103
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Arduino LCD compilation errors

Post by medelec35 »

Hi Andrew,
No one will be able to help unless you attach your flowchart.

Martin
Martin

reedas
Posts: 6
Joined: Fri Jan 05, 2018 3:59 pm
Contact:

Re: Arduino LCD compilation errors

Post 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 151 times
Thanks

Andrew

User avatar
LeighM
Matrix Staff
Posts: 2109
Joined: Tue Jan 17, 2012 10:07 am
Contact:

Re: Arduino LCD compilation errors

Post 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
Attachments
lcd_I2C.fcpx
(26.23 KiB) Downloaded 104 times

reedas
Posts: 6
Joined: Fri Jan 05, 2018 3:59 pm
Contact:

Re: Arduino LCD compilation errors

Post by reedas »

Thanks LeighM,

That works fine.

Andrew

Post Reply