<?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>Best place to get started</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98/best-place-to-get-started</link><description>Hello everyone. 
 I&amp;#39;ve got the nRF51822 Evaluation Kit and Dongle. The heartbeat demo is working, so I got the toolchain -- Nordic, Keil, Segger under Win7 -- set up correctly, as far as I can tell. 
 I need to interface with an I2C/TWI device as one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 May 2017 12:46:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98/best-place-to-get-started" /><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/532?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 12:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e83a0a-f102-4203-89d0-ab166cddb2b1</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;replying to a 4 year old thread isn&amp;#39;t going to get you anywhere. Start a new one, reference this thread if you want. A lot has changed in 4 years.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/531?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 10:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8523d3e6-14c7-4ab4-8220-c099fb1bec46</guid><dc:creator>Hust</dc:creator><description>&lt;p&gt;Hi all,
Currently, I&amp;#39;m doing project with MPU in notify mode 1 second period, before using this sd_twi_hw_master, I used twi_sw_master and it work well. However, I tried to use twi_hw_master and it got kind of confict so my cell phone can not see nRF51822, now I use this one, the cell phone recognize it but the data is not changing over time, it fixed, how can i solve this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/524?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 09:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d7a1d8-a1e0-4cc1-92d1-9fcd777ab248</guid><dc:creator>Chocol8</dc:creator><description>&lt;p&gt;Hello, I have faced the same problem. And code forces a system reset which starts the whole initialization from the begin. What changes you have made to prevent this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/530?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2016 13:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ec51838-2792-4acb-a21b-7a8f7091a108</guid><dc:creator>Vijayalakshmi</dc:creator><description>&lt;p&gt;can we use the same sd_twi_hw_master file along with s132 also?
and the link is broken. couldnt download&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/520?ContentTypeID=1</link><pubDate>Sun, 14 Dec 2014 23:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f611577-1f87-46c0-acdf-77419eafed33</guid><dc:creator>scytulip</dc:creator><description>&lt;p&gt;Hi, Alseth. This issue still exists in the newest SDK 7.1. But your code works fine. May you submit your code as a revision for furture PDKs? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/527?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2014 09:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77f237e2-dd6a-4c47-9364-d0113c89082b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I&amp;#39;ve re-posted the link. It should work now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/529?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2014 09:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5320e48-1919-4bcb-b770-0c70a138e620</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I&amp;#39;ve re-posted the link. It should work now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/528?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2014 12:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0548b919-9804-49df-b6e4-09b2749c07f3</guid><dc:creator>Marius R.</dc:creator><description>&lt;p&gt;The above link is broken (like every other link in this forum). Can anyone tell me how to get this file anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/526?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2014 03:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffa9c06a-7b26-401f-8e06-5a081513d570</guid><dc:creator>sky</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I also  met the problem , but the file &amp;quot;sd_twi_hw_master (2).c&amp;quot; has been passed ,can you send it again ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/525?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2013 18:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f3a0f0e-f8d1-4e75-adec-3ddc347d6829</guid><dc:creator>Jeff Craighead</dc:creator><description>&lt;p&gt;I&amp;#39;m starting to work on something similar with the S110 and the TWI and some other on chip hardware (SPI, temp sensor, GPIOs) that will interfere with the S110. As I&amp;#39;m reading the docs I don&amp;#39;t see anything obvious that says &amp;quot;Include XXX if using a SoftDevice, or use YYY if not.&amp;quot; So is there a simple list of SoftDevice safe APIs/includes for various hardware access? I see the SoC library functions documentation, but nothing there is related to TWI, SPI. I would assume that means they could be used without any problem (also Table 4 in the SoftDevice Spec), but as posted above TWI uses some PPI channels, which will cause problems. What&amp;#39;s the best guidance on accessing hardware while the SD is enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/523?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2013 20:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e000366-6a68-48b9-84a7-3e59a8420084</guid><dc:creator>Wobs</dc:creator><description>&lt;p&gt;right, the problem was something else I believe, now it works, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/522?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2013 12:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7d8e3b6-f966-4dab-b395-27f21d52ba39</guid><dc:creator>sd</dc:creator><description>&lt;p&gt;Are you using the SoftDevice? If so, use the code Håkon attached above. It worked for me!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/521?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2013 18:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b04ad89-03c0-4b7b-9d3d-6ce18fabe5a1</guid><dc:creator>Wobs</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the attached, modified, SoftDevice compatible TWI code with the BLE heart rate example for the pca10001. I initialize the TWI master like in this order:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
    uint32_t err_code;

    timers_init();
    gpiote_init();
    buttons_init();
	
    // Initialize TWI
    twi_master_init();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and the code fails at the asserts and forces a system reset...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    /*
    NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t)&amp;amp;NRF_TWI1-&amp;gt;EVENTS_BB;
    NRF_PPI-&amp;gt;CH[0].TEP = (uint32_t)&amp;amp;NRF_TWI1-&amp;gt;TASKS_SUSPEND;
    NRF_PPI-&amp;gt;CHENCLR = PPI_CHENCLR_CH0_Msk;*/
    err_code = sd_ppi_channel_assign(0,
                                     &amp;amp;(NRF_TWI1-&amp;gt;EVENTS_BB),
                                     &amp;amp;(NRF_TWI1-&amp;gt;TASKS_SUSPEND));
    ASSERT(err_code == NRF_SUCCESS);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What is the problem here, shall I initialize the TWI in a different order?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/516?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2013 10:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:490c71b3-7763-495c-9f2e-02ecdc489f4a</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;To clean things up, I&amp;#39;d be happy if you could evaluate the answer you have received and accept it if you feel it&amp;#39;s sufficient. If not, it might be useful to expand your question a little and provide further information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/519?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2013 12:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f219013c-2423-4ade-916c-34ccb4366515</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You can see the &amp;quot;twi_sw_master_example&amp;quot; in the SDK to see how to init the library (it uses bit banged TWI, but library calls are equal).
The &amp;quot;ble_app_template&amp;quot; has one button set up, which is &amp;quot;WAKEUP_BUTTON_PIN&amp;quot;. This must match the button on your board (GPIO 16 or 17, if my memory serves me right). Other than that there should be no other issues using this example on the ev board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/518?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2013 12:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a239d79f-6daa-452a-b1cc-eb3a70345754</guid><dc:creator>sd</dc:creator><description>&lt;p&gt;Thanks! The &amp;quot;ble_app_template&amp;quot; is under a different board; does that matter? Also, the TWI example is the API -- is there an example of how to set the pins and other registers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best place to get started</title><link>https://devzone.nordicsemi.com/thread/517?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2013 10:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a0afd3d-5bc2-47c8-b438-7080b32d5558</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you want to start with a new project and setup all your characteristics and services, there is a blank project called &amp;quot;ble_app_template&amp;quot;.&lt;/p&gt;
&lt;p&gt;The TWI uses some PPI channels, which is restricted when the SoftDevice S110 is active. Please use the attached .c file for TWI communication when using it with S110 BLE stack.&lt;/p&gt;
&lt;p&gt;The getting started is a small part of the user guide for the EV/DEV kit.
Here&amp;#39;s a quick link to the EV kit user guide:
&lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/18974/2/21312489"&gt;www.nordicsemi.com/.../21312489&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR
Håkon&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sd_5F00_twi_5F00_hw_5F00_master-_2800_2_2900_.c"&gt;sd_twi_hw_master (2).c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>