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

Compiling Netduino mini Firmware


Best Answer Chris Walker, 13 March 2013 - 05:09 AM

Hi smokingfish,

I guess i got it working. What Compiler does the offical firmware use?

The official firmware is compiled with the RVCT compiled (the compiler from ARM RVDS and the Keil MDK). It's cool to see you compiling your own firmware. Thanks for posting your updates! Chris Go to the full post


  • Please log in to reply
3 replies to this topic

#1 smokingfish

smokingfish

    Member

  • Members
  • PipPip
  • 14 posts
  • LocationGermany

Posted 12 March 2013 - 02:21 AM

Hello again :)

 

i'm trying to recompile the firmware (just TinyCLR for now)

It works just fine with GCC 4.2.1 and yagarto 4.6.0.

 

With GCC the file (ER_FLASH) is 1.197.756bytes

With yagarto the file (ER_FLASH) is 1.106.535bytes

The last Netduino mini Update is 922.360bytes

 

I can flash every file just fine with MFDeploy 4.2 and get into TinyBooter mode

I also cannot deploy programs using my firmware (i tried both RS232 and UART, setting the default port before compiling).

 

What am I doing wrong?

 

Edit: Porting Kit 4.2 QFE2 and firmware source from the downloads page



#2 smokingfish

smokingfish

    Member

  • Members
  • PipPip
  • 14 posts
  • LocationGermany

Posted 12 March 2013 - 05:27 PM

I guess i got it working.

Seems i forgot the tinybootcompressor at 0x010a0000.

It also works when i flash tinyCLR at 0x010a000 instead of 0x01010000.

 

I can deploy very small programs but i get Error a3000000 when deploying my rather big solution.

I guess I dont have enough free memory :(

 

The Flash Sector Map Command also lists Deployment start at 0x00158000, its 0x00174000 in the scatter file.

Changing the Code_BaseAddress there works.

 

What Compiler does the offical firmware use?

 

EDIT: managed to scale down my monitor app, remove references etc. it now deploys but cancels at:

Microsoft.SPOT.Hardware.SerialPort 0x4E6685A9!=0x1C1E5B6D

I changed the Version Number of SerialPort from 4.0.0.0 to 4.2.0.0 but still Error: a3000000 (no more mismatch though) - what Version did you actually use?

EDIT: I checked the NETMF source, 4.0.0.0 seems to be correct in the libcatproj files, there is no newer version.

A clean project without Serial works fine, if i add it I dont get the same mismatch error but still a3000000



#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 13 March 2013 - 05:09 AM   Best Answer

Hi smokingfish,

I guess i got it working. What Compiler does the offical firmware use?

The official firmware is compiled with the RVCT compiled (the compiler from ARM RVDS and the Keil MDK). It's cool to see you compiling your own firmware. Thanks for posting your updates! Chris

#4 smokingfish

smokingfish

    Member

  • Members
  • PipPip
  • 14 posts
  • LocationGermany

Posted 13 March 2013 - 06:58 PM

Hey there, thanks for that.

I used MDK 4.7 (cmp/asm/lnk 5.0.3) (couldnt get it to work on 4.0)

 

I had to add a new entry to the targets file but it works well and the image is just a few kilobytes bigger than the original one.

 

It works just like you would expect it to! No more errors, no more mismatches.

 

Now that that is done I may actually try to modify the firmware :) Still want those 2 ports at once!






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.