XCore RSS Feed

Last visit was: It is currently Wed Sep 08, 2010 11:20 pm



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ethernet package 1v3
PostPosted: Fri Jul 30, 2010 3:20 pm 
Newbie

Joined: Fri Jul 30, 2010 1:35 pm
Posts: 1
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:
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:
      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?


Top
Offline Profile View all posts by this user  
 
 Post subject: Re: ethernet package 1v3
PostPosted: Wed Aug 04, 2010 9:46 am 
XCore Moderator

Joined: Fri Mar 12, 2010 6:03 pm
Posts: 31
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.


Top
Offline Profile View all posts by this user  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: