I'm trying to get my projects working in XDE SDK v11.11, and I'm having trouble even building the sample applications with ethernet support.
I can't get any of the ethernet code to build in XDE v11.11, not even when I copy the ethernet code distributed from a xTimecomposer v12.
I tried to use the old version of module_xtcp and module_ethernet with 1v3, but I don't get it to compile in XDE v11.11. When I do, I get the following error:
xmake CONFIG=Debug all
/Applications/XMOS_11.11.0/build/xcommon/module_xcommon/build/../build/Makefile.common1:441: *** Required version for module_ethernet is 1v3 but there is no VERSION file for that module. Stop.
In the library module_xtcp, I have defined a VERSION file with the following contents, so I don't understand why the file is not found:
VERSION contents:
VERSION := 1v3
Also, when I try to build the app_ethernet_demo project in the XDE SDK v11.11, it gives me a warning and an error:
/Volumes/PC BACKUP/Development/repositories/git-remote/EclipseWorkspaces/workspace-XMOS/module_ethernet_board_support/common/ethernet_board_support.h:85: warning: #warning "Using ethernet_board_conf.h but TARGET is not set to a board that module_ethernet_board_support uses"
#warning "Using ethernet_board_conf.h but TARGET is not set to a board that module_ethernet_board_support uses"
from ../src/demo.xc: 26: #include "ethernet_board_support.h"
../src/demo.xc:46: error: `ETHERNET_DEFAULT_TILE' undeclared here (not in a function)
../src/demo.xc:46: error: 'on' specified for variable not of type core
../src/demo.xc:52: error: `ETHERNET_DEFAULT_SMI_INIT' undeclared here (not in a function)
../src/demo.xc:53: error: `ETHERNET_DEFAULT_MII_INIT' undeclared here (not in a function)
../src/demo.xc: In function `main':
../src/demo.xc:374: error: 'on' specified for variable not of type core
../src/demo.xc:390: error: 'on' specified for variable not of type core
xmake[1]: *** [.build_lite/src/demo.xc.o] Error 1
xmake: *** [bin/lite/app_ethernet_demo.1v4_lite.xe] Error 2
Help ....
linking to ethernet code liETHERNET_DEFAULT_TILE not defined
-
- Member++
- Posts: 24
- Joined: Sat Sep 18, 2010 4:05 am
-
- Experienced Member
- Posts: 104
- Joined: Fri Dec 11, 2009 8:29 pm
The first warning is the key. You are using a target that is not supported by the ethernet board support module (see https://www.xmos.com/node/15949?page=5). Is this your own board? If you are using your own board your need to replace the ETHERNET_DEFAULT_... constructors with explicit port values. If you want to do this then you can:
1) see https://www.xmos.com/node/15949?page=3 for details on the data structures that are being initialized
or
2) look at the defines in module_ethernet_board_support and copy them
or
3) Create an application using the xSOFTip explorer perspective which will let you select the ports and provide a code template for you.
Dave
1) see https://www.xmos.com/node/15949?page=3 for details on the data structures that are being initialized
or
2) look at the defines in module_ethernet_board_support and copy them
or
3) Create an application using the xSOFTip explorer perspective which will let you select the ports and provide a code template for you.
Dave
-
- Member++
- Posts: 24
- Joined: Sat Sep 18, 2010 4:05 am
Thanks for the help Dave. I was using an XC-2 board. I did solve this problem, and your suggestion helped me look in the right place for the solution.
I was trying to build an XC-2 project in XDE v11.11, and I was using the code generate by xTimecomposer. So, what I did was I found the ethernet code/examples for the XC2 board and downloaded that, and got my project working.
Here is where I found the XC-2 examples:
http://www.xmos.com/resources/xkits?cat ... hernet+Kit
Richard
I was trying to build an XC-2 project in XDE v11.11, and I was using the code generate by xTimecomposer. So, what I did was I found the ethernet code/examples for the XC2 board and downloaded that, and got my project working.
Here is where I found the XC-2 examples:
http://www.xmos.com/resources/xkits?cat ... hernet+Kit
Richard
davelacey wrote:The first warning is the key. You are using a target that is not supported by the ethernet board support module (see https://www.xmos.com/node/15949?page=5). Is this your own board? If you are using your own board your need to replace the ETHERNET_DEFAULT_... constructors with explicit port values. If you want to do this then you can:
1) see https://www.xmos.com/node/15949?page=3 for details on the data structures that are being initialized
or
2) look at the defines in module_ethernet_board_support and copy them
or
3) Create an application using the xSOFTip explorer perspective which will let you select the ports and provide a code template for you.
Dave