Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Errors compiling Netduino Go firmware


  • Please log in to reply
4 replies to this topic

#1 Nicky

Nicky

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts
  • LocationDenmark

Posted 28 September 2012 - 12:58 PM

Hi

I have (with no success) been trying to compile a custom firmware to the NGo, but I get 100+ errors each time. Even with the standard firmware.

  • Downloaded and installed Porting Kit 4.2
  • Copied NGo source
  • Made some changes with wizard (can't EDIT the solution, has to CLONE - Did change for four lines to USB1 instead of other value)
  • Reverted the above 4 lines
  • cmd -> setenv_gcc4.6.cmd C:\GCC
  • cmd -> msbuild solutions\netduinogo\dotnetmf.proj /t:rebuild /p:flavor=release

After 20-60 seconds, I get 15 warnings and 92 errors.

Error example:

"C:\MicroFrameworkPK_v4_2\solutions\netduinogo\dotnetmf.proj" (rebuild destinat
ion) (1) ->
"C:\MicroFrameworkPK_v4_2\solutions\netduinogo\TinyCLR\TinyCLR.proj" (Build des
tination) (2) ->
"C:\MicroFrameworkPK_v4_2\Solutions\NetduinoGo\DeviceCode\USART_Config_HAL\dotN
etMF.proj" (Build destination) (131) ->
  C:\MicroFrameworkPK_v4_2\tools\targets\Microsoft.SPOT.System.GCC.targets(310,
5): error MSB3073: The command " "C:\GCC\bin\arm-none-eabi-gcc.exe" -xc++ -Wno-i
nvalid-offsetof -fcheck-new   -ffunction-sections -mlong-calls -fomit-frame-poi
nter -fdollars-in-identifiers -fshort-wchar -fno-exceptions  -funsigned-char -m
structure-size-boundary=8  -DTINYCLR_ENABLE_SOURCELEVELDEBUGGING  -DCOMPILE_THU
MB2  -DVERSION_MAJOR=4 -DVERSION_MINOR=2 -DVERSION_BUILD=0 -DVERSION_REVISION=0
 -DOEMSYSTEMINFOSTRING="\"Netduino Go (v4.2.0.0) by Secret Labs LLC\"" -DPLATFO
RM_ARM_STM32 -DPLATFORM_ARM_NetduinoGo -DTARGETLOCATION_FLASH -DLITTLE_ENDIAN -
DGCC_V4_4    -mfloat-abi=soft   -mcpu=cortex-m3 -mlittle-endian  -Os -DNDEBUG -
fno-default-inline  -IC:\MicroFrameworkPK_v4_2\Solutions\STM32Stamp\DeviceCode\
USART_Config_HAL -IC:\MicroFrameworkPK_v4_2\DeviceCode\include -IC:\MicroFramew
orkPK_v4_2\DeviceCode\Cores\arm -IC:\MicroFrameworkPK_v4_2\Support\Include   -I
C:\MicroFrameworkPK_v4_2\crypto\inc  -IC:\MicroFrameworkPK_v4_2\CLR\Include -IC
:\MicroFrameworkPK_v4_2\CLR\Libraries\CorLib -IC:\MicroFrameworkPK_v4_2\CLR\Lib
raries\SPOT -IC:\MicroFrameworkPK_v4_2\CLR\Libraries\SPOT_Hardware -IC:\MicroFr
ameworkPK_v4_2\CLR\Libraries\SPOT_Graphics -IC:\MicroFrameworkPK_v4_2\CLR\Libra
ries\SPOT_Net -IC:\GCC\lib\gcc\arm-none-eabi\\include -IC:\MicroFrameworkPK_v4_
2\Solutions\NetduinoGo -IC:\MicroFrameworkPK_v4_2\devicecode\Targets\Native\STM
32 -IC:\MicroFrameworkPK_v4_2\DeviceCode\Cores\arm -IC:\MicroFrameworkPK_v4_2\D
eviceCode\Cores\arm\Include -IC:\MicroFrameworkPK_v4_2\DeviceCode -IC:\MicroFra
meworkPK_v4_2\DeviceCode\Include -IC:\MicroFrameworkPK_v4_2\CLR\Include -IC:\Mi
croFrameworkPK_v4_2\DeviceCode\Targets\Native\STM32\NetduinoGo -IC:\MicroFramew
orkPK_v4_2\Support\Include -IC:\MicroFrameworkPK_v4_2\DeviceCode\include -IC:\M
icroFrameworkPK_v4_2\CLR\include -IC:\MicroFrameworkPK_v4_2\Crypto\inc    -o C:
\MicroFrameworkPK_v4_2\BuildOutput\THUMB2\GCC4.4\le\FLASH\release\NetduinoGo\ob
j\Solutions\STM32Stamp\DeviceCode\USART_Config_HAL\USART_Config_HAL.obj -c C:\M
icroFrameworkPK_v4_2\Solutions\NetduinoGo\DeviceCode\USART_Config_HAL\USART_Con
fig_HAL.cpp  " ended with code 1. [C:\MicroFrameworkPK_v4_2\Solutions\
NetduinoGo\DeviceCode\USART_Config_HAL\dotNetMF.proj]

If I doesn't add /p:flavor=release to the commandline, the compiler works for some minutes, and then returns 20 warnings, 208 errors (many of which is identifiers not found).

I have tried with several different compilers, CodeSourcery (2-3 different) and some others... to mention four specific:

arm-2007q3-53-arm-none-eabi
arm-2010.09-51-arm-none-eabi
arm-2010q1-188-arm-none-eabi
gcc-arm-none-eabi-4_6-2012q2-20120614

Basicly, what I'm trying to do, is to make a firmware with ENC28J60 driver, which (as far as I understand (not much)), I have set som specific GPIOs for. Is that even possible to do? I'm trying to make an as much integrated solution for ethernet, until the real modules is released (it was weeks in april/may)...

Thanks for help and time!

//Nicky

ntools
TCP Listener (Beta) · FTP Server (Alpha)
Netduino Plus Go Module · Xml Parser
http://ntools.codeplex.com/


#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 28 September 2012 - 02:06 PM

Hi Nicky, I don't believe that the NETMF PK supports the newest versions of GCC. CW2 has worked on GCC support for the Netduino Go codebase. http://forums.netdui...source-for-gcc/ And Microsoft has committed updated support into the upcoming NETMF 4.3 SDK. http://netmf.codeple...or Next Version Chris

#3 Nicky

Nicky

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts
  • LocationDenmark

Posted 28 September 2012 - 02:18 PM

Oh that does explain something ;) I did see the other thread, but when I saw 4.2 QFE1, and that the post was almost half an year I old, I didn't think more about it. Oh, VS2012 support - how lovely ;)

ntools
TCP Listener (Beta) · FTP Server (Alpha)
Netduino Plus Go Module · Xml Parser
http://ntools.codeplex.com/


#4 Nicky

Nicky

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts
  • LocationDenmark

Posted 28 September 2012 - 02:49 PM

It seems to be compiling very well now.. thanks!!! But this is 4.2.0.0 right? Then I'll have to downgrade my shieldbase?

ntools
TCP Listener (Beta) · FTP Server (Alpha)
Netduino Plus Go Module · Xml Parser
http://ntools.codeplex.com/


#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 28 September 2012 - 03:43 PM

But this is 4.2.0.0 right? Then I'll have to downgrade my shieldbase?

Correct.

The 4.2.0.1+ Shield Base beta firmware is designed specifically to host the Shield Base GoBus code. 4.2.0.0 is the latest stable release, and is the recommended version for tinkerers who want to run standalone NETMF code on their Shield Base.

Please note that NETMF-on-ShieldBase is not an official platform. We're here to help you tinker...but you'll probably want to use "Netduino Go + Shield Base" or the traditional Netduinos for production scenarios. We just thought it would be a neat thing to enable for our early adopters :)

Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.