Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

building library for ecos

Altera_Forum
Honored Contributor II
1,305 Views

I downloded the ecos release and tried to create a libray using the nios2configtool. The board configuration is a 1c12 Microtronix ukit. The following is the error message from the build script: (partial) 

 

In file included from /cygdrive/c/altera/kits/nios2/components/ecos/ecos-2.0/packages/devs/sopc/altera_avalon_uart/v2_0/src/altera_avalon_uart_devices.c:119: 

/cygdrive/c/altera/kits/nios2/examples/verilog/microtronix_uKit_2/linux/software/ecos/ecoslib_install/include/cyg/hal/devices.h:101: error: `CYGNUM_SERIAL_WORD_LENGTH_UART1_DATA_BITS' undeclared here (not in a function) 

/cygdrive/c/altera/kits/nios2/examples/verilog/microtronix_uKit_2/linux/software/ecos/ecoslib_install/include/cyg/hal/devices.h:101: error: initializer element is not constant 

/cygdrive/c/altera/kits/nios2/examples/verilog/microtronix_uKit_2/linux/software/ecos/ecoslib_install/include/cyg/hal/devices.h:101: error: (near initialization for `uart_0_channel.config.word_length') 

 

 

Any ideas? 

 

Thanks, 

 

AR
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
399 Views

This looks like you've tried to use the same eCos project for different PTF files. 

 

Try doing a clean build of the project. If that doesn't work, post a copy of the PTF file to this forum. That may shed some further light on what's happening.
0 Kudos
Reply