Alternatively, you could simply build and flash Netduino 2 firmware on your Netduino Plus 2 board.
- timothyp likes this
  | ||||||||||||||
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.
Community Stats
#60257 Help! I've accidentally bricked my brand-new Netduino 1 when updating...Posted by CW2 on 27 September 2014 - 09:01 PM What guide are you following? ST tools do not work with Netduino 1, you have to use Atmel SAM-BA.
#57969 Commercial Product using Netduino - not competitivePosted by CW2 on 06 May 2014 - 04:31 PM Well, you cannot really compare a $5 PIC with a STM32F Cortex microcontroller - which costs ~$10 - $20 in single quantities, depending on the model and variant. So, you'd need to select an appropriate microcontroller, there are many of them even in STM families and then reduce cost by mass production - but we are talking hundred of thousands here and even then you'd probably have hard time to meet your $10 goal. For example, Netduino 2's STM32F205RFT6 costs ~$7 in 1000 quantity, plus crystal, passives, other components, PCB, assembly, testing etc...
#57392 Adding to Cpu.Pin enumerationPosted by CW2 on 07 April 2014 - 06:46 AM You can access those pins via Cpu.Pin enumeration - the ports are treated as consecutive array of pins, so PA is 0 .. 15, PB 16 .. 31, PC 32 .. 47 etc.: var pa4 = (Cpu.Pin)( 0 + 4); var pb1 = (Cpu.Pin)(16 + 1); var pc0 = (Cpu.Pin)(16 + 0); var pc8 = (Cpu.Pin)(32 + 8);
#57035 Interrupt Port and Input Port Read Values are Wrong on First Interrupt.Posted by CW2 on 23 March 2014 - 08:44 PM I have not tried to reproduce the behavior, but there is one fundamental issue with using port.Read() in the interrupt handler: because the interrupts are queued, the handler is executed after a certain period of time, thus port.Read() returns the port state at the time the interrupt handler is being executed, not when the interrupt occurred. This can cause incorrect results, especially when the pulse duration or frequency is close to execution time of the interrupt handler (managed code).
I guess a better way is to use two interrupt ports, both set up for falling and rising edge (InterruptEdgeBoth) and use the handler parameters data1 (port number), data2 (port state, 1/0) and timestamp in a state machine (you can reuse one xxx_OnInterrupt handler).
#56883 I2C Bus Problem - DebuggingPosted by CW2 on 17 March 2014 - 10:13 PM
For Netduino 2 you need to modify only files in Targets\Native\Netduino_STM32. The STM32 folder contains the original Oberon's implementation, which is not used - Netduino_STM32 is basically STM32 + Secret Labs' modifications.
In fact, you could delete all subdirectories in Targets\Native and Solutions that do not have Netduino,Template or Windows in their name - I usually do that to reduce code search result noise...
#56876 Netduino 2 Firmware v4.3.1 with GCC supportPosted by CW2 on 17 March 2014 - 03:57 PM
No, you can safely ignore this warning. IIRC it is caused by incorrect ToolsVersion attribute value in a few project files, which causes MSBuild 3.5 to be run, instead of 4.0. I have already fixed such issues, but in separate 'cleanup' branch, which will be integrated into a future release...
#56866 Netduino 2 Firmware v4.3.1 with GCC supportPosted by CW2 on 17 March 2014 - 12:39 PM Prerequisites
How to build the firmware with GCC
Important notes
Attached Files
Edit 2014-03-18 19:30 UTC: Added Visual Studio to prerequisite list
#56639 ND1 - Input is always TRUEPosted by CW2 on 05 March 2014 - 11:45 AM Quiz question: What return value do you expect from an unconnected input pin?
The thing is that you created input pin with ResistorMode.PullUp, which means the pin is in logic high (returns true), unless it is connected to other logic level (logic low, ground). Thus, if you want your input pin Read() method to return false, you have to wire the pin to GND.
If you use a port in output mode, its Read() method basically just returns the current state - i.e. the initial state passed via constructor parameter or what was set in the last call of Write() method.
#56625 Source Control for Porting Kit and netduinoPosted by CW2 on 04 March 2014 - 04:41 PM
There are certainly more ways how to do it, based on personal preferences and development workflow, but you'd probably need to set up a few branches - I usually use something like this:
master O-- ... --[My 1.0]... \ ^ netmf \--[NETMF4.3]--[NETMF4.3QFE1] ... [NETMF vNext] / \ \ (merge) / netduino \--[SL 4.3.1] ... [SL vNext]... / \ / my-netduino-changes \[Change #1]--[Change #2]... /This allows me to have complete reference of the official .NET Micro Framework codebase (it would be easier if the Microsoft team decided to use git on CodePlex) and also vendor firmware releases. Every new release is simply added to the appropriate branch, then you can decide what changes will be merged where, if at all. Similarly, development of modifications (features, bug fixes, whatever) happens in a dedicated branch and the finished work will be merged where needed - although it might sound a little bit complicated at first, it is actually very easy to do, especially in git.
#56577 Compiling Custom Netduino Firmware: Step-By-Step Instructions - HelpPosted by CW2 on 02 March 2014 - 12:40 PM
The Cortex-M is not supported in the build files, you'd have to add appropriate -mcpu directive in the Microsoft.Spot.System.GCC.Targets file; plus a few other changes. The easiest way is to download Microsoft.Spot.system.gcc.targets from NicolasG's repository, copy it into \Tools\Targets directory (overwrite the existing one). However, you'll get several other errors, some were introduced in BitConverter.cpp, also there are missing GCC scatterfiles in Netduino2 solutions, which are mandatory for the linker. I am now working on fixing GCC support for Netduino2 solutions, I'll publish the source code with detailed instructions when it's done.
#55955 .NET MF 4.3 QFE1 RTMPosted by CW2 on 09 February 2014 - 08:35 AM
Just spotted...
https://netmf.codepl...ses/view/118283
| ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||