Page 1 of 2

.Net Micro Framework on ESP32 chip

Posted: Sun Oct 30, 2016 10:03 pm
by kolozsaron
Hi,

I would like to ask if Espressif/ESP32 team plans to support .Net Micro Framework on ESP32 chip in the future?

Thanks in advance!
Best regards,

Aron Kolozs

Re: .Net Micro Framework on ESP32 chip

Posted: Mon Oct 31, 2016 3:31 am
by ESP_Sprite
We have no plans to do any porting of the .Net Micro Framework ourselves. Someone else is entirely free to do so, however.

Re: .Net Micro Framework on ESP32 chip

Posted: Mon Oct 31, 2016 9:07 pm
by kolozsaron
OK, thank you for your quick answer! :)

Re: .Net Micro Framework on ESP32 chip

Posted: Thu Nov 17, 2016 11:59 am
by Superkurt
I would like to do it. Does anybody want to help me?

Re: .Net Micro Framework on ESP32 chip

Posted: Fri Nov 18, 2016 2:42 am
by kolban
Maybe post some links and thoughts and what .Net micro framework is. I for one don't know and if there was a link, I'd click it. Also, what skills do you need assistance with? What do you foresee as the major tasks?

Re: .Net Micro Framework on ESP32 chip

Posted: Tue Nov 29, 2016 11:02 pm
by RonnyA
.NET MicroFramework is an Open Source .NET Runtime for SOC's. It was created by Microsoft.
The .NET code is interpreted by the runtime, but allows for remote debugging from Visual Studio so the development experience is pretty good.

I believe the requirement is 512KB Flash, if that must be on the chip or can be in an external chip I don't know - but this might be the biggest challenge.

Wikipedia:
https://en.wikipedia.org/wiki/.NET_Micro_Framework

Home page
https://www.netmf.com/

Source Code
http://netmf.github.io/

Beginners guid to porting .NET MF (old but a lot of info, not 100% up to date)
http://www.ghielectronics.com/downloads ... 0NETMF.pdf

HW that supports .NET MF
ghielectronics.com and netduino.com


Another approach could be porting the Illum project to support the ESP chips
(Compiling .NET ByteCode to runnable images for ArmV4 and V5 using LLVM)
https://github.com/NETMF/llilum

Re: .Net Micro Framework on ESP32 chip

Posted: Wed Nov 30, 2016 11:40 am
by Kokusnuss
Hey,

I would love to see something like this! Would be amazing when someone of you guys do this! :mrgreen:

Re: .Net Micro Framework on ESP32 chip

Posted: Sat Feb 18, 2017 9:23 pm
by Superkurt
I think there are three ways that can be followed:

1. The .NET MicroFramework.

For this approach the .NET code will be compiled into an optimized IL (intermediate language). On the ESP32 there must be an IL interpreter that interprets the IL code at runtime. That's not a JIT (Just-In-Time) compiler. So every single instruction must be interpreted again and again. I've worked with a Netduino plus 2 and I found that code execution was not so fast.

The hurdle for this approach would be porting the .NET MicroFramework interpreter to the ESP32. Currently only the ARM architecture is supported in the code. I think porting this code to another processor architecture would be very difficult.

2. The LLILUM AOT (Ahead-Of-Time) compiling approach

With LLILUM you compile a .NET IL code into a LLVM IL representation and then into machine code for a given target processor. LLVM is a new sort of compiler that can compile several input languages into LLVM IL representation and then into machine code.

But the problem here is that the ESP32 is not supported by LLVM. For getting the ESP32 supported a LLVM backend must be written. I've looked into the description http://llvm.org/docs/WritingAnLLVMBackend.html how to write such a backend and found that this would also too complicated.

3. Transforming the .NET code into C/C++ and compile it with GCC - an AOT approach

The one and only tool that can create ESP32 machine code is the xtensa GCC compiler. So maybe a tool that transforms the .NET IL code or the input C# code into C/C++ code is needed. This C/C++ code should then be compiled with the xtensa GCC compiler.

Re: .Net Micro Framework on ESP32 chip

Posted: Mon Feb 20, 2017 9:19 am
by BuddyCasino
Someone at Espressif is writing an LLVM backend for the Xtensa right now. I'd wait for that.

Re: .Net Micro Framework on ESP32 chip

Posted: Sat Jun 16, 2018 11:33 am
by Scalpel78
Did anyone get .Net Micro Framework running on the ESP32?