Hi Matrix,
I have a compiler problem with hardware I²C at ATMEGA2561:
C:\Program Files (x86)\Flowcode\Compilers\avr\batchfiles\avra.bat atmega2561 "K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V1.0.0.hex" "K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V1.0.0.c" "K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V1.0.0.lst"
C:\Program Files (x86)\Flowcode\Compilers\avr\batchfiles\avra.bat atmega2561 "K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V2.0.hex" "K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V2.0.c" "K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V2.0.lst"
K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1>"C:\PROGRA~2\Flowcode\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega2561 -Os -ffunction-sections -fdata-sections -funsigned-char -o "K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V2.0.hex" "K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V2.0.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:430,
from K:\Projekte\_KM\FLOWCO~1\AVR\ATMEGA~3\GDM-2\E-PACK~1\V2.0.c:174:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Init_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:144: error: 'USICR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:144: error: (Each undeclared identifier is reported only once
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:144: error: for each function it appears in.)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:144: error: 'USIWM1' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Uninit_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:227: error: 'USICR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:227: error: 'USIWM1' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Start_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:273: error: 'USIDR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:281: error: 'USISR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Restart_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:320: error: 'USIDR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:328: error: 'USISR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Stop_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:365: error: 'USIDR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_TxByte_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:434: error: 'USIDR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:438: error: 'USICR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:438: error: 'USIWM1' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:438: error: 'USITC' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:440: error: 'USICLK' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_RxByte_1':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:558: error: 'USIDR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:562: error: 'USICR' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:562: error: 'USIWM1' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:562: error: 'USITC' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_I2C.c:564: error: 'USICLK' undeclared (first use in this function)
Error returned from [avr-gcc.exe]
Software I²C or another µC 2560 works fine.
Thanks,
Markus
Compiler Error with hardware I2C at ATMEGA2561
Moderator: Benj
Compiler Error with hardware I2C at ATMEGA2561
- Attachments
-
- V2.0.fcfx
- (9.47 KiB) Downloaded 111 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Compiler Error with hardware I2C at ATMEGA2561
Thanks for letting us know I've replicated the issue and I'll investigate the problem for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel