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

Looking for a few ninja code contributors...


  • Please log in to reply
69 replies to this topic

#61 tim c

tim c

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 23 March 2013 - 03:04 PM

Working on getting it running in x86 and x64 as well as a CLI ..........



#62 tim c

tim c

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 23 March 2013 - 10:55 PM

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]Ok I have it compiling and working as x86 (32bit) and x64(64bit) against the proper ST dll's via this addition to the NetDFULib.csproj[/color][/font]

 

<ItemGroup Condition="$(Platform) == 'x64'">

  <Content Include="x64DLL*.dll">

  <Link>%(Filename)%(Extension)</Link>

  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

  </Content>

</ItemGroup>

<ItemGroup Condition="$(Platform) == 'x86'">

  <Content Include="x86DLL*.dll">

  <Link>%(Filename)%(Extension)</Link>

  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

  </Content>

</ItemGroup>

 

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]I have it upgraded to VS2012 but it should still work in VS 2010. I have used NuGet to add in log4net and Command Line Parser Library to the command line project.  Take a look at those links and then you should understand what they add. Use project properties -> debug to set the command line options for debugging. [/color][/font]

 

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);] [/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]So far the command line options are:[/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);] [/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]-f, --dfufile (Default: ) DFU Input file to be processed.[/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]-e, --Erase Firmware (Default: False) Erase the current Firmware[/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]-d, --Erase Deployment (Default: False) Erase the current Deployment[/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]-o, --Verbose Output (Default: True) Prints all messages to standard output.[/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]-v, --VID (Default: 1155) Vendor ID[/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]-p, --PID (Default: 57105) Product ID[/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]-s, --Silent nothing (Default: False) Nothing is output but everything is still logged is displayed (Overrides Verbose Output) [/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]-l, --logfile (Default: ) Full path to Logfile to use for logging[/color][/font]

[font="tahoma, geneva, sans-serif;"][color=rgb(0,0,0);]--help Display this help screen.[/color][/font]

 

Not all of them are working but if you give it a -f pointed to a DFU and have a device hooked up in DFU mode it will erase and load it. Of course they may not be the final command line items - they are just what I thought of today :)

 

More to come later.

 

Tim

 

Updated with latest code to not error if no app.config or log4net settings. I will upload the full code with the packages forlder if I can get more space on the forums - in the meantime you can get it here: http://sdrv.ms/YwzSN1

Attached Files



#63 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 24 March 2013 - 04:49 AM

Sweet, nice work Tim! The switches seem apropriate too me. Any chance of also being able to give VID and PID using hexadecinal notation 0xNNNN?

#64 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 30 March 2013 - 06:15 PM

You guys are amazing. I'm setting up a repo in BitBucket but have a question: Do you prefer Mercurial or Git? We've moved to Git for all of our new repros--but the tools for Mercurial are so much nicer. Is everyone okay with Git? If not, we can use Mercurial. Also...please post or PM me your BitBucket username so I can explicitly add you to the repo permissions. This is shaping up to be an awesome tool! Chris

#65 tim c

tim c

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 30 March 2013 - 06:31 PM

I prefer Git since support for it is getting baked into VS2012: http://visualstudiog...5e-d6724bdb980c

 

 

You guys are amazing.

I'm setting up a repo in BitBucket but have a question:

Do you prefer Mercurial or Git? We've moved to Git for all of our new repros--but the tools for Mercurial are so much nicer.

Is everyone okay with Git? If not, we can use Mercurial.

Also...please post or PM me your BitBucket username so I can explicitly add you to the repo permissions.

This is shaping up to be an awesome tool!

Chris



#66 tim c

tim c

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 24 May 2013 - 01:19 PM

You guys are amazing. I'm setting up a repo in BitBucket but have a question: Do you prefer Mercurial or Git? We've moved to Git for all of our new repros--but the tools for Mercurial are so much nicer. Is everyone okay with Git? If not, we can use Mercurial. Also...please post or PM me your BitBucket username so I can explicitly add you to the repo permissions. This is shaping up to be an awesome tool! Chris

Any update on this and SCC?



#67 ziggurat29

ziggurat29

    Advanced Member

  • Members
  • PipPipPip
  • 244 posts

Posted 29 May 2013 - 02:26 PM

you might just go ahead and set it up rather than waiting.

personally vs2012 is a little obstacle since I presently only have vs2010 installed.

either way I will have to do some more work on this for my regular project.



#68 nakchak

nakchak

    Advanced Member

  • Members
  • PipPipPip
  • 404 posts
  • LocationBristol, UK

Posted 30 May 2013 - 07:50 AM

Hey guys, bit late to the party but I am keen to get involved. I can see uses for GUI, cli and msbuild tasks.. Ultimatley as long as the core assembly has a well documented API the creation of of the cli and msbild tasks is a stubbing excercise. I would be very keen to see ways/develop easier ways to get nd's integrated into CI (continuous integration) systems. Another thing that would be awesome to make happen would be parallel deployments I.e. Flashing a usb hub full of nd's for production purposes. Nak.

#69 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 16 December 2013 - 11:40 AM

Hey CW2, hanzibal, nakchak, Steven Behnke, tim c and ziggurat29: I just wanted to publicly say thank you for the work you did to get the new Netduino Update application off the ground. Your enthusiasm and footwork are so appreciated. I'll posting the source of the new app (now Apache 2.0 licensed, with a completely rewritten STDFU managed-to-native interface) a bit later this week, if any of you would like to hack away and make it your own :) Thanks again for all your help. You are what makes the Netduino community so great. Chris

#70 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 10 January 2014 - 08:45 PM

Great to see that something useful came out of this and I hope you were able to reuse some of the code from this thread.

 

Also, thanks for recognizing our work, to which I believe ziggurat29 contributed the most.






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.