AtXmega128A1

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

Moderator: Benj

Post Reply
volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

AtXmega128A1

Post by volodymyr0604 »

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:1555: error: 'FCP_TRIS_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c:1555: 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:1565: error: 'FCP_TRIS_I' undeclared (first use in this function)
F:\#$_AT-~1\Proba-ATxmega128A1.c:1565: 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:3072: 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

User avatar
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: AtXmega128A1

Post by Benj »

Hello,

Please can you attach your program showing the error and we will investigate for you.

Just been looking at the EEPROM and I2C for the XMEGA devices and I think I have hopefully allowed support for this now.

Simply copy the attached files into your "Flowcode 7/CAL/AVR" folder.
AVR_CAL_EEPROM.c
(3.83 KiB) Downloaded 296 times
AVR_CAL_I2C.c
(26.2 KiB) Downloaded 276 times

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: AtXmega128A1

Post by volodymyr0604 »

Benj.
Thank you, I will try.

trey3499
Posts: 5
Joined: Sun Aug 17, 2014 9:51 am
Contact:

Re: AtXmega128A1

Post by trey3499 »

Здравствуйте!
к 5-й версии xmega eprom не подойдет?

Post Reply