<?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>Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57255/mesh-dfu-example-52840---no-cmd-handler</link><description>Using 840DK and latest Segger (4.42) 
 Building Mesh DFU example: dfu_nrf52840_xxAA_s140_7_0_1 
 Latest Mesh SDK v4 
 Latest SDK 16 
 Build with no errors, when starting debug, loads app, soft device without any problems, an runs with following output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Feb 2020 09:43:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57255/mesh-dfu-example-52840---no-cmd-handler" /><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232988?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 09:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bacf6b4-13d3-48f0-a6ef-c44f82439033</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Armcc is provided by Keil (belong to ARM) and gcc is from gnu.org.&amp;nbsp;It&amp;#39;s hard to tell which one is better. But I don&amp;#39;t see a big difference in performance or code size.&lt;/p&gt;
&lt;p&gt;SES use GCC as the compiler. But it&amp;#39;s not a problem if you use the bootloader compiled with armcc and the application compiled with gcc. They are independent binaries.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232908?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 17:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11dc2a28-afa6-4448-9544-06196723833f</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;OK, got it loaded and running. Switched to 832DK, since we will be running on 52832&lt;/p&gt;
&lt;p&gt;Still not clear why you put both (gcc and non-gcc) bootloaders in the SDK. I want to push to our SVN just one of those, and selected armcc&lt;/p&gt;
&lt;p&gt;Is the ses using gcc compiler, or arm version? And from your experience, which one is better?&lt;/p&gt;
&lt;p&gt;So next will be testing of the DFU operation, but first need to do the first mesh, start with serial example ...&lt;/p&gt;
&lt;p&gt;Thanks, Piotr&lt;/p&gt;
&lt;p&gt;&amp;lt;t: 0&amp;gt;, main.c, 194, ----- Bluetooth Mesh DFU Example -----&lt;br /&gt;&amp;lt;t: 18213&amp;gt;, serial_handler_prov.c, 267, Generating encryption keypair...&lt;br /&gt;&amp;lt;t: 22949&amp;gt;, main.c, 200, Initialization complete!&lt;br /&gt;&amp;lt;t: 27594&amp;gt;, main.c, 221, Enabling serial interface...&lt;br /&gt;&amp;lt;t: 27597&amp;gt;, mesh_app_utils.c, 65, Device UUID (raw): 2DADD3BED4C6C847A870788934617ADD&lt;br /&gt;&amp;lt;t: 27600&amp;gt;, mesh_app_utils.c, 66, Device UUID : BED3AD2D-C6D4-47C8-A870-788934617ADD&lt;br /&gt;&amp;lt;t: 27609&amp;gt;, nrf_mesh_dfu.c, 538, RADIO TX! SLOT 0, count 255, interval: periodic, handle: FFFE&lt;br /&gt;&amp;lt;t: 27614&amp;gt;, nrf_mesh_dfu.c, 576, SERIAL TX!&lt;br /&gt;&amp;lt;t: 27620&amp;gt;, main.c, 229, DFU example started!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232898?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 16:06:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c042e34-6395-431e-b388-a53b3d1bd78b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;They are the same code, just compiled using different toolchain &lt;span&gt;gccarmemb or&amp;nbsp;armcc&lt;/span&gt;. You can use either of them.&amp;nbsp;&lt;br /&gt;The softdevice is the same as in the nRF5 SDK. No difference.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The serial bootloader is the bootloader that support serial interface. This mean this bootloader when running without app (or if the app switch to the bootloader) it can receive data via UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The non serial bootloader can be used with serial dfu application and also with non serial dfu application. But when it has to run standalone it can&amp;#39;t receive data via UART. When it&amp;#39;s used with serial interface&lt;/p&gt;
&lt;p&gt;Please follow this guide strictly to test the mesh DFU feature:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.0.0/md_doc_libraries_dfu_dfu_quick_start.html?cp=7_2_2_2_3"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.0.0/md_doc_libraries_dfu_dfu_quick_start.html?cp=7_2_2_2_3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232877?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 14:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15128622-0605-494a-93ef-a2ba796813f4</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;And following one, the serial bootloader is for the examples using serial, correct?&lt;/p&gt;
&lt;p&gt;It wold be serial and dfu with serial. The &amp;quot;nonserial&amp;quot; bootloaders are for all other ones, dfu w/o serial, beacon, etc.&lt;/p&gt;
&lt;p&gt;I do not want to get into cmake if possible, prefer to stay within SES, since I have a lot to debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232875?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 14:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ff9f77-00ee-45d2-8561-ad61889c86ef</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;Good, some progress...&lt;/p&gt;
&lt;p&gt;2 questions:&lt;/p&gt;
&lt;p&gt;Which bootloader is &amp;quot;better&amp;quot;: gccarmemb or armcc?&lt;/p&gt;
&lt;p&gt;Are the softdevices the same as in the sdk16? Why are those duplicated here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232870?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 14:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79db1293-fe60-4745-b4b7-3c4e4607d464</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Piotr,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would need to flash the bootloader in addition to the DFU application and the device page.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So 4 things need to be flashed:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;- softdevice&lt;/p&gt;
&lt;p&gt;- bootloader&lt;/p&gt;
&lt;p&gt;- dfu application (\examples\dfu&lt;span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;- device page.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The bootloader binary file can be found at&amp;nbsp;\Mesh_v4.0.0\bin\bootloader&lt;/p&gt;
&lt;p&gt;You can compile the bootloader as well, to compile the bootloader you do this on the commandline:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;cmake -G Ninja .. -DSDK_ROOT=[path to your nRF5 SDK] -DCMAKE_BUILD_TYPE=MinSizeRel -&lt;/span&gt;&lt;span&gt;DBUILD_BOOTLOADER&lt;/span&gt;&lt;span&gt;=ON&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232733?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 07:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7f49760-fcbf-4481-83a0-97a83e8b06ff</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;Questions would be:&lt;/p&gt;
&lt;p&gt;at what address the bootloader should be loaded at?&lt;/p&gt;
&lt;p&gt;how do you set the UICR value after uploading the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232730?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 07:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6a8ab3d-6d63-4386-9e68-9e6858218b51</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;Trying to load and execute:&amp;nbsp;dfu_nrf52832_xxAA_s132_7_0_1.emProject&lt;/p&gt;
&lt;p&gt;Current steps:&lt;/p&gt;
&lt;p&gt;use nrfjprog to load bin/app_green_s132.hex - it loads at address 0x1F000&lt;/p&gt;
&lt;p&gt;C:\work\svn\produkte\WIRELESS\mesh\nrf5_SDK_for_Mesh_v4.0.0_src\examples\dfu\bin&amp;gt;nrfjprog --program app_green_s132.hex&lt;br /&gt;Parsing hex file.&lt;br /&gt;Reading flash area to program to guarantee it is erased.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programming device.&lt;/p&gt;
&lt;p&gt;C:\work\svn\produkte\WIRELESS\mesh\nrf5_SDK_for_Mesh_v4.0.0_src\examples\dfu\bin&amp;gt;nrfjprog --memrd 0x1eff0 --w 8 --n 0x20&lt;br /&gt;0x0001EFF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |................|&lt;br /&gt;0x0001F000: 00 F0 00 20 B1 F5 01 00 D9 F5 01 00 DB F5 01 00 |... ............|&lt;/p&gt;
&lt;p&gt;load app through SES - it owerwrites the bootloader. Read back after app load:&lt;/p&gt;
&lt;p&gt;C:\work\svn\produkte\WIRELESS\mesh\nrf5_SDK_for_Mesh_v4.0.0_src\examples\dfu\bin&amp;gt;nrfjprog --memrd 0x1eff0 --w 8 --n 0x20&lt;br /&gt;0x0001EFF0: 62 FA A0 68 00 78 C0 F3 80 11 60 68 01 27 90 F8 |b..h.x....`h.&amp;#39;..|&lt;br /&gt;0x0001F000: 4D 20 00 2A 18 BF 00 29 04 D0 6A 79 02 F0 C0 02 |M .*...)..jy....|&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU Example 52840 - No CMD handler</title><link>https://devzone.nordicsemi.com/thread/232655?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 16:24:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16623b65-073f-4f1c-bbbd-d295b46ddb0a</guid><dc:creator>pkoenig</dc:creator><description>&lt;p&gt;Tried to upload bootloader, generated with python script, but this is too small for the bootloader, you call it device page. It looks like below. Is it correct?&lt;/p&gt;
&lt;p&gt;Looking for the image for the bootloader for the 52832, I want to use it with dfu example - I would need one with serial I/F for my controller device, and one without UART for the emergency lights.&lt;/p&gt;
&lt;p&gt;Piotr&lt;/p&gt;
&lt;p&gt;C:\work\svn\produkte\WIRELESS\mesh\nrf5_SDK_for_Mesh_v4.0.0_src\tools\dfu\bin&amp;gt;nrfjprog --program device_page_nrf52832_xxAA_s132_7.0.1.hex&lt;br /&gt;Parsing hex file.&lt;br /&gt;Reading flash area to program to guarantee it is erased.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programming device.&lt;/p&gt;
&lt;p&gt;C:\work\svn\produkte\WIRELESS\mesh\nrf5_SDK_for_Mesh_v4.0.0_src\tools\dfu\bin&amp;gt;nrfjprog --memrd 0xfeff0 --w 8 --n 0x80&lt;br /&gt;0x000FEFF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |................|&lt;br /&gt;0x000FF000: 04 01 08 08 03 00 12 00 00 70 02 00 00 00 0D 00 |.........p......|&lt;br /&gt;0x000FF010: 03 00 10 00 00 10 00 00 00 70 02 00 03 00 11 00 |.........p......|&lt;br /&gt;0x000FF020: 00 80 0F 00 00 60 00 00 05 00 02 00 CA 00 01 01 |.....`..........|&lt;br /&gt;0x000FF030: 59 00 00 00 01 00 01 00 00 00 FF FF 02 00 04 00 |Y...............|&lt;br /&gt;0x000FF040: FF FF FF FF FF FF FF 7F FF FF FF FF FF FF FF FF |................|&lt;br /&gt;0x000FF050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |................|&lt;br /&gt;0x000FF060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |................|&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>