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.

Nicolas Besson's Content

There have been 9 items by Nicolas Besson (Search limited from 19-April 23)


By content type

See this member's

Sort by                Order  

#60836 uNFC - NFC library

Posted by Nicolas Besson on 02 December 2014 - 09:53 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi vz10, I'm pretty sure that the library can work on 4.1 too. For this, create a new 4.1 project and import the cs files shared by Paolo.

 

Hope that you will succeed.




#59976 Adding Bitmap support through custom firmware

Posted by Nicolas Besson on 03 September 2014 - 07:22 AM in Netduino Plus 2 (and Netduino Plus 1)

Cool.

Did you switch to 4.3.1 ?

 

I have found that in 4.2.2 when building firmwares with yagarto gcc then the double.ToString function is not working properly due to some missing floating libraries in this compiler. I have planned to switch to 4.3.1 now, which use another gcc that have this support.

 

 

I also found that Graphics.featureproj was missing from my TinyCLR.proj file.

 

Check out my YouTube Video:  http://youtu.be/cUOSeFzKqes

 

I like the video with the neopixels.

 

Any chance to share your code and hardware design with us ?

 

- Nicolas




#59135 Build Netduino Plus 2 firmware from sources trouble

Posted by Nicolas Besson on 10 July 2014 - 05:42 AM in Netduino Plus 2 (and Netduino Plus 1)

 

Hi All

 

I have  been able to build the Netduino Plus 2 firmware revision 4.2.2 with GCC yagarto tool using the wiki instructions, and I have discovered that the double.ToString API is not behaving as expected with this build. You can use the DFU file called myfirmware-forsanitycheck.dfu contained in the package provided in the wiki page in order to reproduce the issue I'm facing, as both the one provided and the one I have generated, behaves the same.

 

The following code snippet illustrate it :

            double dValue = 10.20;
            Debug.Print("-- value : " + dValue.ToString("F1"));
 
The expected result should be :
-- value : 10.2
but you get :
-- value : -545128520.00000000000000010
 
The strange thing is that the official 4.2.2 firmware (http://forums.netdui...2-firmware-v422) provided for the Netduino Plus 2 is behaving correctly.
 
So is anybody could give me some inputs to track down that issue and work on a fix ?
Is that could be related to : http://netmf.codeple...m/workitem/1385 ?
 
Thanks All
- Billounet

 

 

I'm starting a dedicated topic for that failure:

http://forums.netdui...t-firmware-422/

 

- Billounet




#59134 Netduino Plus 2 : double.ToString failing on home built firmware 4.2.2

Posted by Nicolas Besson on 10 July 2014 - 05:39 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi All

 

I have  been able to build the Netduino Plus 2 firmware revision 4.2.2 with GCC yagarto tool using the wiki instructions (http://wiki.netduino...to-GCC-4-6.ashx), and I have discovered that the double.ToString API is not behaving as expected with this build (see below code snippet).

The DFU firmware file called myfirmware-forsanitycheck.dfu contained in the package provided in the wiki page behave the same and is a god starting point to test the folowing code snippet.

 

            double dValue = 10.20;
            Debug.Print("-- value : " + dValue.ToString("F1"));
 
The expected result should be :
-- value : 10.2
but you get :
-- value : -545128520.00000000000000010
 
The strange thing is that the official Netduino Plus 2 4.2.2 firmware (http://forums.netdui...2-firmware-v422) provided by Netduino is behaving correctly (the diffrence is that RealView is used to build that one).
 
Thanks to this issue report (http://netmf.codeple...m/workitem/1385) I have identified that in CLR file DeviceCode\pal\tinycrt\tinycrt.cpp at line 221 in function hal_snprintf_double, is the place where the conversion is done. But unfortunately the source code seems correct.
 
So is anybody could give me some inputs to track down that issue and work on a fix ?
 
Thanks
- Billounet



#59126 Build Netduino Plus 2 firmware from sources trouble

Posted by Nicolas Besson on 09 July 2014 - 04:45 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi All

 

I have  been able to build the Netduino Plus 2 firmware revision 4.2.2 with GCC yagarto tool using the wiki instructions, and I have discovered that the double.ToString API is not behaving as expected with this build. You can use the DFU file called myfirmware-forsanitycheck.dfu contained in the package provided in the wiki page in order to reproduce the issue I'm facing, as both the one provided and the one I have generated, behaves the same.

 

The following code snippet illustrate it :

            double dValue = 10.20;
            Debug.Print("-- value : " + dValue.ToString("F1"));
 
The expected result should be :
-- value : 10.2
but you get :
-- value : -545128520.00000000000000010
 
The strange thing is that the official 4.2.2 firmware (http://forums.netdui...2-firmware-v422) provided for the Netduino Plus 2 is behaving correctly.
 
So is anybody could give me some inputs to track down that issue and work on a fix ?
Is that could be related to : http://netmf.codeple...m/workitem/1385 ?
 
Thanks All
- Billounet



#57089 Adding Bitmap support through custom firmware

Posted by Nicolas Besson on 25 March 2014 - 08:16 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi DK

 

My guess was true, I have built a custom NetduinoPlus2 v4.2.2 firmware with the SPOT_Graphics in it and now I can display them to my panel.

I have enclosed the modified file in order to disable stub libraries and enable the real libs.

 

Note : it should also work on 4.3.1, but did not test it for now.

 

Enjoy!

 

-Billounet

Attached Files




#56617 Compiling Custom Netduino Firmware: Step-By-Step Instructions - Help

Posted by Nicolas Besson on 04 March 2014 - 09:25 AM in General Discussion

Hi,

 

I'm on the point to start the build of the 4.3.1 firmware of my N2P, and therefore, would like to know the progress of your work.

Any chance to get an updated tutorial ?

 

Regards

- Billounet




#56616 Source Control for Porting Kit and netduino

Posted by Nicolas Besson on 04 March 2014 - 09:21 AM in General Discussion

Hi Guys,

 

I would like to keep tracking of the modifications that I applied on the netduino firmware under source control software like GIT. As the BSP is not clearly split from the Microsoft Porting Kit source code, I would like to know how you are bring in up your repository in order to easily migrate to the comming release of the .Net Micro Framework ?

 

Any ideas is greatly appreciate.

 

Regards

- BIllounet




#56611 Adding Bitmap support through custom firmware

Posted by Nicolas Besson on 03 March 2014 - 08:56 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi DK

 

I'm trying to achieve that goal too, I need Bitmap class in order to easily draw Text onto my TFT panel. I had a quick look tonight on the content of the Porting Kit in revisoin 4.3.1, and identified the files that list the features to be included. My guess is that you might have to modify the following file :

netduinofirmware_source_4.3.1.0\MicroFrameworkPK_v4_3\Solutions\NetduinoPlus2\TinyCLR\TinyCLR.proj

 

From Line 114 to 117 it is specified that the Graphics name space is linked to a stub version :

  <ItemGroup>
    <PlatformIndependentLibs Include="Graphics_stub.$(LIB_EXT)" />
    <RequiredProjects Include="$(SPOCLIENT)\CLR\Graphics\dotNetMF_stub.proj" />
  </ItemGroup>
 
So it is probably the following modification to apply :
  <ItemGroup>
    <PlatformIndependentLibs Include="Graphics.$(LIB_EXT)" />
    <RequiredProjects Include="$(SPOCLIENT)\CLR\Graphics\dotNetMF.proj" />
  </ItemGroup>
 
I assume also that we might have to add entries for the SPOT_Graphics library to that file using the following info :
  <ItemGroup>
    <PlatformIndependentLibs Include="SPOT_Graphics.$(LIB_EXT)" />
    <RequiredProjects Include="$(SPOCLIENT)\CLR\Libraries\SPOT_Graphics\dotNetMF.proj" />
  </ItemGroup>

 

 

This is a suggestion, I haven't been able to launch the build yet. So if you have time, please try it and let me know.

 

- Billounet





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.