Hi All
How can I solve the following compiler problem?
Target folder: Z:\Electronic\attiny
Source name: Z:\Electronic\attiny\Attiny261-n.fcfx
Title:
Description:
Device: AVR.ATTINY.ATTINY261
Generated by: Flowcode v7.2.1.4
Date: Tuesday, December 05, 2017 16:54:03
Users: 1
Registered to: celebrium
Licence key: 613MJV
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat attiny261 "Z:\Electronic\attiny\Attiny261-n.elf" "Z:\Electronic\attiny\Attiny261-n.c" "Z:\Electronic\attiny\Attiny261-n.lst"
Launching compiler...
Z:\Electronic\attiny>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=attiny261 -Os -funsigned-char -o "Z:\Electronic\attiny\Attiny261-n.elf" "Z:\Electronic\attiny\Attiny261-n.c" -lm
Z:\Electronic\attiny\Attiny261-n.c: In function 'main':
Z:\Electronic\attiny\Attiny261-n.c:108: error: 'TIMSK0' undeclared (first use in this function)
Z:\Electronic\attiny\Attiny261-n.c:108: error: (Each undeclared identifier is reported only once
Z:\Electronic\attiny\Attiny261-n.c:108: error: for each function it appears in.)
Error returned from [avr-gcc.exe]
Completed compilation, return = 1
FINISHED
Attiny 261 TMR0 compiler problem. (SOLVED)
Moderator: Benj
- celebriums
- Posts: 125
- Joined: Sun Sep 25, 2016 3:50 pm
- Has thanked: 71 times
- Been thanked: 33 times
- Contact:
Attiny 261 TMR0 compiler problem. (SOLVED)
- Attachments
-
- Attiny261-n.fcfx
- (7.84 KiB) Downloaded 270 times
Last edited by celebriums on Tue Dec 05, 2017 4:55 pm, edited 1 time in total.
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Attiny 261 TMR0 compiler problem.
Hi,
Please replace the ATTINY261.fcdx file in your Flowcode 7 installation \FCD\AVR directory, with the file attached
Then re-start Flowcode.
Hopefully that should fix it.
Please replace the ATTINY261.fcdx file in your Flowcode 7 installation \FCD\AVR directory, with the file attached
Then re-start Flowcode.
Hopefully that should fix it.
- Attachments
-
- ATTINY261.fcdx
- (14.05 KiB) Downloaded 250 times
- celebriums
- Posts: 125
- Joined: Sun Sep 25, 2016 3:50 pm
- Has thanked: 71 times
- Been thanked: 33 times
- Contact:
Re: Attiny 261 TMR0 compiler problem.
Hi LeighM
Thank for quickly reply.
Problem has solved.
"Compilation successful!
Completed compilation, return = 0
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avrb.bat "Z:\Electronic\attiny\Attiny261-n.elf" "Z:\Electronic\attiny\Attiny261-n.hex" "Z:\Electronic\attiny\Attiny261-n.cof"
Z:\Electronic\attiny>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom "Z:\Electronic\attiny\Attiny261-n.elf" "Z:\Electronic\attiny\Attiny261-n.hex"
HEX file creation successful!
Z:\Electronic\attiny>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom "Z:\Electronic\attiny\Attiny261-n.elf" "Z:\Electronic\attiny\Attiny261-n.cof"
COFF file creation successful!
FINISHED"
Thank for quickly reply.
Problem has solved.
"Compilation successful!
Completed compilation, return = 0
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avrb.bat "Z:\Electronic\attiny\Attiny261-n.elf" "Z:\Electronic\attiny\Attiny261-n.hex" "Z:\Electronic\attiny\Attiny261-n.cof"
Z:\Electronic\attiny>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom "Z:\Electronic\attiny\Attiny261-n.elf" "Z:\Electronic\attiny\Attiny261-n.hex"
HEX file creation successful!
Z:\Electronic\attiny>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom "Z:\Electronic\attiny\Attiny261-n.elf" "Z:\Electronic\attiny\Attiny261-n.cof"
COFF file creation successful!
FINISHED"