Compiling Firmware with Keil evaluation. - Netduino Plus 2 (and Netduino Plus 1) - Netduino Forums
   
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 Firmware with Keil evaluation.

firmware keil mdk

  • Please log in to reply
2 replies to this topic

#1 stotech

stotech

    Advanced Member

  • Members
  • PipPipPip
  • 143 posts
  • LocationAustralia

Posted 25 May 2015 - 04:58 AM

Hi everyone. I’ve got keil installed and I’ve challenged myself to compile the firmware for the NP2. From there I’ll try and make the changes needed to get it working on an STM32F407IGT6

Here is what I’ve done so far.

Prerequisites:

How to build the firmware with Keil;

·         Install Keil eval (you need to email them to arrange a trial). Mine installed to C:\keil_v5

·         Install .NET Micro Framework Porting Kit 4.3 QFE1 (C:\MicroFrameworkPK_v4_3)

·         Make a folder C:\Porting

·         Copy C:\MicroFrameworkPK_v4_3 to C:\Porting\PK_v4_3

·         Extract Netduino 2 Firmware v4.3.1 source to C:\Porting\NP2_v4_3

·         Make a folder C:\Porting\Mixed

·         Copy “C:\Porting\PK_v4_3” to “C:\Porting\Mixed” overwrite all.

·         Copy “C:\Porting\NP2_v4_3” to “C:\Porting\Mixed” overwrite all.

·         Navigate to C:\Porting\Mixed\Solutions\NetduinoPlus2\TinyBooter and make a copy of scatterfile_bootloader_rvds.xml. Rename it to scatterfile_bootloader_mdk.xml. (We might have to make some changes to this later???)

·         Launch cmd.exe (note: I can’t use Msbuild in cmd.exe. For some reason I need to launch C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012\Visual Studio Tools\ VS2012 x86 Native Tools Command Prompt) I don’t know why?

·         Use these commands

cd porting\mixed
setenv_base.cmd MDK5.14 PORT C:\keil_v5
Msbuild Solutions\NetduinoPlus2\dotnetmf.proj /T:rebuild /p:flavor=release;tcp_ip_stack=lwip /filelogger

And this is where I’m up to.

 

 

Only 2 Errors, (see attached file) I’m appealing to the community to help me finish this guide.

 

Thanks in advance.

 

Attached Files



#2 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 25 May 2015 - 08:28 AM

Launch cmd.exe (note: I can’t use Msbuild in cmd.exe. For some reason I need to launch C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012\Visual Studio Tools\ VS2012 x86 Native Tools Command Prompt) I don’t know why?

The Visual Studio command prompt adds some extra bits to the path, most notably the location of MSBuild.

 

Regards,

Mark


To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#3 stotech

stotech

    Advanced Member

  • Members
  • PipPipPip
  • 143 posts
  • LocationAustralia

Posted 26 May 2015 - 05:15 AM

OK. I thought i had the solution

 

https://www.ghielect.../topic?id=15600

 

by changing the command from

setenv_base.cmd MDK5.14 PORT C:\keil_v5

to

setenv_mdk.cmd 5.14 C:\keil_v5

Turns out that produces 115 errors???







Also tagged with one or more of these keywords: firmware, keil, mdk

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.