<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://ez.analog.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>File Uploads</title><link>https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Thu, 20 Dec 2012 15:49:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads" /><item><title>new I2CWSD with command line options</title><link>https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/345</link><pubDate>Thu, 20 Dec 2012 15:49:12 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:5b4de071-2e4c-4b5a-9239-6b160f803755</guid><dc:creator>ADIApproved</dc:creator><slash:comments>0</slash:comments><description>
 &lt;p&gt;I2CWSD.exe can be used in batch files with command line parameters. The general format is as follows:&lt;br /&gt;I2CWSD.exe MultiWSD.ini af=Sample.hex aa=y ap=ADuC7023 fe=n fp=y fv=n fh=n&lt;/p&gt;
 &lt;p&gt;All parameters are optional and if not specified then defaults will be used.&lt;/p&gt;
 &lt;p&gt;The application name I2CWSD.exe is obviously necessary and must be first. &lt;/p&gt;
 &lt;p&gt;MultiWSD.ini, if specified, comes next and can be any complete path &lt;br /&gt;plus filename ending in .ini. If the .ini file does not exist a new blank one &lt;br /&gt;will be created resulting in default application parameters. If the .ini exists &lt;br /&gt;its contents will be used to provide the initial parameters of the application. &lt;br /&gt;Then the remaining parameters of the command line will be be used to replace the &lt;br /&gt;specified parameters. It is advised that a user has a look at a .ini file &lt;br /&gt;generated without command line parameters using the GUI. The user will notice &lt;br /&gt;the close link between the command line parameters and the parameters in the &lt;br /&gt;.ini file. This method would also be advisable to determine flash protection &lt;br /&gt;values if required. &lt;/p&gt;
 &lt;p&gt;The parameter specifying the .hex file to download comes next. It can be &lt;br /&gt;ommited if this file is already specified in the .ini file. If specified, this &lt;br /&gt;parameter starts with af= followed by the path and filename of the &lt;br /&gt;required .hex file. &lt;/p&gt;
 &lt;p&gt;aa= comes next if used. It would normally be used as it makes the downloading &lt;br /&gt;automatic without requiring operator input. This parameter is not stored in the &lt;br /&gt;.ini file. &lt;/p&gt;
 &lt;p&gt;Next follow the other parameters in any order. These consist of 2 lower case &lt;br /&gt;letters followed by the = character followed by the parameter value. &lt;/p&gt;
 &lt;p&gt;The parameters aa=, fe=, fp=, fv=, fh= and rr= require parameters of Yes or &lt;br /&gt;No. Only the first letter is significant with an &amp;#39;n &amp;#39; or &amp;#39;N&amp;#39; indicating No and &lt;br /&gt;any other first letter indicating Yes.&lt;/p&gt;
 &lt;p&gt;fe= stands for the Flash Mass Erase option.&lt;br /&gt;fp= stands for the Flash Program option.&lt;br /&gt;fv= stands for the Flash Verify option.&lt;br /&gt;fh= stands for the Flash Protect (Hide) option.&lt;br /&gt;rr= stands for the Run Autorun option. &lt;/p&gt;
 &lt;p&gt;fk= must be followed by the flash protection key to be used.&lt;br /&gt;fm= must be followed by the protection mask to be applied. &lt;/p&gt;
 &lt;p&gt;ap= must be followed by the part number.&lt;br /&gt;ra= must be followed by the start address to use. This is normally 0 to start from the beginning or 1 to start by issuing a software reset. &lt;/p&gt;
 &lt;p&gt;Once a particular .ini has been created with the desired options then this file &lt;/p&gt;
 &lt;p&gt;can be used directly without the need to again specify options in the command &lt;/p&gt;
 &lt;p&gt;line. Conversely if you wish to start off with the defaults you need to delete &lt;/p&gt;
 &lt;p&gt;the .ini file to create it anew with default values. &lt;/p&gt;
 &lt;hr /&gt;
 &lt;p&gt;The application returns an errror code to indicate success or errors as in &lt;/p&gt;
 &lt;p&gt;following table:&lt;/p&gt;
 &lt;p&gt;0&amp;nbsp; Success&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;1&amp;nbsp; Too many retries&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;2&amp;nbsp; File error&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;3&amp;nbsp; Memory range error&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;4&amp;nbsp; Communication error&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;5&amp;nbsp; Erase error&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;6&amp;nbsp; Undefined error&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;7&amp;nbsp; Write error&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;8&amp;nbsp; Verify error&amp;nbsp; &lt;/p&gt;
 &lt;p&gt;9&amp;nbsp; Protection error &lt;/p&gt;
</description><enclosure url="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/345/download" length="1550684" type="application/zip" /><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/i2c">i2c</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/aduc7x">aduc7x</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/downloader">downloader</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/aduc702x">aduc702x</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/i2cwsd">i2cwsd</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/aduc7xxx">aduc7xxx</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/aduc7023">aduc7023</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/i2c">i2c</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/aduc7x">aduc7x</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/downloader">downloader</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/aduc702x">aduc702x</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/i2cwsd">i2cwsd</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/aduc7xxx">aduc7xxx</category><category domain="https://ez.analog.com/microcontrollers/arm7-core-products/m/file-uploads/tags/aduc7023">aduc7023</category></item></channel></rss>