ethernet package 1v3

Technical questions regarding the XTC tools and programming with XMOS.
vanpark
Newbie
Posts: 1
Joined: Fri Jul 30, 2010 1:35 pm

ethernet package 1v3

Post by vanpark »

Hi community
I'm using xmos_ethernet.1v3 to output data from my xmos. When compiling with XMOS Development Environment 9.9.2 everything works just fine.
This an excerpt of the output when compiling with 10.4:

Code: Select all

xmake all 
'Building file: ../src/server/eth_phy.xc'
'Invoking: XC Compiler'
xcc -O0 -g -Wall -c -o "src/server/eth_phy.o" "../src/server/eth_phy.xc" "../XC-2_1board.xn"
In file included from ../src/server/eth_phy.xc:20:
smi.h:60:15: warning: language type `clock' is deprecated
smi.h:60:15: warning: clock type is now defined in xs1.h
smi.h:60:34: warning: language type `clock' is deprecated
smi.h:60:34: warning: clock type is now defined in xs1.h
smi.h:74:17: warning: language type `clock' is deprecated
smi.h:74:17: warning: clock type is now defined in xs1.h
smi.h:74:36: warning: language type `clock' is deprecated
smi.h:74:36: warning: clock type is now defined in xs1.h
../XC-2_1board.xn:4 Warning: XN11129 Node type "Devices" is deprecated, use "ExternalDevices" instead.
'Finished building: ../src/server/eth_phy.xc'
.
.
.
'Building file: ../src/server/ethernet_tx_server.xc'
'Invoking: XC Compiler'
xcc -O0 -g -Wall -c -o "src/server/ethernet_tx_server.o" "../src/server/ethernet_tx_server.xc" "../XC-2_1board.xn"
In file included from ../src/server/ethernet_tx_server.xc:20:
smi.h:60:15: warning: language type `clock' is deprecated
smi.h:60:15: warning: clock type is now defined in xs1.h
smi.h:60:34: warning: language type `clock' is deprecated
smi.h:60:34: warning: clock type is now defined in xs1.h
smi.h:74:17: warning: language type `clock' is deprecated
smi.h:74:17: warning: clock type is now defined in xs1.h
smi.h:74:36: warning: language type `clock' is deprecated
smi.h:74:36: warning: clock type is now defined in xs1.h
In file included from ../src/server/ethernet_tx_server.xc:21:
mii.h:43:3: warning: language type `clock' is deprecated
mii.h:43:3: warning: clock type is now defined in xs1.h
mii.h:44:3: warning: language type `clock' is deprecated
mii.h:44:3: warning: clock type is now defined in xs1.h
mii.h:57:37: warning: language type `clock' is deprecated
mii.h:57:37: warning: clock type is now defined in xs1.h
../XC-2_1board.xn:4 Warning: XN11129 Node type "Devices" is deprecated, use "ExternalDevices" instead.
'Finished building: ../src/server/ethernet_tx_server.xc'
.
.
.
'Building file: ../src/server/mii.xc'
'Invoking: XC Compiler'
xcc -O0 -g -Wall -c -o "src/server/mii.o" "../src/server/mii.xc" "../XC-2_1board.xn"
../src/server/mii.xc: In function `mii_tx_pins':
../src/server/mii.xc:239: warning: Using `:' for partial outputs is deprecated.
../src/server/mii.xc:239: warning: Use partout etc. instead (see xs1.h)
../src/server/mii.xc:245: warning: Using `:' for partial outputs is deprecated.
../src/server/mii.xc:245: warning: Use partout etc. instead (see xs1.h)
../src/server/mii.xc:253: warning: Using `:' for partial outputs is deprecated.
../src/server/mii.xc:253: warning: Use partout etc. instead (see xs1.h)
../XC-2_1board.xn:4 Warning: XN11129 Node type "Devices" is deprecated, use "ExternalDevices" instead.
'Finished building: ../src/server/mii.xc'
' '
'Building file: ../src/server/mii_filter.xc'
'Invoking: XC Compiler'
xcc -O0 -g -Wall -c -o "src/server/mii_filter.o" "../src/server/mii_filter.xc" "../XC-2_1board.xn"
In file included from ../src/server/mii_filter.xc:20:
mii.h:43:3: warning: language type `clock' is deprecated
mii.h:43:3: warning: clock type is now defined in xs1.h
mii.h:44:3: warning: language type `clock' is deprecated
mii.h:44:3: warning: clock type is now defined in xs1.h
mii.h:57:37: warning: language type `clock' is deprecated
mii.h:57:37: warning: clock type is now defined in xs1.h
../XC-2_1board.xn:4 Warning: XN11129 Node type "Devices" is deprecated, use "ExternalDevices" instead.
'Finished building: ../src/server/mii_filter.xc'
.
.
.
To fix these problems I:
- changed the Node type "Devices" to "ExternalDevices"
- imported xs1.h in smi.h and mii.h
- used the function partout in mii.h:

Code: Select all

      switch (bytes_left) 
        {
        case 0:       
          crc32(crc, 0, poly);
          crc = ~crc;
          p_mii_txd <: crc;    
          break;
        case 1:
          crc8shr(crc, word, poly);
          //p_mii_txd:8 <: word;
          partout(p_mii_txd,8,word);
          crc32(crc, 0, poly);
          crc = ~crc;
          p_mii_txd <: crc;    
          break;
        case 2:
          //p_mii_txd:16 <: word;
          partout(p_mii_txd,16,word);
          word = crc8shr(crc, word, poly);
          crc8shr(crc, word, poly);
          crc32(crc, 0, poly);
          crc = ~crc;
          p_mii_txd <: crc;    
          break;
        case 3:
          //p_mii_txd:24 <: word;
          partout(p_mii_txd,24,word);
          word = crc8shr(crc, word, poly);
          word = crc8shr(crc, word, poly);
          crc8shr(crc, word, poly);
          crc32(crc, 0, poly);
          crc = ~crc;
          p_mii_txd <: crc;    
          break;
        }
No warnings but still doesn't work.
Any suggestions?


User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

These warnings can be safely ignored or disabled (by removing -Wall flags from makefiles).

In future releases of the package they will be cleaned up.