AVR MEGA8 Intrrupt error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
RABO2320
Posts: 41
Joined: Sun Mar 01, 2020 1:39 pm
Has thanked: 1 time
Been thanked: 2 times
Contact:

AVR MEGA8 Intrrupt error

Post by RABO2320 »

Hello
When compiling interrupt error :?:

"
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avra.bat atmega8 "C:\Users\RAB\Desktop\@\4x4_7seg_2.elf" "C:\Users\RAB\Desktop\@\4x4_7seg_2.c" "C:\Users\RAB\Desktop\@\4x4_7seg_2.lst"

C:\Users\RAB\Desktop\@>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega8 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\RAB\Desktop\@\4x4_7seg_2.elf" "C:\Users\RAB\Desktop\@\4x4_7seg_2.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:372,
from C:\Users\RAB\Desktop\@\4x4_7seg_2.c:41:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_Delay.c:84:4: warning: #warning "Your clock speed is too low for Microsecond delays to be calculated accurately"
C:\Users\RAB\Desktop\@\4x4_7seg_2.c: In function 'main':
C:\Users\RAB\Desktop\@\4x4_7seg_2.c:375: error: 'TCCR2B' undeclared (first use in this function)
C:\Users\RAB\Desktop\@\4x4_7seg_2.c:375: error: (Each undeclared identifier is reported only once
C:\Users\RAB\Desktop\@\4x4_7seg_2.c:375: error: for each function it appears in.)

Error returned from [avr-gcc.exe]

C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avra.bat reported error code 1



FINISHED"
4x4_7seg_2.fcfx
(13.45 KiB) Downloaded 125 times

RABO2320
Posts: 41
Joined: Sun Mar 01, 2020 1:39 pm
Has thanked: 1 time
Been thanked: 2 times
Contact:

Re: AVR MEGA8 Intrrupt error

Post by RABO2320 »

Someone help
:roll: :roll: :roll: :roll: :roll: :roll: :roll: :(

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: AVR MEGA8 Intrrupt error

Post by medelec35 »

Hi RABO2320,
Your Flowchart compiles for me OK:

Code: Select all

Launching the compiler...
D:\test\Compilers\avr\batchfiles\avra.bat  atmega8 "D:\Flowcharts\4x4_7seg_2.elf" "D:\Flowcharts\4x4_7seg_2.c" "D:\Flowcharts\4x4_7seg_2.lst"

D:\Flowcharts>"D:\test\Compilers\avr\batchfiles\..\bin\avr-gcc.exe" -mmcu=atmega8 -Os -ffunction-sections -fdata-sections -funsigned-char -o "D:\Flowcharts\4x4_7seg_2.elf" "D:\Flowcharts\4x4_7seg_2.c" -lm -Wl,-gc-sections 
.

In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:372,
                 from D:\Flowcharts\4x4_7seg_2.c:42:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_Delay.c:84:4: warning: #warning "Your clock speed is too low for Microsecond delays to be calculated accurately"

D:\Flowcharts>"D:\test\Compilers\avr\batchfiles\..\bin\avr-objdump.exe" -S "D:\Flowcharts\4x4_7seg_2.elf"  1>"D:\Flowcharts\4x4_7seg_2.lst" 

D:\Flowcharts>"D:\test\Compilers\avr\batchfiles\..\bin\avr-size.exe" -B -d "D:\Flowcharts\4x4_7seg_2.elf" 
   text	   data	    bss	    dec	    hex	filename
    800	      0	     30	    830	    33e	D:\Flowcharts\4x4_7seg_2.elf

Compilation successful!

Launching the linker/assembler...
D:\test\Compilers\avr\batchfiles\avrb.bat  "D:\Flowcharts\4x4_7seg_2.elf" "D:\Flowcharts\4x4_7seg_2.hex" "D:\Flowcharts\4x4_7seg_2.cof"

D:\Flowcharts>"D:\test\Compilers\avr\batchfiles\..\bin\avr-objcopy" -O ihex -R .eeprom  "D:\Flowcharts\4x4_7seg_2.elf" "D:\Flowcharts\4x4_7seg_2.hex" 

HEX file creation successful!

D:\Flowcharts>"D:\test\Compilers\avr\batchfiles\..\bin\avr-objcopy" -O coff-avr -R .eeprom  "D:\Flowcharts\4x4_7seg_2.elf" "D:\Flowcharts\4x4_7seg_2.cof" 

COFF file creation successful!


FINISHED
Are you fully up-to date?
I'm running v8.2.2.15 built Feb 28 2020.
Load your flowchart, select Help, Check for updates.
Personally I would change Files in-use to Full database.
If updates are required, after downloading, Select Reload.
Martin

Post Reply