I am trying to compile the ND+ firmware (any version as I just want to make sure my tool chain is setup correctly). Currently I have access to MDK 3.1 and 4.1 through work, so i am trying to use them. Currently for i can successfully compile and deploy the netduino solution. However despite the NetduinoPlus solution compiling successfully i can not deploy it. Here is my deployment process:
- Erase NetduinoPlus
- Flash compiled TinyBooterDecompressor.bin with SAM-BA 2.11 (on win7 x64)
- Open MFDeploy and Ping Device
- Deploy ER_CONFIG and ER_FLASH
However when i try and deploy the Netduino Plus Firmware depending on the compiler version used one of the following happens
Using MDK 4.1
Deployment hangs at Executing Application
Using MDK 3.1
Deployment succeeds however the device does not reboot, and i do not get a "Debugger Found!" message if i then disconnect the device and reconnect windows displays a "USB Device not recognised" error, and i can only connect to the device by powering on with the button pressed.
Am i missing something from my NetduinoPlus solution as the Netduino solution works fine...
Also the compiled files in tinyclr.hex seem to be considerably smaller than the "Official" firmware images i.e when i compile 4.1.0.6 from source my image sizes are as follows:
ER_FLASH
Official Release Size: 1124248
My Compiled Size (release): 954336
Delta (release): 169912 bytes difference
My Compiled Size (debug): 1122456
Delta (debug): 1792 bytes difference
ER_CONFIG
Official Release Size: 6968
My Compiled Size: 6968
Delta: 0 bytes difference
Now I know that the RVDS/MDK compilers are good and produce the smallest images but a 165Kb discrepancy between compiled (release) output is ridiculous, and a 1.6Kb difference between debug builds is disturbing especially when I have read that Secret Labs use RVDS/MDK as their compiler...
My compilation process is as follows:
- Open VS2010 Command Prompt
- Navigate to PK folder, and execute setenv_MDK3.1.cmd C:\Keil\Arm\
- execute msbuild Solutions\NetduinoPlus\dotnetmf.proj /T:build /p:Flavor=Release /v:d /m
- or msbuild Solutions\NetduinoPlus\dotnetmf.proj /T:build /p:Flavor=Debug /v:d /m
Any clues as to what i am missing?
Edited by nakchak, 22 March 2012 - 12:33 PM.