<?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>How to Prepare and Run Example Code in the nRF5 SDK Under the nRF Connect Desktop Power Profiler App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82428/how-to-prepare-and-run-example-code-in-the-nrf5-sdk-under-the-nrf-connect-desktop-power-profiler-app</link><description>I’m trying to use the Power Profiler app v3.2.0 under nRFConnect for Desktop v3.9.1 with a PPK 1 attached to an nRF52 DK board (containing the 52832 processor), but am having trouble trying to get the ble app beacon example code in the nRF5 SDK v17.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Dec 2021 08:09:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82428/how-to-prepare-and-run-example-code-in-the-nrf5-sdk-under-the-nrf-connect-desktop-power-profiler-app" /><item><title>RE: How to Prepare and Run Example Code in the nRF5 SDK Under the nRF Connect Desktop Power Profiler App</title><link>https://devzone.nordicsemi.com/thread/342245?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 08:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1385b17c-2f1b-4fef-95da-0788f13839a2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="DataMate"]So I guess I cannot use that app to load the firmware I want to to test unless I know what hex files I need and where to load them in the address space for the device.[/quote]
&lt;p&gt;Yes, if you have a hex file that depends on other hex files that must also be programmed. The Segger Embedded Studio project files in the SDK includes dependencies like MBR or SoftDevice as additional load files, so they are also programmed when you program from SES. Also, most pre-built hex files that ship with the SDK are merged with hex files they depend on, but if you for instance build the app yourself or for some other reason has hex files that are not merged with dependencies, you need to explicitly flash those as well.&lt;/p&gt;
[quote user="DataMate"]By the way, when I tried to remove the PPK 1 board and just connect the DK board via USB to flash it, the log shows the following error in the Programmer app, even before I attempt to select a device:&amp;nbsp; &amp;quot;Error while probing devices, more details in the debug log: JLINKARM_DLL_ERROR (Origin: &amp;quot;Error when running nrfdl_enumerate&amp;quot;)&amp;quot;.&amp;nbsp; &amp;nbsp;I also couldn&amp;#39;t connect via&amp;nbsp;&lt;span&gt;SEGGER Embedded Studio.&lt;/span&gt;[/quote]
&lt;p&gt;I see. In this case you are using the DK &amp;quot;as normal&amp;quot;, without a PPK,&amp;nbsp;and that should work out of the box. It could be that the onboard debugger is in a bad state and that there is a need to power-cycle the board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Prepare and Run Example Code in the nRF5 SDK Under the nRF Connect Desktop Power Profiler App</title><link>https://devzone.nordicsemi.com/thread/342217?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 04:15:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a1b0c4e-9c70-4eee-b1fb-a0cb857809fe</guid><dc:creator>DataMate</dc:creator><description>&lt;p&gt;Thank you, Einar, that is indeed the case.&amp;nbsp; I am now able to program the DK board.&amp;nbsp; However, I found that dragging and dropping the hex file of the ble app beacon example to File Memory layout in the Programmer app and then clicking on Erase &amp;amp; write was&amp;nbsp;not successful&amp;nbsp;in&amp;nbsp;getting the program&amp;nbsp;to run properly, even &lt;span&gt;with the COM switch set to EXT on the PPK 1 board&lt;/span&gt;.&amp;nbsp; I had to connect to JLINK on the DK board via SEGGER Embedded Studio, selecting Build and Run under the Build menu and then Start Execution to flash&amp;nbsp;a&amp;nbsp;firmware image on to the DK board which would run successfully.&amp;nbsp; When I compared the hex file drag-and-drop method with the SEGGER Embedded Studio transfer method from within the Programmer app by reading the nRF52 DK device for each, it appears there is additional code from 0x00000000 - 0x00000AFF (MBR or application) and 0x00001000 - 0x0002596B (SoftDevice).&amp;nbsp; So I guess I cannot use that app to load the firmware I want to to test unless I know what hex files I need and where to load them in the address space for the device.&lt;br /&gt;&lt;br /&gt;By the way, when I tried to remove the PPK 1 board and just connect the DK board via USB to flash it, the log shows the following error in the Programmer app, even before I attempt to select a device:&amp;nbsp; &amp;quot;Error while probing devices, more details in the debug log: JLINKARM_DLL_ERROR (Origin: &amp;quot;Error when running nrfdl_enumerate&amp;quot;)&amp;quot;.&amp;nbsp; &amp;nbsp;I also couldn&amp;#39;t connect via&amp;nbsp;&lt;span&gt;SEGGER Embedded Studio.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Prepare and Run Example Code in the nRF5 SDK Under the nRF Connect Desktop Power Profiler App</title><link>https://devzone.nordicsemi.com/thread/342091?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 13:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e78eb97-b4de-4b0f-8a21-15350a59c6c9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems like you are making a mistake which is unfortunately very easy to make with PPK1, where you program the nRF on the PPK and not the nRF on the DK, which is what you wanted to do. The reason is that when you insert the PPK, the onboard debugger on the DK is connected to the nRF on the PPK, and this is also what gets programmed.&lt;/p&gt;
&lt;p&gt;What you need to do is to either remove the PPK when you want to program the nRF on the DK, or flip the COM switch to EXT before you program the DK, and then switch it back to DK when you want to use the power profiler. This will effectively select if the debugger is connected to the nRF on the DK (when you want to program it) or the power profiler kit (when you are going to use the power profiler).&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>