To compile the source code with .net mf 4.1 for netduino plus
#1
Posted 19 July 2012 - 07:00 AM
#2
Posted 19 July 2012 - 07:20 AM
Have you read this thread?
Sounds like the issues i was having a while back, you need to include the lwip stack in the build command.
Nak.
#3
Posted 20 July 2012 - 08:36 AM
#4
Posted 20 July 2012 - 10:46 AM
#5
Posted 23 July 2012 - 08:31 AM
#6
Posted 23 July 2012 - 10:33 AM
In a nut shell you need to do the following to get it to compile:
- Download the NETMF 4.1 porting kit, and install it in a logical place i.e. C:\pk41
- Download the netduino 4.1 firmware source and copy it to the root of your PK directory
- Open a Visual Studio Command Prompt
- Navigate to your Porting Kit directory that you have copied the ND+ firmware too.
- Call the batch file setenv_RVDS4.0.cmd with the path to your RVDS install i.e.
setenv_RVDS4.0.cmd c:\rvds\
- execute the following command
msbuild solutions\NetduinoPlus\dotnetmf.proj /p:flavor=release;tcp_ip_stack=lwip /t:rebuild /m /v:m
Nak.
#7
Posted 24 July 2012 - 12:09 AM
#8
Posted 24 July 2012 - 08:15 AM
#9
Posted 24 July 2012 - 08:53 AM
#10
Posted 24 July 2012 - 09:08 AM
#11
Posted 24 July 2012 - 09:11 AM
Do you have Visual Studio 2010 and .NET Framework 4.0 installed?Error Message is "Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild. Treating the project as if it has ToolsVersion="3.5".
#12
Posted 24 July 2012 - 09:33 AM
#13
Posted 25 July 2012 - 01:00 AM
#14
Posted 25 July 2012 - 01:03 AM
#15
Posted 26 July 2012 - 07:20 AM
I am more than a little stumped as to your issues now, as using the steps above works perfectly for me every time, even using the RVDS evaluation.
To reiterate, are you using a standard command prompt or the visual studio command prompt?
You need to use the visual studio command prompt (Start->Programs->MicroSoft Visual Studio 2010->Visual Studio Tools->Visual Studio Command Prompt (2010) ) as it runs a batch file on loading that sets environment variables to use the correct version of msbuild i.e. if you have .net 2, 3.5 and 4.0 installed on your machine each has its own version of msbuild.
The error message of
indicates (as CW2 eluded to when he asked if you are using visual studio 2010) that you are trying to use the msbuild for .net 3.5 not 4.0 which you need to use to build pk 4.1Error Message is "Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild. Treating the project as if it has ToolsVersion="3.5".
You can simplify the build process by using a build batch file, here is a sample of mine, save the following into your pk root folder as build.bat, then run it as an administrator:
::Call the batch file that runs when you open a vs2010 command prompt (you may need to change paths to point to it on your machine) call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86_amd64 ::Call the RVDS build environment file call setenv_RVDS4.0.cmd C:\rvds ::Call msbuild to compile the pk msbuild solutions\NetduinoPlus\dotnetmf.proj /p:flavor=release;tcp_ip_stack=lwip /t:rebuild /m /v:m
Nak.
#16
Posted 26 July 2012 - 08:11 AM
#17
Posted 27 July 2012 - 02:42 AM
#18
Posted 30 July 2012 - 08:25 AM
Now I faced followings.
"C:\RVDS\RVCT\Programs\4.1\713\win_32-pentium\armcc.exe" --cpp --diag_suppress 2874,111,161,550,C3011 --diag_suppress 66,161,230,1293 --split_sections --library_interface=aeabi_clib -DARM_V3_1 --feedback C:\MicroFrameworkPK_v4_2\tools\make\Feedback\NetduinoPlus_RVDS4.1.feedback -DTCPIP_LWIP -DTINYCLR_ENABLE_SOURCELEVELDEBUGGING -DCOMPILE_THUMB -DVERSION_MAJOR=4 -DVERSION_MINOR=2 -DVERSION_BUILD=0 -DVERSION_REVISION=0 -DOEMSYSTEMINFOSTRING="\"Netduino Plus by Secret Labs LLC\"" -DPLATFORM_ARM_NetduinoPlus -DTARGETLOCATION_FLASH -DLITTLE_ENDIAN --thumb --fpu softvfp --cpu ARM7TDMI --littleend --no_debug --no_debug_macros -O2 --no_autoinline --inline --dwarf2 --asm --interleave -Ospace -DNDEBUG -IC:\MicroFrameworkPK_v4_2\DeviceCode\pal\COM\sockets -IC:\MicroFrameworkPK_v4_2\DeviceCode\include -IC:\MicroFrameworkPK_v4_2\DeviceCode\Cores\arm -IC:\MicroFrameworkPK_v4_2\Support\Include -IC:\MicroFrameworkPK_v4_2\crypto\inc -IC:\MicroFrameworkPK_v4_2\CLR\Include -IC:\MicroFrameworkPK_v4_2\CLR\Libraries\CorLib -IC:\MicroFrameworkPK_v4_2\CLR\Libraries\SPOT -IC:\MicroFrameworkPK_v4_2\CLR\Libraries\SPOT_Hardware -IC:\MicroFrameworkPK_v4_2\CLR\Libraries\SPOT_Graphics -IC:\MicroFrameworkPK_v4_2\CLR\Libraries\SPOT_Net -IC:\MicroFrameworkPK_v4_2\CLR\Libraries\SPOT_Net_Security -I"C:\RVDS\RVCT\Data\4.1\713\include\windows" -IC:\MicroFrameworkPK_v4_2\Solutions\NetduinoPlus -IC:\MicroFrameworkPK_v4_2\devicecode\Targets\Native\AT91 -IC:\MicroFrameworkPK_v4_2\DeviceCode\Cores\arm -IC:\MicroFrameworkPK_v4_2\DeviceCode\Cores\arm\Include -IC:\MicroFrameworkPK_v4_2\DeviceCode -IC:\MicroFrameworkPK_v4_2\DeviceCode\Include -IC:\MicroFrameworkPK_v4_2\DeviceCode\Targets\Native\AT91\NetduinoPlus -IC:\MicroFrameworkPK_v4_2\Support\Include -IC:\MicroFrameworkPK_v4_2\DeviceCode\include -IC:\MicroFrameworkPK_v4_2\CLR\include -IC:\MicroFrameworkPK_v4_2\Crypto\inc -IC:\MicroFrameworkPK_v4_2\DeviceCode\include --apcs /interwork/noropi/norwpi/noswst -o C:\MicroFrameworkPK_v4_2\BuildOutput\THUMB\RVDS4.1\le\FLASH\release\NetduinoPlus\obj\DeviceCode\pal\COM\sockets\sockets.obj -c C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp
EXEC : warning : C9931W: Your license for Compiler (feature compiler) will expire in 23 days [C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\dotNetMF.proj]
EXEC : warning : C9931W: Your license for Compiler (feature compiler) will expire in 23 days [C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\dotNetMF.proj]
EXEC : warning : C3052E: couldn't read file 'C:\MicroFrameworkPK_v4_2\tools\make\Feedback\NetduinoPlus_RVDS4.1.feedback': No such file or directory [C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\dotNetMF.proj]
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.h", line 15: Error: #20: identifier "NETWORK_CONFIG" is undefined
extern NETWORK_CONFIG g_NetworkConfig;
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.h", line 16: Error: #20: identifier "WIRELESS_CONFIG" is undefined
extern WIRELESS_CONFIG g_WirelessConfig;
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.h", line 192: Error: #20: identifier "SOCKETS_MAX_COUNT" is undefined
struct SocketRegisterMap m_socketHandles[SOCKETS_MAX_COUNT];
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp", line 287: Error: #20: identifier "WIRELESS_INTERFACE_COUNT" is undefined
if (interfaceIndex >= WIRELESS_INTERFACE_COUNT)
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp", line 297: Error: #70: incomplete type is not allowed
memcpy( wirelessConfig, &g_WirelessConfig.WirelessInterfaces[interfaceIndex], sizeof(SOCK_WirelessConfiguration) );
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp", line 307: Error: #20: identifier "WIRELESS_INTERFACE_COUNT" is undefined
if (interfaceIndex >= WIRELESS_INTERFACE_COUNT)
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp", line 312: Error: #70: incomplete type is not allowed
memcpy( &g_WirelessConfig.WirelessInterfaces[interfaceIndex], wirelessConfig, sizeof(SOCK_WirelessConfiguration) );
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp", line 662: Error: #70: incomplete type is not allowed
SOCK_NetworkConfiguration current;
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp", line 938: Error: #70: incomplete type is not allowed
memcpy( &g_NetworkConfig.NetworkInterfaces[index], cfg, sizeof(SOCK_NetworkConfiguration) );
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp", line 971: Error: #20: identifier "WIRELESS_INTERFACE_COUNT" is undefined
if(index >= WIRELESS_INTERFACE_COUNT) return;
^
"C:\MicroFrameworkPK_v4_2\DeviceCode\PAL\COM\sockets\sockets.cpp", line 975: Error: #70: incomplete type is not allowed
memcpy( &g_WirelessConfig.WirelessInterfaces[index], cfg, sizeof(SOCK_WirelessConfiguration) );
Thanks.
Kevin.
Refernece
I recommend that the compilation of firmware ND+ 4.2 will be better than 4.1 with followings.
1. Downloaded .net mf 4.2
2. Downloaded .net mf porting kit 4.2
3. Downloaded ND+ firmware 4.1.
4. Downloaded RVDS 4.1 Evaluation from ARM Co., Ltd.
5. call "c:\C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall x86_amd64"
6. setenv_RVDS4.1.cmd c:\rvds
7. msbuild solutions\NetduinoPlus\dotnetmf.proj /p:flavor=release;tcp_ip_stack=lwip /t:rebuild /m /v:m
#19
Posted 30 July 2012 - 09:06 AM
#20
Posted 31 July 2012 - 04:14 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users