Preface:
I tried compiling 4.3 with Yagarto before following the instructions on this page:
http://wiki.netduino...to-GCC-4-6.ashx
However that results in 116 errors looking exactly like this:
The command " "\-gcc.exe .................................. exited with code 9009.
I checked the version of yagarto, even tried different versions... didn't work.
After that I tried using the KEIL MDK toolchain.
Using that one I was able to compile the unmodified 4.3 sources.
(There was one error about a scatter file but it did not seem to affect the build of the firmware).
The problem
A reply to my previous question (http://forums.netdui...e-code-interop/)
guided me to this tutorial on how to use native interop with the .NET MF:
https://learn.adafru...tduino?view=all
So I went ahead, created a new .NET MF library, generated the native code files,
put everything into place and tried to recompile the firmware again, this time including
the new native code.
The compile process started as usual and seemed to continue all the way to the end
at which point it outputs something like this:
Skipping target "ArmCompileC" because it has no outputs. MetaDataProcessorDat: C:\PK\BuildOutput\public\Release\server\dll\MetaDataProcessor.exe -create_database C:\Users\Timothy\AppData\Local\Temp\tmpD8B3.tmp C:\PK\BuildOutput\THUMB2\MDK4.54\le\FLASH\release\NetduinoPlus2\bin\tinyclr.dat MMP : error MMP0000: CLR_E_FAIL [C:\PK\Solutions\NetduinoPlus2\TinyCLR\TinyCLR.proj] Done Building Project "C:\PK\Solutions\NetduinoPlus2\TinyCLR\TinyCLR.proj" (Build target(s)) -- FAILED. Done Building Project "C:\PK\Solutions\NetduinoPlus2\dotnetmf.proj" (rebuild target(s)) -- FAILED. Build FAILED. "C:\PK\Solutions\NetduinoPlus2\dotnetmf.proj" (rebuild target) (1) -> "C:\PK\Solutions\NetduinoPlus2\TinyBooter\TinyBooter.proj" (Build target) (2) ->
The generated C++ looks like this:
void NativeHelper::Hello( CLR_RT_TypedArray_UINT8 param0, CLR_RT_TypedArray_UINT8 param1, HRESULT &hr ) { }
After creating the managed project for the interop library and generating the stubs,
I did not make any changes to those files. I wanted to make sure it compiled as is first,
that's why the method above has an empty body.
Any ideas on what might be going on?
Is the error caused by the Keil MDK toolchain or has the compilation process already completed
at the time of the error and is there something else going on?