<?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>nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50104/nrf9160-lte-sensor-gateway</link><description>I have been using nRF9160: LTE Sensor Gateway to send data from nRF52832 and it all seems to work fine. However whenever i switch off the nRF52832 I receive an error as attached below. 
 
 Can you anyone assist on how to solve this error? 
 the nRF9160</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Jul 2019 10:28:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50104/nrf9160-lte-sensor-gateway" /><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200252?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 10:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c567083-3b4c-458b-a49b-3321745d119f</guid><dc:creator>Marshed</dc:creator><description>&lt;p&gt;I fixed it, by putting a condition in the beginning of the function&amp;nbsp;&lt;/p&gt;
&lt;p&gt;static u8_t on_received(struct bt_conn *conn,&lt;br /&gt; struct bt_gatt_subscribe_params *params,&lt;br /&gt; const void *data, u16_t length)&lt;br /&gt;{ &lt;br /&gt; if (length &amp;gt; 0) {&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200248?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 10:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57a3b3b-ad79-484a-937d-05ec2beade35</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;That does not make sense to me either. The call stack seems to be incomplete or corrupt. Are you sure that you have compiled the application with no optimizations in the compiler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200230?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 09:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f730d22-8685-4bb4-8edf-d449d69461a7</guid><dc:creator>Marshed</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1563959074134v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I am still surprised why is the on received function called when gatt is disconnected?&lt;/p&gt;
&lt;p&gt;can you assist?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200220?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 08:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b84179d-b210-4572-b521-7d96a25b0f78</guid><dc:creator>Marshed</dc:creator><description>&lt;p&gt;and how do i do that? put a breakpoint in disassembly and see the call stack, and check if but is uninitialized?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200149?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 17:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da3cf1d2-f9ae-4ea3-9d25-1dafd1ef9ea6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Well put a. Breakpoint in disassembly at this function to see the call stack of how the control reached there.&lt;/p&gt;
&lt;p&gt;Check if buf is uninitialized or NULL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200096?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 13:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7138a53-78e6-4b36-9e04-1fd3e782bca2</guid><dc:creator>Marshed</dc:creator><description>&lt;p&gt;when the bluetooth device is connected, I am sending the data to snprintf and it is correct data, and the programm is running fine. when the bluetooth device is disconnected, I do not expect this function to be called as nothing is being received from the bluetooth device.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200094?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 13:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:614751ae-b419-4125-8848-4c9dcecc6c10</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Is it possible that you are sending something invalid to snprintf?&amp;nbsp;&lt;span&gt;You can try to print buf and sizeof(buf) using printk in order to see what you are actually sending to snprintf.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200090?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 13:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc399fa2-98ab-4fbd-af87-96fc12c82d9d</guid><dc:creator>Marshed</dc:creator><description>&lt;p&gt;It seems that snprintf function resides here&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;e8c4: b513 push {r0, r1, r4, lr}&lt;br /&gt; len = snprintf(buf, sizeof(buf), &amp;quot;%d&amp;quot;, test);&lt;br /&gt; e8c6: 2106 movs r1, #6&lt;br /&gt; e8c8: f8b2 3001 ldrh.w r3, [r2, #1]&lt;/p&gt;
&lt;p&gt;how can i fix this problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200084?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 13:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e27c8f72-54aa-4d4c-9cfb-68c06f9329dd</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;You have to search for only e8c8, without 0x&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200074?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 13:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0140ebb-1230-4b36-812f-4d5b01a79a89</guid><dc:creator>Marshed</dc:creator><description>&lt;p&gt;I can&amp;#39;t find 0xe8c8 in the map file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200029?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 11:38:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab05abb3-f206-4195-9b2b-9f67eea5d10d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;It can be found in build\zephyr\zephyr.lst&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200008?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 11:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f90677d1-60d6-41e6-8f52-7a43f9a0dfd4</guid><dc:creator>Marshed</dc:creator><description>&lt;p&gt;and where can i find the map file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LTE Sensor Gateway</title><link>https://devzone.nordicsemi.com/thread/200005?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 10:53:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b488af-e6ba-472d-9d44-39150ad310c0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You can look into the map file and see which function resides at 0xe8c8 to get a better context on the hardfault&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>