Altera_Forum
Honored Contributor
14 years agoBSP Content Linking while upgrading Niche UDP Offload Ethernet Example to 10.1
Hi Guys,
I'm trying to upgrade the UDP offload example to 10.1 both to give to the community and to use as part of my Uni project (this is a very tiny part). I need to get the UDP offload example going in 10.1 and also for the DE2-115. http://www.alterawiki.com/wiki/nios_ii_udp_offload_example I'm having errors that are "undefined reference", but the definition is in the BSP. So is it a BSP linking problem? Basically i'm after advice on the problem. I've added extra detail below for your reference if needed. problem summary I've got compiler errors for undefined objects that actually are defined in the BSP. See the attached image for errors and read on for details. error details What i've got is the errors shown in the attached pic. They refer to "undefined" calls. Thing is, these definitions exist in code in the BSP. One refers to menus from the niche stack and the others to an Altera timer. The timer related ones are in the bsp/drivers/src/ . These appear to me to be included via the include call #include<sys/alt_timestamp.h> The menu one is in menus.c in bsp/hal/iniche/src/miclib/ . The only link i see is #include"menu.h" . Note that the .c has "menus" with an s; where the .h doesn't. So does the .c get included.....? Any help will be greatly appreciated. When i get this going i plan to upload it back up as I've noticed some other people would like a 10.1 version of it. THANKS IN ADVANCE extra details how i developed the example to 10.1- Used v9.0sp2 to run the UDP off load example src scripts from the Nios console. This constructs the quartus project and application.
- Took my successful Simple Socket Server 10.1 Example and added the needed UDP offload objects to the SOPC design.
- Created a Nios project using the MicroC OS and Interniche options enabled for the BSP creation.
- Took the raw .c and .h files from the v9.0 Nios program. Adapted them to the new system.h.
- I've played around trying different includes and even copying the "menus.c" file out of the BSP and into the project itself.
- Tried to make direct includes using a header called "menus.h" 1 and 2 still couldn't get past those errors (or the extra ones these attempts created).
- Looked at the 9.0 BSP summary html for any differences in settings. None seen.