Working on getting it running in x86 and x64 as well as a CLI ..........
Looking for a few ninja code contributors...
#61
Posted 23 March 2013 - 03:04 PM
#62
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
Posted 24 March 2013 - 04:49 AM
#64
Posted 30 March 2013 - 06:15 PM
#65
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
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
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
Posted 30 May 2013 - 07:50 AM
#69
Posted 16 December 2013 - 11:40 AM
#70
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