Arduino & RC5 E-Block

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Arduino & RC5 E-Block

Post by JohnCrow »

Hi
Ive tried compilling a working flowchart to the arduino mega using the RC5 eblock and get the following errors.
Im using the AVRISP programmer.

The program will compile without errors on a 324P device
Program is a imported version of on of Martins, also works fine on PICS

I did try compile to hex using a Arduinio UNO and get a similar result.

http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode AVR V5\Tools\MX_bats\avra.bat atmega2560 "H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.elf" "H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c" "H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.lst"
H:\23 - Arduino>"C:\PROGRA~2\MATRIX~1\FLOWCO~4\Tools\MX_bats\..\bin\avr-gcc.exe" -mmcu=atmega2560 -Os -funsigned-char -o "H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.elf" "H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c" -lm
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c: In function 'FCD_RC50_RC5_Signal_Edge':
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:595: error: 'RC5_5_TIMER_PRE_VAL' undeclared (first use in this function)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:595: error: (Each undeclared identifier is reported only once
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:595: error: for each function it appears in.)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:651: error: 'RC5_5_LOWER_WIDTH' undeclared (first use in this function)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:651: error: 'RC5_5_UPPER_WIDTH' undeclared (first use in this function)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:653: error: 'RC5_5_CUTOFF_WIDTH' undeclared (first use in this function)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c: In function 'FCD_RC50_RC5_Timer_Event':
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:711: error: 'RC5_5_TIMER_PRE_VAL' undeclared (first use in this function)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:713: error: 'RC5_5_UPPER_WIDTH' undeclared (first use in this function)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:752: error: 'RC5_5_LOWER_WIDTH' undeclared (first use in this function)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:754: error: 'RC5_5_CUTOFF_WIDTH' undeclared (first use in this function)
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c: In function 'FCD_RC50_RC5_RX_Enable':
H:\23-ARD~1\RC5 Basic 8 Channel Remote Controller-Arduino.c:907: error: 'RC5_5_TIMER_AVR_ENVAL' undeclared (first use in this function)
Error returned from [avr-gcc.exe]
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:

Thanks
1 in 10 people understand binary, the other one doesn't !

Post Reply