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++

eCos build problem

Altera_Forum
Honored Contributor II
1,230 Views

Hi all, 

 

I get the following error when building the eCos library for Nios II: 

 

/cygdrive/c/altera/kits/nios2_60/components/ecos/ecos-current/packages/hal/sopc/altera_avalon_timer/current/src/altera_avalon_timer.c:95: error: `CPU1_TIMER_FREQ' undeclared (first use in this function) 

 

It seems that the CPU1_TIMER_FREQ should be declared in the automatically generated file install_dir/include/cyg/hal/system.h, but this declaration is missing: 

 

/* * cpu1_timer configuration * */ # define CPU1_TIMER_NAME "/dev/cpu1_timer"# define CPU1_TIMER_TYPE "altera_avalon_timer"# define CPU1_TIMER_BASE 0x00101500# define CPU1_TIMER_IRQ 0# define CPU1_TIMER_ALWAYS_RUN 0# define CPU1_TIMER_FIXED_PERIOD 0# define CPU1_TIMER_SNAPSHOT 1# define CPU1_TIMER_PERIOD 1# define CPU1_TIMER_PERIOD_UNITS "ms"# define CPU1_TIMER_RESET_OUTPUT 0# define CPU1_TIMER_TIMEOUT_PULSE_OUTPUT 0# define CPU1_TIMER_MULT 0.001# define CPU1_TIMER_ALT_AVALON_TIMER_PERIOD_UNITS ALT_AVALON_TIMER_PERIOD_UNITS_MS 

 

Adding the declaration manually solves the problem, but it is annoying http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Any ideas how to solve this problem?
0 Kudos
0 Replies
Reply