Attiny 261 TMR0 compiler problem. (SOLVED)

An area to discuss AVR and Arduino specific problems and examples

Moderator: Benj

Post Reply
User avatar
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)

Post 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
Attachments
Attiny261-n.fcfx
(7.84 KiB) Downloaded 258 times
Last edited by celebriums on Tue Dec 05, 2017 4:55 pm, edited 1 time in total.
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
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.

Post 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.
Attachments
ATTINY261.fcdx
(14.05 KiB) Downloaded 240 times

User avatar
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.

Post 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"
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

Post Reply