<?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>Sending large data in BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64349/sending-large-data-in-ble</link><description>Hi , 
 
 I have an Android app that acts as a Central mode and Nordic nRF9160 as peripheral mode. 
 Once the connection is established , App will read the characteristics from nRF9160. nRF9160 upon receiving the read request , responds to App with data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Aug 2020 09:33:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64349/sending-large-data-in-ble" /><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/264584?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 09:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c5005de-68d6-4be4-a75e-dbdae175e51a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Leo26781"]2020-08-12T14:47:11.181Z DEBUG modem &amp;lt;&amp;lt; ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:369&lt;br /&gt;2020-08-12T14:47:11.221Z DEBUG modem &amp;lt;&amp;lt; k_sem_take failed with err -11 &amp;quot;[/quote]
&lt;p&gt;This is related to the host (nrf91) not being able to communicate with the hci controller (nrf52).&lt;/p&gt;
&lt;p&gt;Did you update the hci_uart from ncs v1.3.0 as well?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In ncs v1.3.0, there&amp;#39;s an added reset line between the two nRFs, so each time you reset the nRF9160, it also resets the nRF52 on boot up. This is enabled by default when using boards nrf9160dk_nrf9160ns and nrf9160dk_nrf52840.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/264317?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 15:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4a3aa6b-ad1e-49c9-91fd-05fc4b9393ac</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;yeah , I tried that too like a&amp;nbsp; cloning into a new folder and did not work. the ninja version i&amp;#39;m using 1.10.0. May be I need to wait for the next version.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BTW , i found the workaround. I mean once we click &amp;quot;Configure &amp;quot;, the configuration is saved in the .config. If I close the SES and open again, I&amp;#39;m able to build the project.&lt;/p&gt;
&lt;p&gt;Also the error&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;2020-08-12T14:47:11.181Z DEBUG modem &amp;lt;&amp;lt; ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:369&lt;br /&gt;2020-08-12T14:47:11.221Z DEBUG modem &amp;lt;&amp;lt; k_sem_take failed with err -11 &amp;quot;&lt;/p&gt;
&lt;p&gt;Keeps repeating.&amp;nbsp; But when I reflash the hci_uart , it does not come. when I run my app , it comes. Not sure running my app corrupts the HCI or something ? Any idea to debug ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;Saravanan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/263794?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 10:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac4b545b-b33c-4dd8-9b63-65ea04494ad2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This looks to be a problem (corner-case) with ninja:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gitlab.kitware.com/cmake/cmake/-/issues/20274"&gt;https://gitlab.kitware.com/cmake/cmake/-/issues/20274&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you try to use another build folder and see if the problem disappears?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/263740?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 04:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1afb8e7c-38b7-4ba5-b1b5-19beaf977565</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was able to solve that by reflashing twice .&amp;nbsp; Now I&amp;#39;m trying to reconfigure the MTU size by comfiguring the Zephyr OS using menuconfig in SES. after configuration, I&amp;#39;m not able to build it:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Changed board to secure nrf9160dk_nrf9160 (NOT NS)&lt;br /&gt;-- Configuring done&lt;br /&gt;-- Generating done&lt;br /&gt;CMake Error:&lt;br /&gt; Running&lt;/p&gt;
&lt;p&gt;&amp;#39;C:/ProgramData/chocolatey/bin/ninja.exe&amp;#39; &amp;#39;-C&amp;#39; &amp;#39;D:/Workspace/nordic/Master/nrf/samples/nrf9160/lte_ble_gateway/build_nrf9160dk_nrf9160ns&amp;#39; &amp;#39;-t&amp;#39; &amp;#39;recompact&amp;#39;&lt;/p&gt;
&lt;p&gt;failed with:&lt;/p&gt;
&lt;p&gt;ninja: error: failed recompaction: Permission denied&lt;/p&gt;
&lt;p&gt;CMake Error:&lt;br /&gt; Running&lt;/p&gt;
&lt;p&gt;&amp;#39;C:/ProgramData/chocolatey/bin/ninja.exe&amp;#39; &amp;#39;-C&amp;#39; &amp;#39;D:/Workspace/nordic/Master/nrf/samples/nrf9160/lte_ble_gateway/build_nrf9160dk_nrf9160ns&amp;#39; &amp;#39;-t&amp;#39; &amp;#39;restat&amp;#39; &amp;#39;build.ninja&amp;#39;&lt;/p&gt;
&lt;p&gt;failed with:&lt;/p&gt;
&lt;p&gt;ninja: error: failed recompaction: Permission denied&lt;/p&gt;
&lt;p&gt;CMake Generate step failed. Build files cannot be regenerated correctly.&lt;br /&gt;Project load failed&lt;br /&gt;Reported error: solution load command failed (1)&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any idea ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With regards,&lt;br /&gt;Saravanan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/263538?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 08:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fdd75a6-279d-4595-af68-c4c422b4e67b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like its not able to successfully interface the nRF52840 device.&lt;/p&gt;
&lt;p&gt;Did you recompile hci_uart for board &amp;quot;nrf9160dk_nrf52840&amp;quot; and flash this one as well?&lt;/p&gt;
&lt;p&gt;The nRF9160 should be able to reset the nRF52840 device on boot up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/263528?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 07:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8dd3cc0-0310-4fb4-a030-b83e90e4a688</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I updated to v1.3.0 release.&amp;nbsp; I followed this link:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/lte_ble_gateway/README.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/lte_ble_gateway/README.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I flashed the&amp;nbsp; &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/hci_uart/README.html#bluetooth-hci-uart-sample"&gt;Bluetooth-HCI-UART&lt;/a&gt;&amp;nbsp;, and then flashed the lte_ble_gateway.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I reboot , my board resets with the following error:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2020-08-07T07:03:04.824Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.3.0-rc1-ncs1 ***&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;2020-08-07T07:03:04.827Z DEBUG modem &amp;lt;&amp;lt; LTE Sensor Gateway sample started&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;2020-08-07T07:03:04.831Z DEBUG modem &amp;lt;&amp;lt; Initializing Bluetooth..&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;2020-08-07T07:03:04.834Z DEBUG modem &amp;lt;&amp;lt; Establishing LTE link (this may take some time) ...&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;2020-08-07T07:03:14.821Z DEBUG modem &amp;lt;&amp;lt; ASSERTION FAIL [err == 0] @ D:/Workspace/nordic/ncsmaster/zephyr/subsys/bluetooth/host/hci_core.c:370&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Am I missing anything ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;Saravanan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/263197?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 11:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48b4122d-4769-46a2-bc4e-633b191d3eb6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user="Leo26781"][/quote]&lt;/p&gt;
&lt;p&gt;I checkout v1.3.0 now.&lt;/p&gt;
&lt;p&gt;Is that fine ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, that is fine. That is the latest stable release as of now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/263048?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 14:30:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c36eeda-1afb-4da8-93cc-10196808c6d6</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes doing that now. can you ping me the latest version. I checkout v1.3.0 now.&lt;/p&gt;
&lt;p&gt;Is that fine ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/263040?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 14:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90bac932-d92e-469f-93ca-1c03b96b0e77</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you try rebasing to a newer ncs version to see if the issue still occurs there?&lt;/p&gt;
&lt;p&gt;There has been a lot of fixes in ncs/zephyr since that release.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/263034?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 13:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f747f649-a752-4a0e-bd08-f92f8d9b1ed3</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The following are the version , I&amp;#39;m using :&lt;/p&gt;
&lt;p&gt;nrf - version - v1.0.0&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1596548302559v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262950?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 10:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:accf9c03-c8c4-4062-bb00-05a44ee00b9e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Leo26781"]In this line[/quote][quote user="Leo26781"]if (conn-&amp;gt;state != BT_CONN_CONNECTED) {[/quote]
&lt;p&gt;This does not correspond to the att.c that is located in zephyr (ncs tag v1.2.0 or v1.3.0). Which revision of ncs are you using?&lt;/p&gt;
&lt;p&gt;Could you share a bit more about what your application is doing (source code) ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262886?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 04:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd3a04de-c4a0-47fa-ac63-b9358f007617</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi Hakon ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I traced the second fault - 0x351be(I added some prints and the offset is changed) and it points to the following:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;$ arm-none-eabi-addr2line.exe -e zephyr.elf 0x351be&lt;br /&gt;D:/Workspace/nordic/ncs/zephyr/subsys/bluetooth/host/att.c:1960&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;In this line&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;if (conn-&amp;gt;state != BT_CONN_CONNECTED) {&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;BT_WARN(&amp;quot;Not connected&amp;quot;);&lt;br /&gt; return NULL;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;BTW if we see in the above logs , it gets connected and MTU is requested. MTU request was pending , then there is multiple connect and MTU request ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But from Android app , they try to connect only once.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any idea why is this behaviour ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262732?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 09:03:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:280dd934-5a88-4f2c-b615-7dbaab6bb868</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You can check the map file (buildfolder/zephyr.map) or do an addr2line lookup there as well:&lt;/p&gt;
&lt;p&gt;arm-none-eabi-addr2line.exe -e zephyr.elf 0x351e0&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However; if you have recompiled, and changed the .elf file, this is likely not valid anymore. So, let it run and get the &amp;quot;new&amp;quot; faulting address and see what it shows.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262612?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 15:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52348ca6-b9a4-4ab1-9902-78c584a62314</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi Hakon ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any way to debug the first fault. How to debug that ? I mean stack trace or something like that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262498?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 06:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56bd9bb3-bddc-4b8d-9851-ca09543304bd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the failing address in the second fault:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;0x351e0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;0x20026d0c is the RAM location of the thread it was executed from.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262482?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 02:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:814a027e-700c-49fa-8f1f-5ae227c9782e</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi Hakon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the second fault , it shows the following:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;$ arm-none-eabi-addr2line.exe -e zephyr.elf 0x20026d0c&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;reent.c:?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And yes the everytime I change the source , I do a Clean Solution , then BUIld Solution. So I guess source and elf matches.&lt;/p&gt;
&lt;p&gt;Also is there any way we can see the thread stack usage or something like that or debug this ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262450?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 14:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd559547-33a1-4e2c-b90f-407cdb97939d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But, in the first fault this is printed:&lt;/p&gt;
[quote user=""]2020-07-30T07:41:04.125Z DEBUG modem &amp;lt;&amp;lt; Current thread ID = 0x20020a48&lt;br /&gt;2020-07-30T07:41:04.127Z DEBUG modem &amp;lt;&amp;lt; Faulting instruction address = 0x20029374[/quote]
&lt;p&gt;This could be a overflow into that region, so it could be something that is located higher up that is actually causing the issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the next fault, this is printed:&amp;nbsp;&lt;/p&gt;
[quote user=""]2020-07-30T07:45:30.985Z DEBUG modem &amp;lt;&amp;lt; Current thread ID = 0x20026d0c&lt;br /&gt;2020-07-30T07:45:30.986Z DEBUG modem &amp;lt;&amp;lt; Faulting instruction address = 0x351e0[/quote]
&lt;p&gt;Does this one tell you anything related the fault?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that if you recompile or change the source in any way, the .elf file will change/reorder your addresses, so it is important that the firmware and .elf file always match each other.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262426?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 13:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6660548-cc14-492b-be95-54618763edb9</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes I tried addr2line:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;$ arm-none-eabi-addr2line.exe -e zephyr.elf 0x20020a48&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;D:\Workspace\nordic\ncs\nrf\samples\nrf9160\lte_ble_gateway\build_nrf9160_pca10090ns/../src/ble_peripheral.c:41&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;There have a k_thread declared like this:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;static struct k_thread my_thread_data;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;#define STACKSIZE 4096&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;static K_THREAD_STACK_DEFINE(threadstack,&amp;nbsp; STACKSIZE);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And I start the thread like this:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; led_tid = k_thread_create(&amp;amp;led_thread, threadstack,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; K_THREAD_STACK_SIZEOF(threadstack),&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; led_blink_thread,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NULL, NULL, NULL,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LED_PRIORITY, 0, K_SECONDS(7));&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Not sure whether am I missing something . Also it crashes always in the same place.&lt;/p&gt;
&lt;p&gt;BTW the heap size are as follows:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CONFIG_HEAP_MEM_POOL_SIZE=16384&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;CONFIG_MAIN_STACK_SIZE=8192&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt; I guess this size is more than enough&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;Leo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending large data in BLE</title><link>https://devzone.nordicsemi.com/thread/262408?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 12:44:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4a55201-3cd3-4233-b4ce-8c0177ed5c21</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Its hard to say what is failling here, but you can try to resolve the address using &amp;quot;arm-none-eabi-addr2line&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-addr2line -e build/zephyr.elf 0xFAILINGADDR&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This should give you a indication on where the fault occurred.&lt;/p&gt;
&lt;p&gt;It seems that you are first receiving a usage-fault, then on the next reboot; a hard fault. Is the fault and address where it faults changing between each reboot?&lt;/p&gt;
&lt;p&gt;If yes; Can you try to adjust your stack/heap size, by doubling them? via. configs CONFIG_MAIN_STACK_SIZE and&amp;nbsp;CONFIG_HEAP_MEM_POOL_SIZE.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>