AtXmega128A1
Posted: Sat Dec 31, 2016 1:22 pm
Errors Simple Test Xmega128A1, Eeprom, I2C, SPI, FAT.
Please tell me what is the problem with Flowcode 7.1.1, I tried different CPU
AtXmega128A1, PIC24HJ, PIC32MX, the compilation does not work.
F:\#$_AT-~1>"C:\PROGRA~2\FLOWCO~3\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atxmega128a1 -Os -funsigned-char -o "F:\#$_AT-~1\Proba-ATxmega128A1.elf" "F:\#$_AT-~1\Proba-ATxmega128A1.c" -lm
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:288,
from F:\#$_AT-~1\Proba-ATxmega128A1.c:950:
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c: In function 'FC_CAL_EE_Read':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:48: error: 'EECR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:48: error: (Each undeclared identifier is reported only once
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:48: error: for each function it appears in.)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:48: error: 'EEPE' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c: In function 'FC_CAL_EE_Write':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:68: error: 'EECR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:68: error: 'EEPE' undeclared (first use in this function)
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:327,
from F:\#$_AT-~1\Proba-ATxmega128A1.c:950:
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Init_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:153: warning: large integer implicitly truncated to unsigned type
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Slave_Status_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:694: error: 'TWCR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:694: error: 'TWINT' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:696: error: 'TWSR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:726: error: 'TWEA' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:726: error: 'TWEN' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Slave_Uninit_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:744: error: 'TWCR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Slave_TxByte_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:759: error: 'TWDR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:761: error: 'TWCR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:761: error: 'TWINT' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:763: error: 'TWSR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Slave_RxByte_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:792: error: 'TWDR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:793: error: 'TWSR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:799: error: 'TWCR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:799: error: 'TWINT' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:799: error: 'TWEN' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:804: error: 'TWEA' undeclared (first use in this function)
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:348,
from F:\#$_AT-~1\Proba-ATxmega128A1.c:950:
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Init_2':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:167: warning: large integer implicitly truncated to unsigned type
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_03d91_led_base__TurnOn':
F:\#$_AT-~1\Proba-ATxmega128A1.c error: 'FCP_TRIS_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c error: 'FCP_PORT_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_03d91_led_base__TurnOff':
F:\#$_AT-~1\Proba-ATxmega128A1.c error: 'FCP_TRIS_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c error: 'FCP_PORT_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_07fa1_FAT1__DeleteFile':
F:\#$_AT-~1\Proba-ATxmega128A1.c warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_07fa1_FAT1__OpenFolder':
F:\#$_AT-~1\Proba-ATxmega128A1.c:4661: warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_07fa1_FAT1__OpenFile':
F:\#$_AT-~1\Proba-ATxmega128A1.c:4873: warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
Error returned from [avr-gcc.exe]
Completed compilation, return = 1
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat notificado código de error 1
Please tell me what is the problem with Flowcode 7.1.1, I tried different CPU
AtXmega128A1, PIC24HJ, PIC32MX, the compilation does not work.
F:\#$_AT-~1>"C:\PROGRA~2\FLOWCO~3\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atxmega128a1 -Os -funsigned-char -o "F:\#$_AT-~1\Proba-ATxmega128A1.elf" "F:\#$_AT-~1\Proba-ATxmega128A1.c" -lm
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:288,
from F:\#$_AT-~1\Proba-ATxmega128A1.c:950:
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c: In function 'FC_CAL_EE_Read':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:48: error: 'EECR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:48: error: (Each undeclared identifier is reported only once
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:48: error: for each function it appears in.)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:48: error: 'EEPE' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c: In function 'FC_CAL_EE_Write':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:68: error: 'EECR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_EEPROM.c:68: error: 'EEPE' undeclared (first use in this function)
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:327,
from F:\#$_AT-~1\Proba-ATxmega128A1.c:950:
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Init_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:153: warning: large integer implicitly truncated to unsigned type
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Slave_Status_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:694: error: 'TWCR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:694: error: 'TWINT' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:696: error: 'TWSR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:726: error: 'TWEA' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:726: error: 'TWEN' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Slave_Uninit_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:744: error: 'TWCR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Slave_TxByte_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:759: error: 'TWDR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:761: error: 'TWCR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:761: error: 'TWINT' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:763: error: 'TWSR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Slave_RxByte_1':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:792: error: 'TWDR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:793: error: 'TWSR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:799: error: 'TWCR' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:799: error: 'TWINT' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:799: error: 'TWEN' undeclared (first use in this function)
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:804: error: 'TWEA' undeclared (first use in this function)
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:348,
from F:\#$_AT-~1\Proba-ATxmega128A1.c:950:
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Init_2':
C:\Program Files (x86)\Flowcode 7\CAL\/AVR\AVR_CAL_I2C.c:167: warning: large integer implicitly truncated to unsigned type
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_03d91_led_base__TurnOn':
F:\#$_AT-~1\Proba-ATxmega128A1.c error: 'FCP_TRIS_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c error: 'FCP_PORT_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_03d91_led_base__TurnOff':
F:\#$_AT-~1\Proba-ATxmega128A1.c error: 'FCP_TRIS_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c error: 'FCP_PORT_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_07fa1_FAT1__DeleteFile':
F:\#$_AT-~1\Proba-ATxmega128A1.c warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_07fa1_FAT1__OpenFolder':
F:\#$_AT-~1\Proba-ATxmega128A1.c:4661: warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
F:\#$_AT-~1\Proba-ATxmega128A1.c: In function 'FCD_07fa1_FAT1__OpenFile':
F:\#$_AT-~1\Proba-ATxmega128A1.c:4873: warning: passing argument 1 of 'FCI_COMPARE' discards qualifiers from pointer target type
Error returned from [avr-gcc.exe]
Completed compilation, return = 1
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat notificado código de error 1