<?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>.dat file content from the ZIP packet information</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84465/dat-file-content-from-the-zip-packet-information</link><description>Hi Guys, 
 
 I am working on the nrf52840 and using SDK 17.1.0 version. 
 i am creating the zip file of my application code using &amp;quot;nrfutil pkg generate&amp;quot; 
 It give .json, .bin and one .dat file. 
 i want to know the details of the .dat file. 
 What exact</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Feb 2022 22:14:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84465/dat-file-content-from-the-zip-packet-information" /><item><title>RE: .dat file content from the ZIP packet information</title><link>https://devzone.nordicsemi.com/thread/351649?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 22:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc14dba-27fc-4eb6-affb-43e1d22bce47</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello R_S,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any good documentation on what the different bytes in the .dat file means, but you can try to generate a packet, and populate the fields differently, and by watching the outcome in the .dat file, you will recognize a few of them. you can also use &amp;quot;nrfutil pkg display pkg.zip.&lt;/p&gt;
&lt;p&gt;You can also look at the &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil"&gt;implementation of nrfutil on github&lt;/a&gt;, as this is probably the closest thing to the documentation that we have.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The last way to go about this would be to look at the implementation of the bootloader (SDK\examples\dfu\secure_bootloader\)&lt;/p&gt;
&lt;p&gt;In SDK 17.1.0, there is a function called&amp;nbsp;nrf_dfu_validation_init_cmd_execute() in nrf_dfu_validation.c.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a particular field you are curious about, or do you plan to edit something? If so, perhaps you are interrested in the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_customizing.html?cp=10_7_9"&gt;&amp;quot;Customizing the init packet&amp;quot; section in the nrfutil documentation on infocenter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>