Arduino LCD compilation errors

An area to discuss AVR and Arduino specific problems and examples

Moderator: Benj

reedas
Posts: 6
Joined: Fri Jan 05, 2018 3:59 pm
Has thanked: 2 times
Contact:

Arduino LCD compilation errors

Postby reedas » Tue Jan 09, 2018 8:54 pm

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: 8334
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2382 times
Been thanked: 3393 times
Contact:

Re: Arduino LCD compilation errors

Postby medelec35 » Tue Jan 09, 2018 10:13 pm

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

Martin
These users thanked the author medelec35 for the post:
Benj (Wed Jan 10, 2018 6:24 pm)
Rating: 5.56%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

reedas
Posts: 6
Joined: Fri Jan 05, 2018 3:59 pm
Has thanked: 2 times
Contact:

Re: Arduino LCD compilation errors

Postby reedas » Wed Jan 10, 2018 8:53 pm

Hi,

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


Thanks

Andrew

User avatar
LeighM
Matrix Staff
Posts: 1844
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 429 times
Been thanked: 612 times
Contact:

Re: Arduino LCD compilation errors

Postby LeighM » Thu Jan 11, 2018 9:49 am

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 50 times
These users thanked the author LeighM for the post:
reedas (Fri Jan 12, 2018 11:21 pm)
Rating: 5.56%
 

reedas
Posts: 6
Joined: Fri Jan 05, 2018 3:59 pm
Has thanked: 2 times
Contact:

Re: Arduino LCD compilation errors

Postby reedas » Fri Jan 12, 2018 11:20 pm

Thanks LeighM,

That works fine.

Andrew