Jump to content


Make error: USER_LOGIC_MD_MODULE_0_CONFIG_BASE undeclared (first use in this function)


  • You cannot reply to this topic
1 reply to this topic

#1 Laviewwx

    Member

  • Members
  • PipPip
  • 3 posts

Posted 30 November 2009 - 12:54 PM

Hi all,

I met a problem about USER_LOGIC_MD_MODULE_0_CONFIG_BASE in compiling the makefile, the original error message is
/*******************************************/
gcc -I inc -I linux_driver -c -o co_init.o -O2 -Wall co_init.c
co_init.c: In function âco_initializeâ:
co_init.c:68: error: âUSER_LOGIC_MD_MODULE_0_CONFIG_BASEâ undeclared (first use in this function)
co_init.c:68: error: (Each undeclared identifier is reported only once
co_init.c:68: error: for each function it appears in.)
make: *** [co_init.o] Error 1
/*******************************************/

the problematic code in the co_init.c are

co_memory_attach(Input_memory, xd_fpga_handle, ZBT_SRAM_AVALON_0_BASE, USER_LOGIC_MD_MODULE_0_CONFIG_BASE);
co_memory_attach(Output_memory, xd_fpga_handle, ZBT_SRAM_AVALON_0_BASE, USER_LOGIC_MD_MODULE_0_CONFIG_BASE);

I have a reference design which works perfect, it also have the same declaration of SDRAM, so I am confused and may anyone give me some hint about the error code?

I assume the USER_LOGIC_MD_MODULE_0_CONFIG_BASE specifies the memory bank that FPGA uses, is it problematic that I target all my three HW processes to the same "PE0"? The place and route is done w/o error.

Thank you
Weixin

#2 etrexel

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 260 posts

Posted 02 December 2009 - 05:21 PM

This is a duplicate thread, please see: http://impulse-support.com/forums/index.php?showtopic=1021
Ed Trexel
Impulse Accelerated Technologies, Inc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users