Netduino home hardware projects downloads community

Jump to content


Photo

NETMF with STM32 ARM Cortex M3


  • Please log in to reply
18 replies to this topic

#1 Ahmad

Ahmad

    New Member

  • Members
  • Pip
  • 2 posts

Posted 21 November 2010 - 05:21 AM

I want to use Microsoft .net Micro Framework with the STM32 processor ARM Cortex M3 Core. Is it possible? if yes, how i can do this?

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7116 posts
  • LocationNew York, NY

Posted 21 November 2010 - 06:05 PM

Hi Ahmad,

It is certainly possible to port .NET Micro Framework to other ARM microcontrollers. You'll need to get a copy of the .NET Micro Framework porting kit and write C/C++ code for the port.

Chris

#3 Ahmad

Ahmad

    New Member

  • Members
  • Pip
  • 2 posts

Posted 22 November 2010 - 07:10 AM

Hi Ahmad,

It is certainly possible to port .NET Micro Framework to other ARM microcontrollers. You'll need to get a copy of the .NET Micro Framework porting kit and write C/C++ code for the port.

Chris


Thanks Chris for your reply,

I can understand from your answer that there is no porting kit available to write C# code immedietely to STM32 MMU ARM Cortex M3 Core processor, i have to write my own porting kit through C/C++ first then use this porting kit.

am i right? please correct me if i'm wrong.

Appreciating your support,

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7116 posts
  • LocationNew York, NY

Posted 22 November 2010 - 03:53 PM

Ahmad, Yes, you'd need to port the .NET Micro Framework to that chip...and then you could write C# code to run on top of the ported .NET Micro Framework firmware. I hope that helps, Chris

#5 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1568 posts
  • LocationCzech Republic

Posted 22 November 2010 - 05:03 PM

I can understand from your answer that there is no porting kit available to write C# code immedietely to STM32 MMU ARM Cortex M3 Core processor, i have to write my own porting kit through C/C++ first then use this porting kit.

The latest version of .NET Micro Framework Porting Kit 4.1 QFE 1 includes sample Cortex M3 solution.

#6 Roceh

Roceh

    Member

  • Members
  • PipPip
  • 11 posts

Posted 29 November 2010 - 06:16 PM

There is a port for the STM32, however the site is in chinese: http://translate.goo...04/5863524.aspx

#7 Mustang

Mustang

    Member

  • Members
  • PipPip
  • 26 posts
  • LocationDetroit, Michigan

Posted 28 July 2011 - 04:03 PM

Anyone have any further development with this? I too, am using the M3 (SAM3S-EK board) under the advice of a wise man for a project. I have yet to figure out how to port it over to .NETMF. Any advice in a jumping-off point would be greatly appreciated!

#8 Roceh

Roceh

    Member

  • Members
  • PipPip
  • 11 posts

Posted 28 July 2011 - 05:55 PM

Anyone have any further development with this? I too, am using the M3 (SAM3S-EK board) under the advice of a wise man for a project. I have yet to figure out how to port it over to .NETMF. Any advice in a jumping-off point would be greatly appreciated!


I've done a partial port for a Cortex M4 (Freescale's Kinetis), if you wish to embark on a port for the STM32 some of that should be useful (NVIC, some Thumb2 tweaks). http://kinetismf.codeplex.com/

I hit a bit of a brick wall with the above now as i've run out of space with GCC in debug mode (even using 4.5), so i cant really do much more (i.e. Ethernet) :( Depending on your requirements you will encounter the same, unless you have the KEIL compiler. I'm waiting for the 1mb parts coming out later this year (hopefully...).

There are some 1mb STM32 parts out now (with Ethernet and USB host), unfortunately the dev-kits are nowhere to be found.

#9 Mustang

Mustang

    Member

  • Members
  • PipPip
  • 26 posts
  • LocationDetroit, Michigan

Posted 01 August 2011 - 04:03 AM

I've done a partial port for a Cortex M4 (Freescale's Kinetis), if you wish to embark on a port for the STM32 some of that should be useful (NVIC, some Thumb2 tweaks). http://kinetismf.codeplex.com/

I hit a bit of a brick wall with the above now as i've run out of space with GCC in debug mode (even using 4.5), so i cant really do much more (i.e. Ethernet) :( Depending on your requirements you will encounter the same, unless you have the KEIL compiler. I'm waiting for the 1mb parts coming out later this year (hopefully...).

There are some 1mb STM32 parts out now (with Ethernet and USB host), unfortunately the dev-kits are nowhere to be found.


Broken Link. :(

#10 Cuno

Cuno

    Advanced Member

  • Members
  • PipPipPip
  • 132 posts
  • LocationZürich / Switzerland

Posted 02 September 2011 - 08:39 AM

The latest version of .NET Micro Framework Porting Kit 4.1 QFE 1 includes sample Cortex M3 solution.

That looked like an aborted attempt and was pretty useless, unfortunately.

I know that Chris doesn't mind if I announce here that in the brand-new Porting Kit 4.2 RC2, our new STM32 port is included. To the best of my knowledge, this is the first NETMF port to Cortex-M3 that is fully open source:

article (Windows for Devices)

Once you have installed the RC2 porting kit, you can find the STM32 port and some documentation in
C:\MicroFrameworkPK_v4_2\DeviceCode\Targets\Native\STM32\

Note that we also built a simple custom board with an STM32 controller and programmed it in C#. The application allows a PC to switch between different hearing aids for testing purposes. This is an example of NETMF being used for a real-world application. Thankfully, this customer allowed us to mention the project publicly. NETMF used about half of the controller's 64 KB RAM, and about half of its 512 KB Flash. We used the ARM RVDS 4.1 toolchain.

Best regards

Cuno

#11 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7116 posts
  • LocationNew York, NY

Posted 02 September 2011 - 09:51 AM

I know that Chris doesn't mind if I announce here that in the brand-new Porting Kit 4.2 RC2, our new STM32 port is included. To the best of my knowledge, this is the first NETMF port to Cortex-M3 that is fully open source:

article (Windows for Devices)

Very cool Cuno. So many cool commercial and/or useful products being built with .NET MF 4.2. And very generous of you to donate the STM32 port to the .NET Micro Framework PK. Two hands clapping :)

Chris

#12 Chris Seto

Chris Seto

    Advanced Member

  • Members
  • PipPipPip
  • 405 posts

Posted 02 September 2011 - 03:33 PM

Very impressed. M3 should be an awesome target. :D

#13 Mustang

Mustang

    Member

  • Members
  • PipPip
  • 26 posts
  • LocationDetroit, Michigan

Posted 18 November 2011 - 04:13 AM

So, it's been a few months, and I have zero progress. I feel like I am bashing my head against the wall. I am using the SAM3S-EK and just trying to get two PWM outputs, and two analog inputs. Maybe Microcontrollers aren't in my future. If anyone has ANY information, I'd be willing to contract some body parts to you. I am really at wit's end.

#14 Cuno

Cuno

    Advanced Member

  • Members
  • PipPipPip
  • 132 posts
  • LocationZürich / Switzerland

Posted 11 May 2012 - 09:56 AM

I am happy to announce that the new F4 Edition of our NETMF for STM32 software is now published as a first public beta release:

Mountaineer news

Codeplex site

As the Netduino Go firmware is derived from the F1 Edition, I hope that the new F4 Edition will also be a useful contribution for future Netduino Go firmware releases.

Cuno

#15 Fred

Fred

    Advanced Member

  • Members
  • PipPipPip
  • 300 posts
  • LocationUK

Posted 11 May 2012 - 12:23 PM

That's great. I got a F4 discovery board to get me started on native coding on ARM, but it's good to know I could use it as a .NET board too.

#16 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 11 May 2012 - 12:33 PM

Thanks Cuno, well done!
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#17 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7116 posts
  • LocationNew York, NY

Posted 11 May 2012 - 02:16 PM

Hi Cuno,

I am happy to announce that the new F4 Edition of our NETMF for STM32 software is now published as a first public beta release:

Many congratulations on the beta release of Oberon+CSA's newest port...and thank you for continuing to contribute to the .NET Micro Framework community in an open source fashion.

For those who aren't aware, KodeDaemon and CW2 did a great job getting NETMF up and running on STM32F2/F4 this last year, building a port of NETMF originally derived from the STM32F1 PAL (which Oberon previously contributed to NETMF). The combination of those community efforts brought us the NETMF 4.2 firmware used on the new Netduino Go and Shield Base boards.

I can't wait to see what we can all accomplish together with NETMF in the future.

Again...congrats, Cuno!

Chris

#18 awaiK

awaiK

    Advanced Member

  • Members
  • PipPipPip
  • 90 posts

Posted 13 June 2012 - 01:30 PM

Hi, Mountaineer Group's STM32F4 port reached RTM today.

#19 Cuno

Cuno

    Advanced Member

  • Members
  • PipPipPip
  • 132 posts
  • LocationZürich / Switzerland

Posted 15 June 2012 - 05:08 PM

Hi,

Mountaineer Group's STM32F4 port reached RTM today.

Yes, and for once the timing was perfect, phew...

;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2010-2014 Secret Labs LLC  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.