<?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>TWI_scanner example for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43749/twi_scanner-example-for-nrf52840-dongle</link><description>Hi, I try to adopt the twi_scanner example from the peripheral examples to the nRF52840 Dongle. 
 I followed the process in the following link with no success though. 
 https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/nrf52840-dongle-programming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Feb 2019 12:47:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43749/twi_scanner-example-for-nrf52840-dongle" /><item><title>RE: TWI_scanner example for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/171386?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 12:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d19c1af2-455c-4b8a-b13a-937e11939aeb</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Yes it absolutely works that way. I just thought I should change the flash_placement file with the one of pca10059 (for the dongle) too. That&amp;#39;s why it did not work. &lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI_scanner example for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/171347?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 11:32:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc36de64-23e9-4f16-b4c4-ec08f8d8528a</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad you made it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit unsure on what steps you took when you did this.&lt;/p&gt;
&lt;p&gt;I made it work by doing the following:&lt;/p&gt;
&lt;p&gt;1) I made a copy of the folder &lt;strong&gt;pca10056 &lt;/strong&gt;in the &lt;strong&gt;examples\peripheral\twi_scanner&lt;/strong&gt; folder, and renamed it &lt;strong&gt;pca10059.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2. I opened the project found in the &lt;strong&gt;ses &lt;/strong&gt;folder, and just followed the tutorial:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Update the Preprocessor Definitions by removing &lt;code&gt;BOARD_PCA10056&lt;/code&gt; and inserting &lt;code&gt;BOARD_PCA10059&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c2cfeecb6ade4014a0c7001ab2cca29d/pastedimage1550230146493v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Adjust the linker configuration. Set &lt;code&gt;FLASH_START=0x1000&lt;/code&gt; to place the application right above the MBR. You should also set&amp;nbsp;&lt;code&gt;FLASH_SIZE=0xDF000&lt;/code&gt; to make sure that there is room for the bootloader at the end of the flash. Set &lt;code&gt;RAM_START=0x20000008&lt;/code&gt;, as the first 8 bytes are used by the MBR for interrupt forwarding and adjust the size accordingly by setting &lt;code&gt;RAM_SIZE=0x3FFF8&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c2cfeecb6ade4014a0c7001ab2cca29d/pastedimage1550230146494v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;3) I had to defined two pins in &lt;strong&gt;pca10059.h (components\boards\pca10059.h)&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Arduino board mappings
#define ARDUINO_SCL_PIN             NRF_GPIO_PIN_MAP(0,13)    // SCL signal pin
#define ARDUINO_SDA_PIN             NRF_GPIO_PIN_MAP(0,15)    // SDA signal pin&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Since these two are used in the &lt;strong&gt;twi_init()&lt;/strong&gt; function in &lt;strong&gt;main.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI_scanner example for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/171325?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 10:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a15b6a6a-1cc1-41ca-87ab-4494e432978b</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi, I think I made it.&lt;/p&gt;
&lt;p&gt;Initially, I copied the pca10059 flash_placement file&lt;/p&gt;
&lt;p&gt;of the blinky project inside my twi_dongle project.&lt;/p&gt;
&lt;p&gt;But when I changed it with the one of the pca10056( blinky project) the whole thing worked .&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t get it. How does the pca10059 (dongle)&amp;nbsp; work with the flash_placement file of pca10056&lt;/p&gt;
&lt;p&gt;but not with the flash_placement file of pca10059?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI_scanner example for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/171312?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 09:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a63bcaea-eac0-4f1e-9c28-346b2aaf2e4f</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Which part gave you problems?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>