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