Calling in the Microsoft library Microsoft.SPOT.Hardware.OneWire:
I try to use this class from godefroi for work with DS18B20 on NETMF 4.2:
https://www.ghielectronics.com/community/codeshare/entry/438
but get an error in
```cs]var devs = ow.FindAllDevices();[/code
Code without this class also leads to error:
```cs
OneWire m_ow = new OneWire(new OutputPort(Pins.GPIO_PIN_E_6, false));
var devs = m_ow.FindAllDevices();
Unhandled exception of type “System.NotSupportedException” in Microsoft.SPOT.Hardware.OneWire.dll
One-wire does work with NETMF 4.3. Have a look at the driver that I wrote for the MikrobusNet (MBN) board using a custom made DS18B20 Sensor. The demonstration and the source code can be found at http://www.mikrobusnet.org/. Look around and you’ll find it.
Thanks for the link, but you have to implement a similar method.
Still the same error at ow.FindAllDevices(); //“System.NotSupportedException”
In my opinion, problem in my CLR based on 4.2.
UPD.
I upgrade my firmware from this site
In filemon’s port netmf 4.2 for stm32f4Discovery added OneWire+SD Card support.
After update my programm work without any corrections.
Thank you all for your advice, you helped me move in the right way.
As far as we can see after a quick check, they’ve copied all our STM32F4-specific files, and even modified some of them.
We’ve also made a small number of changes to the [em]portable[/em] files (as few as we could get away with). They are mostly in two categories:
Network related issues. Here, clearly Microsoft is working an a more fundamental solution of the issues, so it makes sense that they didn’t copy our stopgap fixes.
USB issues. These corrections would be important. The old code, still on vNext, assumes in many places that there only exists one USB controller. We’ll send Microsoft an email about this, hopefully they’ll adopt our corrections eventually.
We didn’t include the Oberon.NaCl crypto stuff, as this is still experimental code. We learned much about it, and as a result will replace one of the algorithms and in particular change the low-level C API. There is no deadline for this yet. Thus the next Mountaineer firmware update will use the current NaCl implementation and we will not yet publish its sources.
We hope to get rid of our own Codeplex site, and instead directly contribute source code to Microsoft’s site, in the vNext branch.
There, usually no firmware images are provided. Maybe someone in the community with access to MDK can step in and build and test suitable images for the most relevant boards?
We simply don’t have the time to do it for more than a few boards, and we’ll obviously have to concentrate on the Mountaineer USB/Ethernet/M4-MCU and Limmat boards.
If we [em]did[/em] provide a new image for another board anyway, it would be the 32F429IDiscovery. Maybe. We’ll have to see.
@ Cuno - an image for F429 would be [em]great[/em]. It’s a powerful and moderately priced board, and widely available. Will serve higher need perfectly.
F401, on the other hand, is a very small and [em]cheap[/em] MCU that may run NETMF. Something that NETMF ecosystem doesn’t have at the moment.