Arduino Uno R3 and Combo Board, unable to Compile

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
Thoth
Posts: 2
Joined: Sun Jan 29, 2017 10:45 am
Been thanked: 1 time
Contact:

Arduino Uno R3 and Combo Board, unable to Compile

Post by Thoth »

Hi there,
I have got a problem with FlowCode v7.1.1.0 in combination with the Arduino Uno R3 (EB093) and the Combo Board (EB083).
Every time I add the Combo board to the Project, I can't Upload it anymore and the Compiler spits out the following Error.

Code: Select all

Target folder: C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1
Source name:   C:\Users\Lord-Thoth\Dropbox\LN\Arduino Mikrocontroller\Flowcode3.fcfx
Title:         
Description:   
Device:        AVR.ATMEGA.ATMEGA328P
Generated by:  Flowcode v7.1.1.0
Date:          Sunday, January 29, 2017 11:45:35
Users:         1
Registered to: 
Licence key:   *****
   NICHT FÜR KOMMERZiELLE ANWENDUNGEN
http://www.matrixtsl.com
Start des Compilers...
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat  atmega328p "C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.elf" "C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c" "C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.lst"

C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega328p -Os -funsigned-char -o "C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.elf" "C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c" -lm 
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1518:21: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_03d92_led_base__TurnOn':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1518: error: 'FCP_SET' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1518: error: (Each undeclared identifier is reported only once
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1518: error: for each function it appears in.)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1528:25: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_03d92_led_base__TurnOff':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1528: error: 'FCP_SET' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1553:21: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_03d91_led_base__TurnOn':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1553: error: 'FCP_SET' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1563:25: error: macro "FCP_SET" requires 5 arguments, but only 2 given
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_03d91_led_base__TurnOff':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:1563: error: 'FCP_SET' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_05264_switch_base__ReadState':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:4803: error: 'FCP_PIN_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:4803: error: 'FCP_TRIS_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_05264_switch_base__WaitUntilHigh':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:4876: error: 'FCP_PIN_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:4876: error: 'FCP_TRIS_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_05264_switch_base__WaitUntilLow':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:4947: error: 'FCP_PIN_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:4947: error: 'FCP_TRIS_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_05263_switch_base__ReadState':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:5032: error: 'FCP_PIN_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:5032: error: 'FCP_TRIS_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_05263_switch_base__WaitUntilHigh':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:5105: error: 'FCP_PIN_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:5105: error: 'FCP_TRIS_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c: In function 'FCD_05263_switch_base__WaitUntilLow':
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:5176: error: 'FCP_PIN_A' undeclared (first use in this function)
C:\Users\LORD-T~1\Dropbox\LN\ARDUIN~1\Flowcode3.c:5176: error: 'FCP_TRIS_A' undeclared (first use in this function)

Error returned from [avr-gcc.exe]

C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat Hat den Fehlercode 1 gemeldet

BEENDET
Can you help me with this Error?

Thanks!
Attachments
Flowcode3.c
(161.81 KiB) Downloaded 221 times
Flowcode3.fcfx
(5.02 KiB) Downloaded 233 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: Arduino Uno R3 and Combo Board, unable to Compile

Post by Benj »

Hello,

The problem is the two unconnected pins on the combo board component A6 and A7. For now I would suggest connecting these to C4 and C5 on the component properties to allow the program to compile.

I'm seeing if I can get rid of this issue so that unconnected pins with the combo board component do not cause a compile error.

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: Arduino Uno R3 and Combo Board, unable to Compile

Post by Benj »

These two updated components should solve the problem for you. Both files need copying to your "Flowcode 7/components" folder before restarting Flowcode.
switch.fcpx
(4.69 KiB) Downloaded 252 times
led_base.fcpx
(2.98 KiB) Downloaded 232 times
Let me know how you get on.

Thoth
Posts: 2
Joined: Sun Jan 29, 2017 10:45 am
Been thanked: 1 time
Contact:

Re: Arduino Uno R3 and Combo Board, unable to Compile

Post by Thoth »

Btw, your solution works really great. Thanks for that!

Post Reply