<?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>ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39537/ble-freertos---ble_lbs_on_button_change-unknown-function</link><description>I am trying to run the blinky example together with freertos (nRF52840 pDK, pca10056, segger studio), so I took the hrs_freertos example and added ble_lbs service from blinky example. I also do not use bsp support. Led characteristics works fine, but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Nov 2018 08:48:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39537/ble-freertos---ble_lbs_on_button_change-unknown-function" /><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/159366?ContentTypeID=1</link><pubDate>Wed, 28 Nov 2018 08:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:251a75a8-d206-4dd2-8a5d-ba443dda10a9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am not sure why the hooks did not get triggered. something with the logger task using too much memory which needs investigation i guess. But without the logger task, did everything work normally?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/159313?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 22:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0c4de50-ecbc-4cc9-8d70-d03b210a74a1</guid><dc:creator>jardis</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;obviously there is some problem, when also &amp;quot;LogTask&amp;quot; is running.&lt;/p&gt;
&lt;p&gt;It is true, that if you turn it off, the other task (and the idle task) will run &amp;quot;normally&amp;quot;.&lt;/p&gt;
&lt;p&gt;But just increase of heap size, doesn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not an expert for the FreeRTOS, but I believe, that task stack is allocated from&amp;nbsp;HEAP.&lt;/p&gt;
&lt;p&gt;Even if you increase the heap and increase the allocated LOG task stack it doesn&amp;#39;t help (and there is plenty of RAM available)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And all this settings are the &lt;strong&gt;same&lt;/strong&gt; in debug and release (but the alignment of the code is different as there are different optimizations involved).&lt;/p&gt;
&lt;p&gt;I also enabled:&lt;/p&gt;
&lt;p&gt;#define configCHECK_FOR_STACK_OVERFLOW 1&lt;br /&gt;#define configUSE_MALLOC_FAILED_HOOK 1&lt;/p&gt;
&lt;p&gt;in FreeRTOSConfig.h and appropriate functions in main.c:&lt;/p&gt;
&lt;p&gt;void vApplicationMallocFailedHook (void)&lt;br /&gt;void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )&lt;/p&gt;
&lt;p&gt;but I never capture any of upper errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/159006?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 12:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:804bd7ab-d0db-4045-bc81-219f7d655dd8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Jardis,&lt;/p&gt;
&lt;p&gt;I took your main.c and I could see the hardfault. This was because of the stack corruption as the logs were using too much of the free stack.&lt;/p&gt;
&lt;p&gt;I disabled the logs in sdk_config.h file&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and also doubled the below in FreeRTOSConfig.h file&lt;/p&gt;
&lt;p&gt;#define configTOTAL_HEAP_SIZE&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;( 4096 * 2 )&lt;/p&gt;
&lt;p&gt;no more hardfaults after this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/158730?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 21:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b85d6cc8-7ef3-4b41-b14f-9d3c8bd04c51</guid><dc:creator>jardis</dc:creator><description>&lt;p&gt;It works with your hex - I left the the softdevice from my project.&lt;/p&gt;
&lt;p&gt;I also tried with the latest SDK - 15.2.0 - the same error - now I get some more data about Hardfault and it is UNALIGNED MEMORY ACCESS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The log is:&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: BLE Blinky FreeRTOS example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: BLE EVT Handler: 16&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: BLE EVT Handler: 80&lt;br /&gt;&amp;lt;info&amp;gt; app: led_write_handler&lt;br /&gt;&amp;lt;info&amp;gt; app: Received LED ON!&lt;br /&gt;&amp;lt;info&amp;gt; app: BLE EVT Handler: 80&lt;br /&gt;&amp;lt;info&amp;gt; app: On conn params evtr&lt;br /&gt;&amp;lt;info&amp;gt; app: BLE EVT Handler: 18&lt;br /&gt;&amp;lt;info&amp;gt; app: Button pressed&lt;br /&gt;&amp;lt;info&amp;gt; app: Send button state change 1.&lt;br /&gt;&amp;lt;info&amp;gt; app: On button event handler exit - code is.&lt;br /&gt;&amp;lt;info&amp;gt; app: 0&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: HARD FAULT at 0x0002BEC6&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R0: 0xDB681B4B R1: 0x00000979 R2: 0x200070C8 R3: 0x200070C8&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: R12: 0x20006D68 LR: 0x0002BEB9 PSR: 0x8100000E&lt;br /&gt;&amp;lt;error&amp;gt; hardfault: Cause: The processor has made an unaligned memory access.&lt;br /&gt;&amp;lt;info&amp;gt; app: gatt_init&lt;br /&gt;&amp;lt;info&amp;gt; app: BLE Blinky FreeRTOS example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The I tried the latest Segger Embedded Studio&amp;nbsp; - did not work.&lt;/p&gt;
&lt;p&gt;Then I changed Code options for&amp;nbsp;Unaligned Access Support. - no luck.&lt;/p&gt;
&lt;p&gt;Then I changed optimization level to 3 (for Release) and it worked.&lt;/p&gt;
&lt;p&gt;Then I also changed Configuration to Debug - and optimization level is Debug (probably 0 ?) and it also worked.&lt;/p&gt;
&lt;p&gt;Then I set back to Release and Opt. Level to None and get the same error again.&lt;/p&gt;
&lt;p&gt;So basically now I have working option, but I am not totally satisfied as I do not know exactly why this error occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/158670?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 14:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f59c780-4a28-47e1-b900-8d3344fbb068</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Attached compiled hex file for PCA10056. Can you test it on your board?&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-db5bb6b736234987bc7d6938f6a2e2b0/ble_5F00_app_5F00_blinky_5F00_freertos_5F00_pca10056_5F00_s140.hex"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_blinky_5F00_freertos_5F00_pca10056_5F00_s140.hex&lt;/a&gt; (remember to also flash the softdevice, as it is not merged with the application)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/158498?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 19:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de762696-c8c4-4f0b-839d-783a352ad112</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you tested with a fresh copy of the SDK, just to make sure there is no changed library files? I will send you compiled hex-files tomorrow that is working on my bord. This way we can test if there is something with the enviroment or something else that is wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/158492?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 18:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7464bfea-90a9-42c3-8c1f-0056de6d483c</guid><dc:creator>jardis</dc:creator><description>&lt;p&gt;I just got new HW - this time nRF52 DK (pca10040 v1.2.4 2018/38).&lt;/p&gt;
&lt;p&gt;Build the same project with S132 (s132_nrf52_6.0.0_softdevice.hex) and the same problem is still there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/156548?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 21:35:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f40360d-b83d-4880-a6e6-0ee57b7cea5b</guid><dc:creator>jardis</dc:creator><description>&lt;p&gt;&lt;span&gt;SDK 15.0.0. -&amp;nbsp;s140_nrf52_6.0.0_softdevice.hex&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF52840 PDK v091 (2017.14)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SEGGER Embedded Studio for ARM&amp;nbsp;Release 3.40&amp;nbsp;&amp;nbsp;Build 2018052200.36079&amp;nbsp;Windows x64&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Samsung GTI-9300 Android 4.3, but it is the same with IPhone 6s.iOS12.01 (the status of led after connection is also wrong on Android and iPhone)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will order the latest DK and try with latest SDK.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/156463?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 10:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a85d0f6-7514-4f12-a5eb-42a83966981f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;This is the output I get from the log when running your example (switched between notifications enabled and disabled in the middle):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: HRS FreeRTOS example started.
&amp;lt;info&amp;gt; app: Fast advertising.
&amp;lt;info&amp;gt; app: BLE EVT Handler: 16
&amp;lt;info&amp;gt; app: Connected
&amp;lt;info&amp;gt; app: BLE EVT Handler: 18
&amp;lt;info&amp;gt; app: BLE EVT Handler: 18
&amp;lt;info&amp;gt; app: BLE EVT Handler: 80
&amp;lt;info&amp;gt; app: On conn params evtr
&amp;lt;info&amp;gt; app: BLE EVT Handler: 18
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 80
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 8
&amp;lt;info&amp;gt; app: BLE EVT Handler: 80
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: Button pressed
&amp;lt;info&amp;gt; app: Send button state change 1.
&amp;lt;info&amp;gt; app: On button event handler exit - code is.
&amp;lt;info&amp;gt; app: 0
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87
&amp;lt;info&amp;gt; app: BLE EVT Handler: 87&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which SDK version are you using?&lt;/li&gt;
&lt;li&gt;Which nRF52840 (P)DK version are you using?&lt;/li&gt;
&lt;li&gt;Which SES version are you using?&lt;/li&gt;
&lt;li&gt;Which phone/central are you connecting with?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/156384?ContentTypeID=1</link><pubDate>Wed, 07 Nov 2018 20:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ceaec9f-4dfb-4b71-afb7-13fda6660de3</guid><dc:creator>jardis</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I use nRF Blinky App on Android to connect and press button 0 on the board.&lt;/p&gt;
&lt;p&gt;I added some additional NRF LOG outputs and it&amp;nbsp; can be seen&lt;/p&gt;
&lt;p&gt;NRF LOG shows:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/604x401/__key/communityserver-discussions-components-files/4/7043.blinky.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;As it can be seen from this log, the device restarts after return from button event handler - it goes&amp;nbsp;to HardFault_process.&lt;/p&gt;
&lt;p&gt;In debug mode the Output is: &amp;quot;Stopped by vector catch&amp;quot;&lt;/p&gt;
&lt;p&gt;What should be values for FLASH and RAM (start and size) in linker?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/156114?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 10:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:678c587b-37f0-419a-aa11-19b434a7fa66</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce this issue with your code. If notifications is enabled, the error code is SUCCESS. If notifications are not enabled, I get error code 8 (INVALID_STATE) but this error code is ignored.&lt;/p&gt;
&lt;p&gt;Are you doing anything specific to trigger the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/156041?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 23:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb949db9-1f3e-4b9e-a3b7-8afaca9ea9bf</guid><dc:creator>jardis</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_blinky_5F00_freertos.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_blinky_5F00_freertos.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/154718?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 16:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27e123dc-9e5d-4a52-a5f1-49f530394609</guid><dc:creator>jardis</dc:creator><description>&lt;p&gt;Will do, but i am out of office right know - returning in a good week&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/153602?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 09:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50eaf82-2d41-49be-ae54-18e124684fd6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you upload the entire project? If you do that, I can much more easily help you debug the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/153340?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2018 18:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:494c354f-a26f-48c0-8c91-debc92c029a5</guid><dc:creator>jardis</dc:creator><description>&lt;p&gt;Yes I did.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From&amp;nbsp;sd_ble_gatts_hvx(conn_handle, &amp;amp;params) in&amp;nbsp;ble_lbs_on_button_change&amp;nbsp;I get the error 0 (using nrf log).&lt;/p&gt;
&lt;p&gt;From other windows nothing useful:&lt;/p&gt;
&lt;p&gt;Call stack is showing:&lt;/p&gt;
&lt;p&gt;unknown function&lt;/p&gt;
&lt;p&gt;void PendSV_Handler&lt;/p&gt;
&lt;p&gt;&lt;span&gt;void PendSV_Handler&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And the output window: Stopped by vector catch.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also no event on ble_evt_handler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble freertos - ble_lbs_on_button_change unknown function</title><link>https://devzone.nordicsemi.com/thread/153289?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2018 14:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8ca9969-71b6-4126-9bae-a248a6f82876</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It sounds like you are getting an error code that is putting the application into the error handler. Have you tried &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;debugging the application&lt;/a&gt; to get the error code and which function is returning the error?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>