<?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 handler crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27403/esb-handler-crash</link><description>I am trying to use ESB and BLE concurrently on NRF51822 SDK v11 SD130..
The BLE part is working fine but the ESB part keep causing error randomly.
I put a break-point in app_error_handler and found that this is related to nrf_esb_event_handler. 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Nov 2017 08:35:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27403/esb-handler-crash" /><item><title>RE: esb handler crash</title><link>https://devzone.nordicsemi.com/thread/108218?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 08:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8690e2bc-14b0-41a9-81dd-3cbd881960d9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Could you try to increase the length of the timeslots on the TX side?&lt;br /&gt;
That seemed to help for me. It has been running for a while now without any resets.&lt;/p&gt;
&lt;p&gt;I simply changed the TS_LEN_US and TX_LEN_EXTENSION_US defines at the top of esb_timeslot.c to 25000.&lt;/p&gt;
&lt;p&gt;This also allowed me to increase the MAX_TX_ATTEMPTS define, so I changed it to 16 to get less failed packets.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: esb handler crash</title><link>https://devzone.nordicsemi.com/thread/108217?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 02:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5861bcfe-941f-4d48-ba47-3c2ae6e74c9c</guid><dc:creator>Motti Ng</dc:creator><description>&lt;p&gt;Thank you for your helping.&lt;/p&gt;
&lt;p&gt;The issue seems related to the re-transmission in nrf_esb.c.&lt;/p&gt;
&lt;p&gt;NRF_ESB_EVENT_TX_FAILED is happened only when re-transmission is done and fail.&lt;/p&gt;
&lt;p&gt;However, when the timeslot ends before all re-transmissions are done, the re-transmission count is reset and thus re-transmission never reach the end within one timeslot.&lt;/p&gt;
&lt;p&gt;It seems I can avoid the reset issue by changing the re-transmission count to 0 (but still do re-attempts in esb_timeslot.c).&lt;/p&gt;
&lt;p&gt;Unfortunately, a new problem appear after that.
The time it takes to do one tx attempt is somehow lengthened gradually.
It takes like 10 seconds to do one tx attempt which is quite unfeasible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: esb handler crash</title><link>https://devzone.nordicsemi.com/thread/108216?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 14:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e98b632a-a3d3-4113-96dd-8d088a703eed</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I was able to reproduce the issue on my end, and it seems to happen pretty consistently as a result of the UART and ESB interrupts happening simultaneously.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think changing the S130 connection parameters will make a big difference. I tried to increase the advertising interval from 40ms to 400ms, and somehow it just made the issue worse...&lt;/p&gt;
&lt;p&gt;I will have to do some more digging next week to try to get to the bottom of this.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: esb handler crash</title><link>https://devzone.nordicsemi.com/thread/108219?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 02:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c8ee446-1b23-4f92-ba0f-4696c8fa3d5e</guid><dc:creator>Motti Ng</dc:creator><description>&lt;p&gt;What should I do to check the S130 stack?&lt;/p&gt;
&lt;p&gt;I am running one to one connection and the interval is 1second.&lt;/p&gt;
&lt;p&gt;I have directly copied the the example from github &lt;a href="https://github.com/NordicPlayground/nrf51-ble-micro-esb-uart"&gt;link text&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Yesterday, I tried to change the connection interval to 5seconds or to make it driven by button (pressed every 5~10s).&lt;/p&gt;
&lt;p&gt;It took longer time but the same error would still occur.&lt;/p&gt;
&lt;p&gt;When I add debug message in the event handler, it is found that nrf_esb_event_handler is NOT called such that it endlessly retry since m_tx_attempt-- is not called.&lt;/p&gt;
&lt;p&gt;The error appear when a new payload is added to fifo before the endlessly retrying message is transmitted.&lt;/p&gt;
&lt;p&gt;I will add this finding to the post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: esb handler crash</title><link>https://devzone.nordicsemi.com/thread/108215?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 11:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cd2ece9-9c22-48de-a340-3e5f1b7eaa5a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What is the S130 stack doing when the problem occurs?&lt;br /&gt;
How many links do you have running, and what are the connection intervals?&lt;/p&gt;
&lt;p&gt;Have you made any changes to the ESB event handler, or is it copied directly from the example?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>