<?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>ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51443/esb-on-the-sparkfun-pro-nrf52840-mini</link><description>Hello! 
 I&amp;#39;m struggling to get ESB running on the Sparkfun Pro NRF52840 mini. I successfully set up the toolchain and can build and flash the board. This works fine. 
 I built the ESB example of the SDK and flashed it on the chip. Running the esb_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Sep 2019 07:19:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51443/esb-on-the-sparkfun-pro-nrf52840-mini" /><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/208580?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 07:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e675ac39-0133-4210-b1e9-8ef1851c85f4</guid><dc:creator>benkli</dc:creator><description>&lt;p&gt;I&amp;#39;ve already performed 1), this works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/208451?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 11:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f494b233-f5c8-4c17-80de-dab61c03c085</guid><dc:creator>Ali Rumane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Perfect!&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s try to&lt;/p&gt;
&lt;p&gt;1) Run a simple application without bootloader to test ESB protocol.&lt;/p&gt;
&lt;p&gt;2) Add bootloader for which we simply need to modify a part of code and memory location and are good to go.&lt;/p&gt;
&lt;p&gt;Erase complete memory of nRF52840 and flash ESB Tx example on one board and Rx example on another from&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;{SDK}\examples\proprietary_rf\esb_prx
{SDK}\examples\proprietary_rf\esb_ptx&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Test the program, include DEBUG while compiling if you encounter some error and let us know aout it.&lt;/p&gt;
&lt;p&gt;Remember to use correct board file parameters i.e. pca10056 which refers to nRF52840-DK; you can use the same config parameters even if you aren&amp;#39;t using DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/208390?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 07:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:647b2126-c499-4b08-bc76-9381c633e6c9</guid><dc:creator>benkli</dc:creator><description>&lt;p&gt;Thank you for your reply!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;At first i simply want the ESB examples, in the newest version of the Nordic SDK, running on the Sparkfun Pro NRF52840 Mini. I&amp;#39;ve been able to achieve this, but with the downside of loosing the bootloader. Because I&amp;#39;ve overwritten it. I placed the firmware directly at the beginning of the memory.&lt;br /&gt;&lt;br /&gt;My problem was in conjunction with the bootloader. I&amp;#39;ve setup the toolchain and IDE according to&amp;nbsp;&lt;br /&gt;&lt;a href="https://learn.sparkfun.com/tutorials/nrf52840-advanced-development-with-the-nrf5-sdk"&gt;https://learn.sparkfun.com/tutorials/nrf52840-advanced-development-with-the-nrf5-sdk&lt;/a&gt;&amp;nbsp;.&lt;br /&gt;I&amp;#39;ve also adapted the memory definitions. Now i programmed the board with the DFU via USB and it was successful. At first the contoller ran without a problem. The problem occured as soon as i started to use ESB. The MCU allways rested AFTER &amp;quot;&lt;span&gt;nrf_esb_write_payload(&amp;amp;tx_payload);&amp;quot;. I could switch a LED after this statement, but the MCU reseted anyway. I could also not read&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=3_0_0_4_2_6_10#register.RESETREAS"&gt;POWER.RESETREAS&lt;/a&gt;, because the JLINK debugger resets the chip itself. Well i could read it, but it was allways reseted by the SWD pin.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I don&amp;#39;t need the bootloader, it would just be more convenient. I would like to be able to update the firmware via USB. But it is not that important, this is just an evaluation-project. I&amp;#39;m trying to assess the NRF52840 and ESB for our application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/208301?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 16:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b6f29bf-8091-49e1-9d86-e29b90b78962</guid><dc:creator>Ali Rumane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&lt;/p&gt;
&lt;p&gt;Can you please describe the problem once again starting from how your application will work so that we can have rough idea about bootloader and stuff?&lt;/p&gt;
&lt;p&gt;What I can understand is you will be using&amp;nbsp;&lt;span&gt;ESB protocol for data transfer; your device restarts while writing data and you want bootloader(maybe to update firmware not sure via BLE or USB or some other purpose) for which you are having difficulty with flash region.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would you please describe your problem with bootloader like what do you want to achieve&amp;nbsp;or where things aren&amp;#39;t working?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/207441?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 14:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def23617-b294-48ec-b6af-ca7fa84115bf</guid><dc:creator>benkli</dc:creator><description>&lt;p&gt;Now i got one and I use it as a J-Link debugger. It seams like the problem is due to placement of the code in the flash memory. I overrode the bootloader and now it works fine. But I&amp;#39;m now not able to use the&amp;nbsp;&lt;span&gt;convenience of the bootloader.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/206503?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 07:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7d36ec-8158-4372-9dec-376ec175cb47</guid><dc:creator>benkli</dc:creator><description>&lt;p&gt;I think i found a problem. When i deleted the &lt;br /&gt;LDFLAGS += -Wl,--gc-sections in the makefile, the chip does not reset after sending. It does indeed send, i can receive it. But it somehow gets stuck after sending.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/206368?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 12:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85529ef5-9d47-47b8-8c02-c0db9a3f48a7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I recommend to get an nRF52840-DK which include a debugger:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/206344?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 11:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c86412-2540-404d-b844-a61a58c357d8</guid><dc:creator>benkli</dc:creator><description>&lt;p&gt;Thank you!&lt;br /&gt;Sadly I do not have a JLINK-debugger available, so I have to debug with LEDs. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After further investigation it seems, that the chip resets after the function call, i can switch an LED after the function, but the event handler is not called. The chip resets before that.&lt;/p&gt;
&lt;p&gt;Nevertheless thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/206304?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 09:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:556af68a-e07c-44ab-b3c7-70f85c68edcb</guid><dc:creator>Ali Rumane</dc:creator><description>&lt;p&gt;&lt;span&gt;Did you enable DEBUG in your application which prints app error cause in your application? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would suggest you read the following post for error handling.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also you an try to read the&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=3_0_0_4_2_6_10#register.RESETREAS"&gt;POWER.RESETREAS&lt;/a&gt;&lt;span&gt;&amp;nbsp;register on startup to see what the reset source is.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/206296?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 09:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39a8349d-589a-4c1e-9fc5-c13676b99843</guid><dc:creator>benkli</dc:creator><description>&lt;p&gt;Thank you for your answer!&lt;br /&gt;&lt;br /&gt;The chip also resets during receiving. I&amp;#39;m sending with the NRF52840-DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ESB on the Sparkfun pro NRF52840 mini</title><link>https://devzone.nordicsemi.com/thread/206291?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 09:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0a2fb2a-17c3-472b-bb45-911e589e40d7</guid><dc:creator>Ali Rumane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think you need Softdevice for ESB i.e Proprietary RF. Softdevice is for Bluetooth protocol stack.&lt;/p&gt;
&lt;p&gt;If you want to use ESB along with BLE DFU you can keep Softdevice in your memory and simply change Flash and RAM address as explained &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18970/app-without-softdevice"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can learn more about Softdevice &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Software#SoftDevices"&gt;here&lt;/a&gt;&amp;nbsp;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34519/what-is-a-soft-device"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>