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.
Photo

Adding Bitmap support through custom firmware

bitmap firmware

Best Answer Nicolas Besson, 25 March 2014 - 08:16 AM

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

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 dlkay0

dlkay0

    New Member

  • Members
  • Pip
  • 4 posts

Posted 04 February 2014 - 08:40 AM

I've followed the guide http://learn.adafrui...tduino/overview to compile new firmware for my Plus 2 with support for NeoPixels, but I'm still unable to get Bitmap support after adding the features to the TinyCLR.proj file and rebuilding.

 

Does anyone have any suggestions?  I've spent several hours checking and rechecking that I've updated the firmware project files correctly and even saw the JPG and BMP support get compiled, but I still get a NotSupported Exception when I try to instantiate a Bitmap.

 

-DK

 



#2 Nicolas Besson

Nicolas Besson

    New Member

  • Members
  • Pip
  • 9 posts

Posted 03 March 2014 - 08:56 PM

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



#3 Nicolas Besson

Nicolas Besson

    New Member

  • Members
  • Pip
  • 9 posts

Posted 25 March 2014 - 08:16 AM   Best Answer

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



#4 dlkay0

dlkay0

    New Member

  • Members
  • Pip
  • 4 posts

Posted 14 April 2014 - 06:40 AM

Thanks Billounet. 

 

I'll try that in the next couple of weeks.  I've let my project sit for a few months and am considering the 4.3.1 NP2 firmware now that it is available.  My first attempt says I've exceeded LR_FLASH by 150k+

 

-DK



#5 dlkay0

dlkay0

    New Member

  • Members
  • Pip
  • 4 posts

Posted 01 September 2014 - 11:41 PM

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

 

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



#6 Nicolas Besson

Nicolas Besson

    New Member

  • Members
  • Pip
  • 9 posts

Posted 03 September 2014 - 07:22 AM

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







Also tagged with one or more of these keywords: bitmap, firmware

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.