Arduino & RC5 E-Block
Posted: Tue May 07, 2013 7:42 pm
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
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