atmega and RC5

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
simisv
Flowcode v5 User
Posts: 24
Joined: Wed Jun 06, 2012 11:52 am
Location: London
Has thanked: 5 times
Contact:

atmega and RC5

Post by simisv »

I tested a simple prog with atmega328p and rc5 on flowavr v5 , the result is this :

File name: C:\proiecte flowcode avr 2013\v5\328rc5.c
Title:
Description:
Generated by: Flowcode v5.5.2.1
Date: Wednesday, August 14, 2013 19:11:49
Licence: Professional
***UNREGISTERED***
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\Flowcode(AVR)\v5\Tools\MX_bats\avra.bat atmega328p "C:\PROIEC~1\v5\328rc5.elf" "C:\PROIEC~1\v5\328rc5.c" "C:\PROIEC~1\v5\328rc5.lst"

C:\proiecte flowcode avr 2013\v5>"C:\PROGRA~1\FLOWCO~1\v5\Tools\MX_bats\..\bin\avr-gcc.exe" -mmcu=atmega328p -Os -funsigned-char -o "C:\PROIEC~1\v5\328rc5.elf" "C:\PROIEC~1\v5\328rc5.c" -lm
C:\PROIEC~1\v5\328rc5.c: In function 'FCD_RC50_RC5_Signal_Edge':
C:\PROIEC~1\v5\328rc5.c:598: error: 'RC5_5_TIMER_PRE_VAL' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c:598: error: (Each undeclared identifier is reported only once
C:\PROIEC~1\v5\328rc5.c:598: error: for each function it appears in.)
C:\PROIEC~1\v5\328rc5.c:624: error: 'porta' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c:662: error: 'RC5_5_LOWER_WIDTH' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c:662: error: 'RC5_5_UPPER_WIDTH' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c:664: error: 'RC5_5_CUTOFF_WIDTH' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c: In function 'FCD_RC50_RC5_Timer_Event':
C:\PROIEC~1\v5\328rc5.c:722: error: 'RC5_5_TIMER_PRE_VAL' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c:724: error: 'RC5_5_UPPER_WIDTH' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c:728: error: 'porta' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c:763: error: 'RC5_5_LOWER_WIDTH' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c:765: error: 'RC5_5_CUTOFF_WIDTH' undeclared (first use in this function)
C:\PROIEC~1\v5\328rc5.c: In function 'main':
C:\PROIEC~1\v5\328rc5.c:1388: warning: large integer implicitly truncated to unsigned type

Error returned from [avr-gcc.exe]
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.


FINISHED


Does anyone know the solution?

Thanks
Attachments
328rc5.fcf_avr
(6.5 KiB) Downloaded 342 times

Post Reply