<?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>bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22753/bootloader_secure_serial-and-nrfgo-studio-not-working</link><description>We are trying to get serial bootloader (DFU) working. I compiled a debug version of the experimental_bootloader_secure_serial in SDK13.0.0 to see what really happens there (pca10040 board). I am using UART-to-USB converter (FTDI) in pins 6 and 8. After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Jun 2017 07:52:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22753/bootloader_secure_serial-and-nrfgo-studio-not-working" /><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89453?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 07:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03d178ef-1be0-4ca7-a57e-1636cb016391</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;And for the other readers, let&amp;#39;s repeat here that you can&amp;#39;t use nRFgo Studio but you have to run the programming from command line as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil dfu serial -pkg application.zip -p COM# -fc 1 -b 115200
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And be sure to generate the application.zip with the private.pem -file which matches the public key compiled into the serial bootloader (located in dfu_public_key.c). See nrfutil documents to find out how to generate the needed public/private key pair.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89454?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 06:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:169f0b10-73e7-48ee-b98d-6d7496b9affc</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;No, it did not work without flow control.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89455?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 23:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64bb1ddd-41d8-4151-98e1-02ce220db1f1</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;@Jarmo, out of curiosity did you happen to have success with this example and modified bootloader without flow control?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89452?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23734ee5-52fc-4d26-ad8f-2bfcd3af6756</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Yep, the CTS pin was connected into a wrong pin of the FTDI module. Now that I connected it into correct RTS pin, I really succeeded to upload a zip file into the pca10040 board! Great! Thanks again :) Now we just need to do the same with our own board...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89449?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 11:59:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb893b61-40d0-4c48-870c-35958562017b</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Ok, good. Now I tried with flow controls, at least I hope the FTDI module handles them correctly. The result is even worse, bootloader just responds with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:WARNING:Received unsupported OP code 09
:DEBUG:Sending Response: [0x9, 0x3]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And the nrftool dumps out following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ nrfutil dfu serial -pkg ./dfu_test_app_hrm_s132.zip -p COM9 -b 115200 -fc 1
Traceback (most recent call last):
&amp;lt;...trash removed...&amp;gt;
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 83, in _dfu_send_image
    self.dfu_transport.open()
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 190, in open
    if self.__ping() == False:
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 314, in __ping
    raise NordicSemiException(&amp;#39;No ping response&amp;#39;)
pc_ble_driver_py.exceptions.NordicSemiException: No ping response
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So it does not work, still. Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89441?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 07:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eeeadce-95b9-45b0-91a0-5d8a7c8e8113</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;No, there is no dependency between the serial bootloader and the S132. The serial bootloader does not enable the SoftDevice or use the sd_flash_-API to write to flash, instead it uses the NVMC directly. So yes, you should be able to use the Serial bootloader from SDK 13 with the S132 v3.0.0 from SDK v12.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89443?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 07:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fafd543-c486-41ab-a7c1-c18e20402ca3</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;One related question: why there is that dependency between serial bootloader and the s132 soft device? I mean, the serial bootloader is named as &amp;quot;secure_dfu_serial_s132&amp;quot; (sdk 13). If the bootloader really needs the s132 soft device, can we still use sdk 12 version of the s132? Our firmware is compiled against sdk 12 and we don&amp;#39;t want to port it for sdk 13 at the moment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89442?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 13:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7da587a5-d4a5-480f-81cc-5ad141ad6d59</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help, let me know how it goes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89445?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 12:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81cd5441-d69d-486b-9469-17aa902b9e6d</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Yep, we have to try with flow controls on. There is no wiring at the moment. Thank you for support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89444?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 12:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d8309f-b276-4749-81cf-d6fcdf3ecb98</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If I perform a Serial DFU using your serialtest.zip and nrfutil v2.3.0 with the following command&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil dfu serial -pkg serialtest.zip -p COM27 -fc 1 -b 115200
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;then I get the following error&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pc_ble_driver_py.exceptions.NordicSemiException: Response Code InvalidObject
Failed to execute script __main__
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which is expected since you&amp;#39;ve signed the image with your private key and I do not have the corresponding public key in my bootloader. If I generated a new private-public pair and create a new zip with serialtest.hex using the following command&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil pkg generate --application serialtest.hex --application-version 3 --hw-version 52 --sd-req 0x98 --key-file private_key.pem serial_test_pkg.zip
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Performing a Serial DFU with the same command as the first time, then the DFU process starts and completes with no errors. Could you try to enable Flow Control?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89450?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 11:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49e47254-6b58-4d65-8dbc-d625a216faf1</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Yep, I added those attachments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89446?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 11:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85eb9699-6bfd-4ff8-b501-edb194daa517</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;No, I have not seen that error before. Could you attach the zip file you&amp;#39;ve generated as well as the hex file to this question so that I can try to reproduce the issue here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89448?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 11:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ead1892b-03b5-4830-b2f2-9f4677b5ec7e</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Now that I changed sd-req into 0x98 to match the soft device in sdk 13.0.0, there is no error in bootloader side, but the nrfutil crashes with the following messages:&lt;/p&gt;
&lt;p&gt;$ nrfutil dfu serial -pkg c:/aistin-firmware/core-engine/core-engine.zip -p COM9 -b 115200 -fc 0&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Traceback (most recent call last):
&amp;lt;...trash removed...&amp;gt;
  File &amp;quot;c:\python27\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 347, in __calculate_checksum
    (offset, crc) = struct.unpack(&amp;#39;&amp;lt;II&amp;#39;, bytearray(response))
TypeError: &amp;#39;NoneType&amp;#39; object is not iterable
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What could be reason for that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89447?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 10:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36acd695-331f-496c-8e2f-79ec191d3e9f</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Yes, I have now tried with the sdk example zip-package using &amp;quot;NRF_DFU_DEBUG_VERSION&amp;quot; of the public key in the bootloader code. Then, I also tried with two self-generated key-pairs, putting the public key into the dfu_public_key.c, and recompiling the bootloader. Then, I generated the package with command:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil pkg generate --hw-version 52 --sd-req 0x8c --application-version 3 --application _build/application.hex --key-file private.pem application.zip
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But with no luck. The result is always as shown above, with pair of unsupported OP codes and failing with &amp;quot;Prevalidate failed!&amp;quot;. Well..?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bootloader_secure_serial and nRFgo Studio not working</title><link>https://devzone.nordicsemi.com/thread/89451?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 08:44:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fb0d153-e308-445e-8522-83585ba0c4ce</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Jarmo, nRFGo Studio does not support Secure Serial DFU, it only supports the Legacy Serial DFU. In order to perform Secure Serial DFU you need to use nrfutil v2.3.0, like you did in the EDIT section of your question. The Prevalidate error is caused by the signature of the dfu_test_app_hrm_s132.zip cannot be verified with the public key in the bootloader. Have you created a private-public key pair and replaced the public key in the default bootloader example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>