[ECOS] Compilation Error CYGPKG_IO_FLASH

Moussa Ba mba@embedded-zone.com
Thu Jul 20 19:10:00 GMT 2006


I am trying to compile in CYGPKG_IO_FLASH along with ATMEL_DATAFLASH 
support, I am having the compiler error below.  I have included the 
contents of my mlm_flash.c file.

Moussa

#include <pkgconf/system.h>
// Support for DataFlash

#ifdef CYGPKG_DEVS_FLASH_ATMEL_DATAFLASH

#define _FLASH_PRIVATE_
#include <cyg/io/dataflash.h>

CYG_DATAFLASH_FLASH_DRIVER(cyg_dataflash_dev0,
               cyg_spi_dataflash_dev0,
               0x01000000,
               0, 16);

#endif


arm-elf-gcc -c  -I/ecos-c/cygwin/opt/ecoscvs/ecos/mlm/install/include 
-I/opt/eco
scvs/ecos/packages/devs/flash/arm/mlm/current 
-I/opt/ecoscvs/ecos/packages/devs/
flash/arm/mlm/current/src 
-I/opt/ecoscvs/ecos/packages/devs/flash/arm/mlm/curren
t/tests -I. -I/opt/ecoscvs/ecos/packages/devs/flash/arm/mlm/current/src/ 
-finlin
e-limit=7000 -mcpu=arm7tdmi -mno-short-load-words -Wall -Wpointer-arith 
-Wstrict
-prototypes -Winline -Wundef  -g -O2 -ffunction-sections 
-fdata-sections  -fno-e
xceptions   -Wp,-MD,src/mlm_flash.tmp -o 
src/devs_flash_arm_mlm_mlm_flash.o /opt
/ecoscvs/ecos/packages/devs/flash/arm/mlm/current/src/mlm_flash.c
In file included from 
/ecos-c/cygwin/opt/ecoscvs/ecos/mlm/install/include/cyg/io
/dataflash.h:102,
                 from 
/opt/ecoscvs/ecos/packages/devs/flash/arm/mlm/current/src/
mlm_flash.c:60:
/ecos-c/cygwin/opt/ecoscvs/ecos/mlm/install/include/cyg/io/flash_dev.h:229:10: 
w
arning: "CYGNUM_FLASH_WIDTH" is not defined
/ecos-c/cygwin/opt/ecoscvs/ecos/mlm/install/include/cyg/io/flash_dev.h:251:13: 
w
arning: "CYGNUM_FLASH_WIDTH" is not defined
/ecos-c/cygwin/opt/ecoscvs/ecos/mlm/install/include/cyg/io/flash_dev.h:269:13: 
w
arning: "CYGNUM_FLASH_WIDTH" is not defined
/ecos-c/cygwin/opt/ecoscvs/ecos/mlm/install/include/cyg/io/flash_dev.h:284:3: 
#e
rror What flash width?
/ecos-c/cygwin/opt/ecoscvs/ecos/mlm/install/include/cyg/io/flash_dev.h:288:10: 
w
arning: "CYGNUM_FLASH_BLANK" is not defined
/opt/ecoscvs/ecos/packages/devs/flash/arm/mlm/current/src/mlm_flash.c:65: 
initia
lizer element is not constant
/opt/ecoscvs/ecos/packages/devs/flash/arm/mlm/current/src/mlm_flash.c:65: 
(near
initialization for `cyg_dataflash_priv_cyg_dataflash_dev0.dev.spi_dev')
/opt/ecoscvs/ecos/packages/devs/flash/arm/mlm/current/src/mlm_flash.c:65: 
initia
lizer element is not constant
/opt/ecoscvs/ecos/packages/devs/flash/arm/mlm/current/src/mlm_flash.c:65: 
(near
initialization for `cyg_dataflash_priv_cyg_dataflash_dev0.dev')
make[1]: *** [src/mlm_flash.o.d] Error 1
make[1]: Leaving directory 
`/opt/ecoscvs/ecos/mlm/devs/flash/arm/mlm/current'
make: *** [build] Error 2

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list