Page 1 of 1

Attiny 261 TMR0 compiler problem. (SOLVED)

Posted: Tue Dec 05, 2017 3:32 pm
by celebriums
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

Re: Attiny 261 TMR0 compiler problem.

Posted: Tue Dec 05, 2017 4:08 pm
by LeighM
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.

Re: Attiny 261 TMR0 compiler problem.

Posted: Tue Dec 05, 2017 4:51 pm
by celebriums
Hi LeighM
Thank for quickly reply.
Problem has solved.

:D



"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"