<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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>Program with serial number</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56261/program-with-serial-number</link><description>Hi. 
 
 I need to program for a set of NRF52832 with serial number from 403898368 to 403941418. 
 I am trying with nrfjprog --family NRF52 --memwr 0x10001080 --val %% --verify but i can not input each serial number by hand. how to link serial number one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jan 2020 14:28:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56261/program-with-serial-number" /><item><title>RE: Program with serial number</title><link>https://devzone.nordicsemi.com/thread/227928?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 14:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b099f92-5543-4fa1-bfce-92efdb791f7a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I would have used python for this, e.g. something like:&lt;/p&gt;
&lt;p&gt;import subprocess&lt;br /&gt;program &amp;quot;nrfjprog --family NRF52 --memwr 0x10001080 --val &amp;quot;+serialnumber+&amp;quot; --verify&amp;quot;&lt;br /&gt;subprocess.Popen(program)&lt;/p&gt;
&lt;p&gt;You may also consider using&amp;nbsp;&lt;span&gt;subprocess.run(program) instead.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You may check out:&amp;nbsp;&lt;a href="https://helloacm.com/execute-external-programs-the-python-ways/"&gt;https://helloacm.com/execute-external-programs-the-python-ways/&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>