Hi friend.
For Ethernet to work with Netduino, you should add a define statement to enable the emac driver in the file board.h located
in nut/include folder. So, the modification is like this:
/*
* Ethernet device.
*/
#if defined(CHARON2) || defined(XNUT_100) || defined(XNUT_105) ||\
defined(MMNET01) || defined(MMNET02) || defined(MMNET03) || defined(MMNET04) ||\
defined(ARTHERNET1)
#include <dev/nicrtl.h>
#elif defined(MMNET101) || defined(MMNET102) || defined(MMNET103) || defined(MMNET104)
#include <dev/lanc111.h>
#elif defined(ELEKTOR_IR1)
#include <dev/dm9000e.h>
#elif defined(OLIMEX_LPCE2294)
#include <dev/cs8900a.h>
#elif defined(AT91SAM7X_EK) || defined(AT91SAM9260_EK) || defined(MORPHOQ1) || defined(ENET_SAM7X) || defined(NETDUINO)
#include <dev/at91_emac.h>
#elif defined(EVK1100) || defined(EVK1105)
#include <dev/avr32_macb.h>
#endif
#ifndef DEV_ETHER
#include <dev/null_ether.h>
#endif
#ifndef DEV_ETHER_NAME
#define DEV_ETHER_NAME "eth0"
#endif
you need to define the netduino platform in the NutConfigurator and save it with a different name.
the template you should use is the board AT91SAM7X256-EK and change the processor size to the AT91SAM7X512.
After that, you should build the NUT/OS to take effect those changes.
Best Regards,
Alfonso.
PD: Merry Christmas...
Hello, I have just started trying to use Nut/OS on the Netduino plus with no success at networking.
On the web server example(httpd) I have verified that the code hangs on NutNetIfConfig(DEV_ETHER_NAME, mac, ip_addr, ip_mask).
-Doesn't work on either Nut/OS 4.1(Stable) or 5.0(latest beta).
-I'm using YAGARTO toolchain(GCC 4.6.2) and tools(v. 20100703).
-As IDE, I have CodeLite, although not really relevant.
-I'm compiling with SAM-BA 2.11(executing the flash boot script)
-This is my simple make batch script, which is used with default makefiles on each app directory:
set makeLocation=C:\ethernut-5.0\nutapp\httpd
set pathExtra=C:\ethernut-5.0\nut\tools\win32;C:\yagarto\toolchain\bin;
cd %makeLocation%
set PATH=%pathExtra%;%PATH%
make clean all install
::%SystemRoot%\explorer.exe "%makeLocation%
PAUSE
Please post some hints if you have managed to make Nut/OS work with N+