<?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>Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51554/trying-to-convert-my-nrf52840-dk-project-to-run-on-the-nrf52840-dongle</link><description>Win10 + Segger embedded studio 
 I can get the pca10059 blinky example to work. ( C:\nRF5_SDK_15.3.0_59ac345\examples\peripheral\blinky ) 
 I use the NRF connect Programmer app to upload the hex file. 
 I decided to convert my existing project to run</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Aug 2019 23:06:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51554/trying-to-convert-my-nrf52840-dk-project-to-run-on-the-nrf52840-dongle" /><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207220?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 23:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a532285-939f-4e4e-a15e-f8c9eb47a37b</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;&amp;gt;&lt;span&gt;I strongly urge you to use an existing BLE example project as the basis for any project that uses BLE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is what I did in the end.&lt;/p&gt;
&lt;p&gt;I spent a long time comparing the 2 folders but couldn&amp;#39;t find what was wrong with my application. Perhaps something in a config file or something. Hard to compare everything.&lt;/p&gt;
&lt;p&gt;When I moved my code into the 10059 ble_blinky example and added things like SAADC to the build, it worked. Which is fantastic because now I can make a fairly comparable prototype to do some real tests with.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I have just seen this post which shows me how I can connect the SWDIO and SWDCLD to the Dev Kit.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51179/debug-out-port-p20-on-nrf52840-dk-debugging-custom-board"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51179/debug-out-port-p20-on-nrf52840-dk-debugging-custom-board&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help. Very much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207181?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 13:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b088d60-5e5b-459f-820b-465d092f0618</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;There seems to be some delay in the &amp;quot;Reply&amp;quot; and &amp;quot;More&amp;quot; buttons appearing. It&amp;#39;s odd.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567172445471v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567172502110v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207180?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 13:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a385461-0c34-47a9-993e-22ccb0e5ce50</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Thanks, yes I did this, sort-of.&lt;/p&gt;
&lt;p&gt;I edited ble_app_beacon_pca10056 to make my current project in. Now I need to either bring in the differences from pca10059 blinky or move my changes into the pca10059 blinky. I just thought it was probably similar work either way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207178?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 13:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f320c189-eb8f-47ea-b264-efe7f922205e</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;I&amp;#39;ve just found this guide which looks like what I needed. I had the wrong RAM_START&amp;nbsp;&lt;span&gt;0x20001628&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And when I tried to run my changes I noticed that the Programmer app was marked as having an upgrade available. Which I installed. But now it says &amp;quot;The app only supports NRF connect 3.2.0 which does not match your currently installed version&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;oops.. I guess if I wait a few mins then this update will appear as well? Maybe I should make dinner&lt;/p&gt;
&lt;p&gt;thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207177?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 13:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c721c0f4-05a0-40b6-a420-0282320a8efd</guid><dc:creator>awneil</dc:creator><description>[quote userid="13562" url="~/f/nordic-q-a/51554/trying-to-convert-my-nrf52840-dk-project-to-run-on-the-nrf52840-dongle/207170"]&amp;nbsp;I strongly urge you to use an existing BLE example project as the basis for any project that uses BLE[/quote]
&lt;p&gt;&lt;strong&gt;Absolutely!!&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207175?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 13:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5894db3d-9635-4a0b-8359-1acb1c77f6d9</guid><dc:creator>awneil</dc:creator><description>[quote userid="79391" url="~/f/nordic-q-a/51554/trying-to-convert-my-nrf52840-dk-project-to-run-on-the-nrf52840-dongle/206840"] I cant see how to edit the post[/quote]
&lt;ol&gt;
&lt;li&gt;Click on &amp;#39;More&amp;#39;&lt;/li&gt;
&lt;li&gt;Click on &amp;#39;Edit.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567171731168v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207170?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 13:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bafcace8-1083-494c-9cae-9108087ef5b4</guid><dc:creator>haakonsh</dc:creator><description>[quote user="JasonR"]I cant see SWDCLK and SWDIO except on the tiny debug headers.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;They are the two weird plated indentations on the neck of the USB plug. See the hardware drawings I posted previously.&lt;/p&gt;
[quote user="JasonR"]It still fails in the call to&amp;nbsp;nrf_sdh_enable_request()[/quote]
&lt;p&gt;&amp;nbsp;If you enable the log module it will spit out the proper RAM settings when you call&amp;nbsp;&lt;span&gt;nrf_sdh_enable_request.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="JasonR"]Of course my app is different from the ble_blinky_10059 example so maybe I need to do more than just copy the settings from that example.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;I strongly urge you to use an existing BLE example project as the basis for any project that uses BLE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207101?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 10:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:842931a5-224c-4df7-aa1b-dc49c97e3500</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;YES, I&amp;#39;ve been &amp;#39;debugging&amp;#39; by flashing LED&amp;#39;s. oldschool.&lt;/p&gt;
&lt;p&gt;I realised last night that there are 3 debug interfaces but I&amp;#39;ve not got the 5x2 pin header that I need to solder on, nor do I have the cool needle pin segger cable. (I got the segger edu mini as well as the normal 52840 Dev Kit.) And I&amp;#39;m not sure where I&amp;#39;m supposed to solder the SWDCLK and SWDIO connections to on the NRF52840 Dev Kit. I cant see SWDCLK and SWDIO except on the tiny debug headers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyway, by flashing LEDs I found that my app crashes when I call&amp;nbsp;nrf_sdh_enable_request() and that this means it&amp;#39;s something to do with the RAM layout, as you say in your answer below. (I cannot see how I can reply to that comment, only this one.) I found other forum users talking about similar problems related to their calls to&amp;nbsp;&lt;span&gt;nrf_sdh_enable_request() crashing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve used a diff program to compare my project file with the ble_beacon project file. and taken all of the settings that looked relevant. I was able run the ble_blinky 10059 example and it runs fine. I can see it in nrf connect on my android phone&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I made project -&amp;gt; options -&amp;gt; Build-&amp;gt;&amp;quot;Memory segments&amp;quot; match the settings in ble_app_blinky_pca10059&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;FLASH RX 0x0 0x100000;RAM RWX 0x20000000 0x40000&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Also the&amp;nbsp;project -&amp;gt; options -&amp;gt;&amp;nbsp;Linker -&amp;gt; Section Placement Macros&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;FLASH_PH_START=0x0&lt;/li&gt;
&lt;li&gt;FLASH_PH_SIZE=0x100000&lt;/li&gt;
&lt;li&gt;RAM_PH_START=0x20000000&lt;/li&gt;
&lt;li&gt;RAM_PH_SIZE=0x40000&lt;/li&gt;
&lt;li&gt;FLASH_START=0x26000&lt;/li&gt;
&lt;li&gt;FLASH_SIZE=0xda000&lt;/li&gt;
&lt;li&gt;RAM_START=0x200022e0&lt;/li&gt;
&lt;li&gt;RAM_SIZE=0x3dd20&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I also checked that the&amp;nbsp;flash_placement.xml files are identical&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It still fails in the call to&amp;nbsp;nrf_sdh_enable_request()&lt;/p&gt;
&lt;p&gt;Of course my app is different from the ble_blinky_10059 example so maybe I need to do more than just copy the settings from that example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see in this comment that maybe I should look at the softdevice specification&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27219/unable-to-enable-the-softdevice-on-custom-board/107375#107375"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/27219/unable-to-enable-the-softdevice-on-custom-board/107375#107375&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567161875674v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;So I looked at the spec but I couldnt see what they were referring to.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/s140.html"&gt;https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/s140.html&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: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207067?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 08:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63fd09b4-c00c-4656-8ea3-3f8b2b3dcf66</guid><dc:creator>haakonsh</dc:creator><description>[quote user="JasonR"]&lt;span&gt;Which I guess is obvious because the&amp;nbsp;&lt;/span&gt;the dongle doesn&amp;#39;t have debug support.[/quote]
&lt;p&gt;You can debug the dongle by using&amp;nbsp;a DK&amp;#39;s OB debugger. Though you need to either populate the debug port connector footprint at the bottom of the dongle, or solder a couple of wires to VDD, GND, SWDIO, and SWDCLK. Then you do not even need a bootloader.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;See the dongle&amp;#39;s&amp;nbsp;&lt;a title="Hardware drawings" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dongle/UG/nrf52840_Dongle/hw_drawings.html?cp=3_0_5_5_0"&gt;Hardware drawings&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/207059?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 08:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0155b147-ac2c-4a43-8f68-49d031ec1248</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;It&amp;#39;s a classic mistake when staring out with Nordic, and you&amp;#39;ve&amp;nbsp;almost solved it already. &lt;br /&gt;The examples in &amp;quot;sdk/examples/peripheral&amp;quot; are not set up to use the SoftDevice, whereas the examples in &amp;quot;sdk/examples/ble_*&amp;quot; are.&lt;br /&gt;&lt;br /&gt;The SoftDevice is placed at the bottom of flash and forwards interrupts to the applications vector table, often placed at 0x26000, on top of the SoftDevice. You will also need to set the start address and size of the application&amp;#39;s RAM as the SoftDevice has a dedicated space at the bottom of RAM.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you copy the ble_app_blinky example from &amp;quot;sdk/examples/ble_peripheral/&amp;quot; and swap out the main.c file and necessary libraries with the blinky example from &amp;quot;sdk/example/peripheral/&amp;quot; you should be able to run the blinky example with SoftDevice flashed, as the ble examples have everything set up already.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/206860?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 12:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4519278e-7bb1-49e5-a2ff-b3bd998ac958</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;When I change my FLASH_START from 0x1000 to 0x26000 then&amp;nbsp;it works.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567080994907v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When I&amp;nbsp;write I see my new blink speed&lt;/p&gt;
&lt;p&gt;Is this the right thing to do?&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;ll try un-commenting my full application and hopefully it will work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/206856?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 12:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3ae54d9-8546-4fe7-9675-e2fab8d18074</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;I tried&amp;nbsp;changing my project to have&amp;nbsp;&lt;span&gt;debug_additional_load_file&amp;nbsp; &lt;/span&gt;&lt;span&gt;mbr_nrf52_2.4.1_mbr.hex instead of&amp;nbsp;s140_nrf52_6.1.1_softdevice.hex but it made no difference. Which I guess is obvious because the&amp;nbsp;&lt;/span&gt;the dongle doesn&amp;#39;t have debug support.&lt;/p&gt;
&lt;p&gt;I notice that if I try to upload just my application.hex without adding the softdevice.hex then it&amp;nbsp;actually&amp;nbsp;works. My code is running now. I can change the blink speed in my project and it works on the dongle.&lt;/p&gt;
&lt;p&gt;My actual application needs the softdevice though so I still need to figure out how to get the memory laid out correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to convert my NRF52840 DK project to run on the NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/206840?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 11:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c08b745-4168-4846-b6d9-7f06b3883793</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Sorry, a few typos. I cant see how to edit the post to fix them&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>