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

Member Since 03 Mar 2014
Offline Last Active Jan 14 2015 01:36 PM
-----

Topics I've Started

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

10 July 2014 - 05:39 AM

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

Source Control for Porting Kit and netduino

04 March 2014 - 09:21 AM

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


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.