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

Need help compiling C++ on Netduino


  • Please log in to reply
7 replies to this topic

#1 BitFlipper

BitFlipper

    Advanced Member

  • Members
  • PipPipPip
  • 61 posts

Posted 16 August 2011 - 11:30 PM

Let's say I want to temporarily remove the .Net MF firmware from my Netduino and play around with a purely C++ project. Can someone please let me know where I can get good information related to setting this up? I know that other people have done this but I have not seen good resources with clear steps on how to accomplish this. Specifically, I want to do the following: - Compile a C++ project to be deployed and run on the Netduino. - The C++ compiler should support standard C++, including templates. - I want to connect and communicate from PC to Netduino using the USB->Serial cable. - Obviously I need to do some debugging, how would this be set up? I assume I'll be using GCC since I can't afford to pay $6000 for something like RVDS.

#2 Nevyn

Nevyn

    Advanced Member

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

Posted 17 August 2011 - 06:47 AM

Let's say I want to temporarily remove the .Net MF firmware from my Netduino and play around with a purely C++ project. Can someone please let me know where I can get good information related to setting this up? I know that other people have done this but I have not seen good resources with clear steps on how to accomplish this..

Have you seen the Wiki Page? I'd be interested in what you find as I was thinking about this as a project for the Autumn.

I've also been watching SimpleNGen. Not sure which way to go yet but I have a few weeks before I think about starting and tooling up.

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 BitFlipper

BitFlipper

    Advanced Member

  • Members
  • PipPipPip
  • 61 posts

Posted 17 August 2011 - 03:28 PM

Excellent, thanks for the link. I should find what I need there. BTW the reason I need this is because I'm working on a project that will allow you to take a full .Net exe (not .Net MF) and recompile it to C++. Then you can use a C++ compiler as a post-build step to convert it to a native executable. This project is moving along very well and I'm getting close to the point where I need to start testing this on a microcontroller. This project will allow you to create C++ code from your .Net app that is very compact since it doesn't need the .Net runtime at all as it has its own CLR-like kernel. It does a static code analysis pass in order to only include the code that actually gets executed. It is fast since it is not interpreted but C++ (with added support for GC, full type checking, exception handling, delegates, threading etc). It will also allow P/Invoke just like you can right now with the full .Net, using the exact same P/Invoke syntax. Once this project is at a good point, I will make it available on CodePlex. I will also post a thread here to describe the project in detail. It is a big project but as I said I have made very good progress.

#4 Fred

Fred

    Advanced Member

  • Members
  • PipPipPip
  • 302 posts
  • LocationUK

Posted 17 August 2011 - 04:51 PM

Great. Some excellent info on the Wiki. I assume that we don't have any JTAG or similar debugging interface for direct C coding?

#5 Nevyn

Nevyn

    Advanced Member

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

Posted 17 August 2011 - 06:26 PM

I assume that we don't have any JTAG or similar debugging interface for direct C coding?

My understanding is you need a development board for this although I must admit I'm only just getting to grips with what is needed.

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


#6 loveelectronics

loveelectronics

    Member

  • Members
  • PipPip
  • 11 posts

Posted 19 August 2011 - 06:53 PM

Excellent, thanks for the link. I should find what I need there.

BTW the reason I need this is because I'm working on a project that will allow you to take a full .Net exe (not .Net MF) and recompile it to C++. Then you can use a C++ compiler as a post-build step to convert it to a native executable. This project is moving along very well and I'm getting close to the point where I need to start testing this on a microcontroller.

This project will allow you to create C++ code from your .Net app that is very compact since it doesn't need the .Net runtime at all as it has its own CLR-like kernel. It does a static code analysis pass in order to only include the code that actually gets executed. It is fast since it is not interpreted but C++ (with added support for GC, full type checking, exception handling, delegates, threading etc). It will also allow P/Invoke just like you can right now with the full .Net, using the exact same P/Invoke syntax.

Once this project is at a good point, I will make it available on CodePlex. I will also post a thread here to describe the project in detail. It is a big project but as I said I have made very good progress.


I would be interested in contributing to this project... please contact me at james@loveelectronics.co.uk

#7 BitFlipper

BitFlipper

    Advanced Member

  • Members
  • PipPipPip
  • 61 posts

Posted 20 August 2011 - 10:19 PM

I would be interested in contributing to this project... please contact me at james@loveelectronics.co.uk


I sent you an email.

#8 knutolai

knutolai

    Advanced Member

  • Members
  • PipPipPip
  • 36 posts

Posted 10 April 2013 - 07:35 PM

Sorry for reopening a old thread, but has any further progress been made on this project? 






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.