softip ethernet module issue

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm

softip ethernet module issue

Post by Folknology »

When I try the simple http demo or the app_serial to ethernet demo I get the following error when building in xtimecomposer (latest tools) :

Code: Select all

..
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'ethernet_get_mii_counts'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_rx_pins'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_tx_pins'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_transmit_packet'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_init_full'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_init_full.nstackwords'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_init_full.maxcores'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_init_full.maxtimers'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_init_full.maxchanends'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'ethernet_get_mii_counts.nstackwords'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'ethernet_get_mii_counts.maxcores'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'ethernet_get_mii_counts.maxtimers'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'ethernet_get_mii_counts.maxchanends'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_rx_pins.nstackwords'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_rx_pins.maxcores'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_rx_pins.maxtimers'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_rx_pins.maxchanends'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_tx_pins.nstackwords'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_transmit_packet.nstackwords'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_tx_pins.maxcores'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_transmit_packet.maxcores'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_tx_pins.maxtimers'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_transmit_packet.maxtimers'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_tx_pins.maxchanends'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
C:/Users/Alan/workspace/module_ethernet/src/full/mii_master.xc: Error: Multiple definition of 'mii_transmit_packet.maxchanends'
C:/Users/Alan/workspace/module_ethernet/src/full/mii.xc: Error: first defined here
..
mii.xc and mii_master.xc are clearly overlapping each over in places. Strangely this did not happen with the Ethernet gpio demo. If I use sc_ethernet (and a commandline build) from github I do not get this issue, so I am guessing there are some changes to the code base that need to be recognised in these demo apps anyone know what those are and how to easily fix them?


User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

I tried building serial to ethernet demo and also simple web server demo by dragging source files from xSOFTip window into the workspace. I am able to build the demos without any issues using the latest tools.

Sethu.
User avatar
yuvaraj
Member
Posts: 8
Joined: Fri Oct 18, 2013 9:23 am

Post by yuvaraj »

Kindly ensure from which branch you are downloading sc_ethernet repo from github. From the error messages I could recorgonize that module_ethernet get overlapped with the older version. There is no file called mii.xc under directory src/full on the latest repo.
Make sure what version you are getting while selecting serial_to_ethernet and http?.. Is it something else other than 2.3.2rc0??