<?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>Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17107/stuck-in-while-loop-after-event-trigger</link><description>Hi, 
 I have a custom board of nrf51822 with no external crystal, neither 16 Mhz nor 32Khz. I am trying to use uart and app timers from SDK11 but when I start any app timer, LFCLK doesn&amp;#39;t start. When I force LFCLK to start using NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Nov 2016 12:47:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17107/stuck-in-while-loop-after-event-trigger" /><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65644?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2016 12:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b09b6c3-0452-4d21-b6c9-52b9f1777c13</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great that you got it working :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65643?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2016 11:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f06bfd5c-6325-4aba-b1fb-7d6fba7decdb</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;I got everything working. The issue was related to compiler optimization. Added volatile against all the variables which change in interrupts, everything works well now. Also if optimization is removed, for debugging, code works without volatile too. Thanks for help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65641?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 13:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7c66836-c20a-4e1d-a693-3ad3dbebd176</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not experiencing the same, I have the same behavior with Keil and GCC, I get the NRF_DRV_UART_EVT_TX_DONE when flow control is disabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65642?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 07:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31617b8e-ad15-4c28-bcb1-cc91723782af</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;yes, I dont&amp;#39;t get NRF_DRV_UART_EVT_TX_DONE even with flow control disabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65639?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2016 09:58:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da619faf-942e-437c-8902-72ee362b2664</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So with GCC you don&amp;#39;t get the NRF_DRV_UART_EVT_TX_DONE event if you have configured UART without flow control?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65640?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2016 15:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8873605c-b8a6-4fc0-8beb-f6f752789b21</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;The project works on Keil but doesn&amp;#39;t work on GCC. My setup is GCC on linux. Please check the project with GCC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65638?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 10:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b46f3cd-e15f-492c-b731-31eac7619cfa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I had a look at your project.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not experiencing the same behavior.&lt;/p&gt;
&lt;p&gt;When UART is configured without flow control I get the NRF_DRV_UART_EVT_TX_DONE event if I have a terminal open or not.&lt;/p&gt;
&lt;p&gt;When UART is configued with flow control I only get the NRF_DRV_UART_EVT_TX_DONE event if a terminal is open.&lt;/p&gt;
&lt;p&gt;This seems like expected behavior.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65636?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 09:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ac0b747-d2af-4058-a1aa-933845d6271a</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Edited the question to include project file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65635?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 09:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26640442-7a37-4784-9a16-c265443c14d2</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;will do and post shortly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65634?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 09:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d98ec9b8-b841-4ab8-8fd8-7c0da834a772</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Maybe you can make a smaller project that reproduces this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65637?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 05:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afa4a003-7c60-4b35-82b5-aaedc5803afa</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Hi, can you give me your email ID, the project structure is a bit messed up and the full project is large, I&amp;#39;ll share the project on gitlab with you. Please pm me your email ID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in while loop after event trigger</title><link>https://devzone.nordicsemi.com/thread/65633?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 09:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecd9a963-4697-4578-88ef-8972964e23c7</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Could you share your complete project so I can test it here? Zip it, edit your question, and attach the zip by clicking the paper clip symbol.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>