Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

building library for ecos

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.