<?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>Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98978/course-bluetooth-low-energy-lesson-4-exercise-3</link><description>Hi, 
 Problem with sending data from phone to my device (nRF52DK). I seems that the program makes a reset upon receiving data from phone. I have tried the solution (blefund_less4_exer3_solution) but exactly the same happens. 
 Sending data from device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 May 2023 14:11:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98978/course-bluetooth-low-energy-lesson-4-exercise-3" /><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/425145?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 14:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ddda4db-f8c3-4a4a-a109-9d4d483d7ffe</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I don&amp;#39;t know what most customers are using. It is not something they have to say, but most questions where I notice the environment it is windows and linux.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are using NCS, VS Code is what we recommend. Eclipse in general is not supported by us. This doesn&amp;#39;t mean it doesn&amp;#39;t work, but we don&amp;#39;t have tools for it. Segger is popular in the nRF5 SDK.&lt;/p&gt;
&lt;p&gt;What do you mean by probe? Do you mean programmer? For us, that would be Segger.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/425093?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 12:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa6f810-fc82-4f3c-9acb-ab8f78f118f9</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Yes I will do that. By the way, what would you say with your experience is most popular development environment for your products. Windows, Linux or MacOS. VSCode, Eclipse, SeggerIDE. And what probe is most use.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/425081?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 11:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6530895-9174-433e-9c67-ccc2e089448c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh, and by the way. Let me know if you see a similar option in one of the other exercises.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/425015?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 07:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db988508-49d2-482f-815c-4ab6e05d7eb5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Anders,&lt;/p&gt;
&lt;p&gt;To be honest, I wasn&amp;#39;t aware of exactly what that checkbox did before yesterday me neither. I just noticed the difference in the project that you sent me and the project I downloaded from github.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think this qualifies as a bug in the course. I have reported it back to the team who worked on it. All the applications in the course should be able to run without optimization.&lt;/p&gt;
[quote user="AndersB"]I suppose that you need some kind of probe if you are in for some serious development. What is your comment on that?[/quote]
&lt;p&gt;I am not sure what you mean, but what I found in the end was the log messages telling me where the overflow was coming from. Knowing what I know now, i could&amp;#39;ve&amp;nbsp; probably spotted this from the very first log that you posted. Still learning &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; I guess I have seen a lot of issues with pointers to callback functions being wrong, which was why I was asking for that a lot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyway, thank you for helping me reproduce the issue that you were experiencing, so that we can use this to prevent other users running into the same issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424903?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 13:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:083f6821-db20-4892-b63b-6451b8c4f2f5</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I check that box as a standard procedure. And today I hovered over the ? mark and saw those warnings for the first time.&lt;/p&gt;
&lt;p&gt;I suppose that you need some kind of probe if you are in for some serious development. What is your comment on that?&lt;/p&gt;
&lt;p&gt;I think you have a fairly good idea of what tools professionals use when developing hardware around Nordic components.&lt;/p&gt;
&lt;p&gt;Thank you very much for helping me with this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424845?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 12:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5549d3e8-40cf-4c70-bfbd-8f14734145fa</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, good news. I am able to replicate an error when sending data from the phone to the DK using your project.&lt;/p&gt;
&lt;p&gt;I see the same faulting instruction address (0x0000be44), but the lr/r14 is not the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see that you added CONFIG_DEBUG_OPTIMIZATIONS=y in your prj.conf. I believe you added this manually, but it will also be added if you check the box saying &amp;quot;Enable debug options&amp;quot; when you create your build configuration.&lt;/p&gt;
&lt;p&gt;The issue was that when this configurations is set to y, then a lot of optimizations are turned off. This causes the threads to require a bit more resources, and in this case, it is the RX thread in the BT stack that caused the issue. So if you want to have CONFIG_DEBUG_OPTIMIZATIONS=y, you need to increase the BT RX stack. By default it is 1024. I have not experimented with a lot of different sizes, but 2048 seems to work.&lt;/p&gt;
&lt;p&gt;CONFIG_BT_RX_STACK_SIZE=2048&lt;/p&gt;
&lt;p&gt;Try adding this to your prj.conf, and let me know if it doesn&amp;#39;t solve the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424713?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 06:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3507a8c3-ed53-4400-8e01-194e83dedfbb</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Here comes the files:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nus.c"&gt;devzone.nordicsemi.com/.../nus.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nus.h"&gt;devzone.nordicsemi.com/.../nus.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blefund_5F00_less4_5F00_exer3_5F00_solution.zip"&gt;devzone.nordicsemi.com/.../blefund_5F00_less4_5F00_exer3_5F00_solution.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424656?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 19:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62bf9ac6-5aeb-4c9e-bc0f-45d3cdfd5f8c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, good. I assume you didn&amp;#39;t find anything on the address 0x220350d1 either (because it is way too high. It is not part of the flash).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just drag and drop the zip file into where you are typing your answers. For good measure, can you please copy and upload your nus.c and nus.h files as well? I would like to see if any changes has sneaked in (and it saves us one day of back and forth if I were to ask for it tomorrow. You can find it in:&lt;/p&gt;
&lt;p&gt;v2.3.0\nrf\subsys\bluetooth\services\nus.c&lt;br /&gt;v2.3.0\nrf\include\bluetooth\services\nus.h&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424563?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 13:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65533acf-9863-451c-8245-26c285f90a48</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As from what you can see from the log below the address to rc15 is 0x0000be44&lt;/p&gt;
&lt;p&gt;SEGGER J-Link V7.80c - Real time terminal output&lt;br /&gt;J-Link OB-nRF5340-NordicSemi compiled Nov 7 2022 16:22:01 V1.0, SN=1050395042&lt;br /&gt;Process: JLink.exe&lt;br /&gt;*** Booting Zephyr OS build v3.2.99-ncs2 ***&lt;br /&gt;[00:00:00.001,007] &amp;lt;inf&amp;gt; bt_sdc_hci_driver: SoftDevice Controller build revision: &lt;br /&gt; d8 0c 2d 2f 36 ae e2 5c 80 26 80 4c 3f 4d 16 53 |..-/6..\ .&amp;amp;.L?M.S&lt;br /&gt; 50 96 c7 73 |P..s &lt;br /&gt;[00:00:00.009,887] &amp;lt;inf&amp;gt; Lesson4_Exercise3: Bluetooth initialized&lt;br /&gt;[00:01:18.736,846] &amp;lt;inf&amp;gt; Lesson4_Exercise3: Connected 60:49:5A:1A:31:70 (random)&lt;br /&gt;[00:01:43.059,814] &amp;lt;inf&amp;gt; Lesson4_Exercise3: Disconnected: 60:49:5A:1A:31:70 (random) (reason 19)&lt;br /&gt;[00:02:05.291,076] &amp;lt;inf&amp;gt; Lesson4_Exercise3: Connected 60:49:5A:1A:31:70 (random)&lt;br /&gt;[00:02:30.002,838] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****&lt;br /&gt;[00:02:30.002,868] &amp;lt;err&amp;gt; os: Stacking error (context area might be not valid)&lt;br /&gt;[00:02:30.002,868] &amp;lt;err&amp;gt; os: Data Access Violation&lt;br /&gt;[00:02:30.002,899] &amp;lt;err&amp;gt; os: MMFAR Address: 0x20005070&lt;br /&gt;[00:02:30.002,929] &amp;lt;err&amp;gt; os: r0/a1: 0x17e85fd0 r1/a2: 0x3541cc00 r2/a3: 0x7f5fe17e&lt;br /&gt;[00:02:30.002,929] &amp;lt;err&amp;gt; os: r3/a4: 0x290050a8 r12/ip: 0xa6fffceb r14/lr: 0x220350d1&lt;br /&gt;[00:02:30.002,960] &amp;lt;err&amp;gt; os: xpsr: 0x21000000&lt;br /&gt;[00:02:30.002,960] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0000be44&lt;br /&gt;[00:02:30.003,021] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0&lt;br /&gt;[00:02:30.003,051] &amp;lt;err&amp;gt; os: Current thread: 0x20001eb8 (BT RX)&lt;br /&gt;[00:02:30.279,449] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a zipfile waiting for you, but I could find a way to upload it.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424407?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 06:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a7dbd14-8e76-43b7-a3f3-0dc9dc0ff4d2</guid><dc:creator>Edvin</dc:creator><description>[quote user="AndersB"]arm-zephyr-eabi-addr2line -e build\zephyr\zephyr.elf&amp;nbsp;0x0000be44 gives ??[/quote]
&lt;p&gt;You need to replace the address (0x000be44) with the address that you see on r15 in your log. The address 0x0000be44 was from Johanan&amp;#39;s log. And as I mentioned, you can&amp;#39;t use the value from your initial log. You need to compile the sample (or solution) from the academy course, so that you run into the original issue where it crashed when you were sending data from the phone to the DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I could send you the SDK that I am working on, and the source file, but that would be the exact same as you found on github (Blefund_Less4_Exer3_Solution), and the unmodified SDK that I downloaded from nRF Connect for Desktop -&amp;gt; Toolchain Manager. Those are the ones I have been testing on.&lt;/p&gt;
&lt;p&gt;Besides, the SDK zip file isn&amp;#39;t worth much without downloading it from Toolchain Manager, because this will also set up the toolchain for that specific SDK version (which you will need to compile the application).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another suggestion: You replicate the issue that you saw originally, copy the log and upload it here, and zip your application folder (including the build folder) and upload it here.&amp;nbsp;I feel I have said it a hundred times, but I can&amp;#39;t stress it enough. When you have replicated the issue, &lt;strong&gt;do not&lt;/strong&gt;&amp;nbsp;rebuild the application before zipping your application folder. After you have reproduced the issue, copied the log, zipped the application folder and uploaded it here, you can build again if you like. This is to make sure that the log corresponds to the zipped application folder including the correct build folder.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424338?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 14:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04bc3fc2-a9df-494b-b757-f19995509819</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-&amp;gt; it suggests that there are some changes in your nus.c or nus.h file, &amp;lt;-&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have not modified any of these files.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The command:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;arm-zephyr-eabi-addr2line -e build\zephyr\zephyr.elf&amp;nbsp;0x0000be44 gives ??&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But looking up the file zephyr.elf gives you following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;0000BE40: 22 F0 10 02 02 60 00 29 00 D0 62 B6 10 BD 20 BF&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe another eay to track this down is you sending two zipfiles:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One that includes all sourcefile in the project (Blefund_Less4_Exer3_Solution) and&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;one that includes the SDK you are working with (C:\ncs\)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anders&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424294?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 13:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90e4b315-ad00-4fe6-a7e1-b77f8a0c8a95</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello, both of you &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
[quote user="AndersB"]2. Since no crashes ocure, this point could not be fullfiled.[/quote]
&lt;p&gt;I meant that you needed to do that in the application that you compiled. However, it is weird that it never exits settings_init. Did you erase the board completely before re-programming it? If not, please do. I have described how to do it in a previous reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me explain in more details what I am looking for when asking you to test different things:&lt;/p&gt;
&lt;p&gt;When I ask you to test the peripheral_uart sample, it is to check whether the default sample works as intended or not. If it does not, it suggests that there are some changes in your nus.c or nus.h file, which is outside this course. But remember that changing this file while working one one application will affect other applications using the same file.&lt;/p&gt;
&lt;p&gt;I also asked you a couple of times to erase the flash on the DK. The reason for this is to make sure that there are not some old/corrupt flash data stored in the end of the flash (which is not erased by default when you program a new application to the DK). The program going into a never ending loop in settings_init may suggest that this is the case.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And finally, the reason I want you to check the specific address from your logs is that these are the addresses of the functions that caused the application to crash. So both Anders and Johanan, please check r15 and r14 from your logs. Johanan, you have two sets of registers. Please check both.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To look up the functions, use the command:&lt;/p&gt;
&lt;p&gt;arm-zephyr-eabi-addr2line -e build\zephyr\zephyr.elf &amp;lt;address&amp;gt;&lt;br /&gt;e.g.:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;arm-zephyr-eabi-addr2line -e build\zephyr\zephyr.elf&amp;nbsp;0x0000be44&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 see what it outputs.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Again, make sure to use the log corresponding to your latest build. re-building the application will change the mapping of the functions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424110?ContentTypeID=1</link><pubDate>Sat, 06 May 2023 15:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaeccee5-3c25-469c-be40-a8ba92ccfc5c</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I did what you suggested me to do.&lt;/p&gt;
&lt;p&gt;1. No, It does not behave the same. Program seemes to got into never ending loop inside settings_init.c.&lt;/p&gt;
&lt;p&gt;2. Since no crashes ocure, this point could not be fullfiled.&lt;/p&gt;
&lt;p&gt;But, if I download &amp;quot;nRF52 DK Peripheral UART demo.zip&amp;quot; from url:&lt;br /&gt; &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52-DK/Download#infotabs"&gt;www.nordicsemi.com/.../Download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and flash that to the board, everything is working.&lt;/p&gt;
&lt;p&gt;Something must be wrong in the setup!?&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/424109?ContentTypeID=1</link><pubDate>Sat, 06 May 2023 10:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2396e3-f50b-4b5b-876c-87c56caff236</guid><dc:creator>Johan.h</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have the same issue. When phone send even a single char, the program crashes with a stack overflow, but I could not find the RX thread creation point( also using NRF52832-DK )&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:284px;max-width:508px;" height="284" src="https://devzone.nordicsemi.com/resized-image/__size/1016x568/__key/communityserver-discussions-components-files/4/pastedimage1683368729279v1.png" width="508" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Johanan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/423940?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 09:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c26df7dd-2bd0-4318-9469-c4c0e10c0fdd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I do indeed believe you, but since I am not able to replicate this issue, it is difficult to say exactly what&amp;#39;s going on.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is what we will do. I want you to do both of these tests for me, and tell me what it behaves like.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1: In the SDK, there is a sample located in:&lt;/p&gt;
&lt;p&gt;v2.3.0\nrf\samples\bluetooth\peripheral_uart&lt;/p&gt;
&lt;p&gt;Compile this sample for the board that you are using: nrf52dk_nrf52832, flash it and test it. Does it behave the same?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2: Without debugging (remove all breakponits and just program it as you normally would using VS Code), monitor the RTT log, and trigger the issue:&lt;/p&gt;
[quote user=""]I seems that the program makes a reset upon receiving data from phone.[/quote]
&lt;p&gt;Then check what the RTT log is saying. Copy and upload that updated crash log here. In addition, without building the application after the bug is triggered, zip and upload your build folder as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/423894?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 06:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e9ac04c-0bfb-4fef-87c8-86de76077160</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I just saw this conversation:&lt;/p&gt;
&lt;p&gt;Bluetooth LE course - Lesson 4 / Exercise 3 - Can&amp;#39;t write data from phone Case ID: 306292&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m not alone with this problem.&lt;/p&gt;
&lt;p&gt;Is there anything we can learn from that case?&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/423816?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 13:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2b1fcbe-e871-467a-9a65-1a08fcd99017</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Does your (main) issue only occur after you stop at breakpoints?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure I understand what you are getting for.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;If the main issue occurs only after you receive messages from the phone, can you please try to either set a breakpoint or add something to the log to determine whether these applications are reached:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;bt_receive_cb() in main.c&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;on_receive() in nus.c&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Are any, or both of them reached? Add logs/breakpoints at the start and end of these functions to test. Remember if you are using breakpoints, you need to remove the breakpoint and restart the application to check whether the next one is reached.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;Both are reached but when the breakpoint is reached in ether of these methods the debugger has crashed.&lt;/p&gt;
&lt;p&gt;And trying to step forward when the debugger has crashed seems to rather pointless.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/423765?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 11:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6e1b974-cc7f-4dbc-84b2-59b4f75b0ed0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I don&amp;#39;t know. I have the same:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1683201172873v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But that should not be what&amp;#39;s causing your issues.&lt;/p&gt;
&lt;p&gt;Please note that after you have reached a breakpoint, you need to restart the application. The reason for this is that the instance you break, the BLE stack has lost too many time critical operations, so the application will fail. So you can use breakpoints to investigate certain events or execution, but you can&amp;#39;t resume the application after that. You need to restart.&lt;/p&gt;
&lt;p&gt;Does your (main) issue only occur after you stop at breakpoints?&lt;/p&gt;
&lt;p&gt;If the main issue occurs only after you receive messages from the phone, can you please try to either set a breakpoint or add something to the log to determine whether these applications are reached:&lt;/p&gt;
&lt;p&gt;bt_receive_cb() in main.c&lt;/p&gt;
&lt;p&gt;on_receive() in nus.c&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are any, or both of them reached? Add logs/breakpoints at the start and end of these functions to test. Remember if you are using breakpoints, you need to remove the breakpoint and restart the application to check whether the next one is reached.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/423610?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 15:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a09d7004-9690-4ca9-8a5c-c21df727fbe4</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I think it is established that program reached the place in the program where text from phone was received. Below is a dump from the Debug Console:&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;JLinkGDBServerCL: SEGGER J-Link GDB Server V7.80c Command Line Version&lt;br /&gt;JLinkGDBServerCL: &lt;br /&gt;JLinkGDBServerCL: JLinkARM.dll V7.80c (DLL compiled Sep 27 2022 16:06:20)&lt;br /&gt;JLinkGDBServerCL: &lt;br /&gt;JLinkGDBServerCL: -----GDB Server start settings-----&lt;br /&gt;JLinkGDBServerCL: GDBInit file: none&lt;br /&gt;JLinkGDBServerCL: GDB Server Listening port: 55791&lt;br /&gt;JLinkGDBServerCL: SWO raw output listening port: 2332&lt;br /&gt;JLinkGDBServerCL: Terminal I/O port: 2333&lt;br /&gt;JLinkGDBServerCL: Accept remote connection: localhost only&lt;br /&gt;JLinkGDBServerCL: Generate logfile: off&lt;br /&gt;JLinkGDBServerCL: Verify download: off&lt;br /&gt;JLinkGDBServerCL: Init regs on start: off&lt;br /&gt;JLinkGDBServerCL: Silent mode: on&lt;br /&gt;JLinkGDBServerCL: Single run mode: on&lt;br /&gt;JLinkGDBServerCL: Target connection timeout: 0 ms&lt;br /&gt;JLinkGDBServerCL: ------J-Link related settings------&lt;br /&gt;JLinkGDBServerCL: J-Link Host interface: USB&lt;br /&gt;JLinkGDBServerCL: J-Link script: none&lt;br /&gt;JLinkGDBServerCL: J-Link settings file: none&lt;br /&gt;JLinkGDBServerCL: ------Target related settings------&lt;br /&gt;JLinkGDBServerCL: Target device: nRF52832_xxAA&lt;br /&gt;JLinkGDBServerCL: Target device parameters: none&lt;br /&gt;JLinkGDBServerCL: Target interface: SWD&lt;br /&gt;JLinkGDBServerCL: Target interface speed: 12000kHz&lt;br /&gt;JLinkGDBServerCL: Target endian: little&lt;br /&gt;JLinkGDBServerCL: &lt;br /&gt;=thread-group-added,id=&amp;quot;i1&amp;quot;&lt;br /&gt;=cmd-param-changed,param=&amp;quot;pagination&amp;quot;,value=&amp;quot;off&amp;quot;&lt;br /&gt;atomic_get (target=0x20003160 &amp;lt;force_isr_mask&amp;gt;) at C:/ncs/v2.3.0/zephyr/include/zephyr/sys/atomic_builtin.h:161&lt;br /&gt;161 return __atomic_load_n(target, __ATOMIC_SEQ_CST);&lt;br /&gt;[New Remote target]&lt;br /&gt;[New Thread 536882016]&lt;br /&gt;[New Thread 536881832]&lt;br /&gt;[New Thread 536877104]&lt;br /&gt;[New Thread 536878376]&lt;br /&gt;[New Thread 536881616]&lt;br /&gt;[New Thread 536882200]&lt;br /&gt;[New Thread 536876872]&lt;br /&gt;[New Thread 536878592]&lt;br /&gt;[New Thread 536878776]&lt;br /&gt;[New Thread 536881432]&lt;br /&gt;[Switching to Thread 536882016]&lt;/p&gt;
&lt;p&gt;Thread 3 hit Breakpoint 1, main () at ../src/main.c:564&lt;br /&gt;564 {&lt;br /&gt;Execute debugger commands using &amp;quot;-exec &amp;lt;command&amp;gt;&amp;quot;, for example &amp;quot;-exec info registers&amp;quot; will list registers in use (when GDB is the debugger)&lt;br /&gt;[New Thread 536878592]&lt;br /&gt;[New Thread 536878776]&lt;br /&gt;[New Thread 536881432]&lt;br /&gt;[Switching to Thread 536878776]&lt;/p&gt;
&lt;p&gt;Thread 14 hit Breakpoint 2, bt_receive_cb (conn=0x20001f90 &amp;lt;acl_conns&amp;gt;, data=0x20008849 &amp;lt;net_buf_data_hci_rx_pool+81&amp;gt; &amp;quot;Hello from phone ~�\b&amp;amp;\002S\235n\002\002\f)/Z��\022g؄{�i�\210(�A�{��ߡ \025��(P0&amp;quot;, len=17) at ../src/main.c:458&lt;br /&gt;458 char addr[BT_ADDR_LE_STR_LEN] = {0}; // BT_ADDR_LE_STR_LEN&lt;br /&gt;[New Remote target]&lt;br /&gt;[Switching to Remote target]&lt;br /&gt;/__w/_temp/workspace/build/.build/HOST-x86_64-w64-mingw32/arm-zephyr-eabi/src/gdb/gdb/infrun.c:8553: internal-error: normal_stop: Assertion `get_frame_type (frame) == DUMMY_FRAME&amp;#39; failed.&lt;br /&gt;A problem internal to GDB has been detected,&lt;br /&gt;further debugging may prove unreliable.&lt;br /&gt;Quit this debugging session? (y or n) [answered Y; input not from terminal]&lt;br /&gt;/__w/_temp/workspace/build/.build/HOST-x86_64-w64-mingw32/arm-zephyr-eabi/src/gdb/gdb/infrun.c:8553: internal-error: normal_stop: Assertion `get_frame_type (frame) == DUMMY_FRAME&amp;#39; failed.&lt;br /&gt;A problem internal to GDB has been detected,&lt;br /&gt;further debugging may prove unreliable.&lt;br /&gt;Create a core file of GDB? (y or n) [answered Y; input not from terminal]&lt;br /&gt;ERROR: GDB exited unexpectedly with exit code 3 (0x3). Debugging will now abort.&lt;br /&gt;The program &amp;#39;c:/Nordic/MyApps/bt-fund/lesson4/blefund_less4_exer3_solution/build/zephyr/zephyr.elf&amp;#39; has exited with code -1 (0xffffffff).&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-------------------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But the information about &amp;quot;A problem internal to GDB has been detected&amp;quot; worries a bit. That is outside my scope. So what&amp;#39;s wrong.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Another thing, is the red colored text normal: See below?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1683128620631v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anders&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: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/423399?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 21:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66318a4c-5a55-49ed-8354-aec4693b9a4a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry for this vague reply, but the &amp;quot;Problems&amp;quot; tab is a bit buggy. I have a lot of things listed there all the time, but it doesn&amp;#39;t really matter. What really matters is what it says when you build, and what you see in the build log.&lt;/p&gt;
&lt;p&gt;Are you able to build after you set it up again? What happens if you flash it? Did you try the &amp;quot;erase and flash&amp;quot; button I pointed to in my previous reply?&lt;/p&gt;
&lt;p&gt;If you still see the same error in your log, did you try the arm-zephyr-eabi-addr2line command that I showed you in the previous reply?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/423275?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 11:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7c329e3-4643-474a-923a-fd7ead8ee60f</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I would very much try to solve the problem, so I formated a disk and installed a new windows 10. Then I made all preparations to set up nRF developing&amp;nbsp;&lt;span class="Y2IQFc" lang="en"&gt;environment.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;I attach two pictures, one that show the setup and one that shows a number of problems.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;What is the warnings in prj.conf?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;What is the invalid type definition: Cannot set properties of null (setting &amp;#39;name&amp;#39;) [ln 1, col1]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;I have of course not touched any file coming from Nordic.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;Worth mentioning I can still send info from PC to the phone.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;Anders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;Picture 1:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1683028423457v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;Picture 2:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1683028462937v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;I hope you can enlarge these pictures.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/422919?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 09:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95a74853-fa27-4ff5-bfbe-888a5d5f2c0c</guid><dc:creator>Edvin</dc:creator><description>[quote user="AndersB"]But I am curious about if there is some difference between erasing with west before flashing and just flash from VScode.[/quote]
&lt;p&gt;Just flash from VScode will only erase the flash pages that holds the application, but it will leave the rest of the flash untouched. Many of our BLE applications support bonding, so if you have ran an application that stored bonding data on the DK, this will be stored in a different location than the flash that holds the application. (still in flash, but a different address). So when you start a new application, and it sees old bonding information it may think that this is still relevant. So the difference by pressing the button (in VS Code that I circeled red) that erases the flash before flashing the application is that it will delete all flash, and then re-program the kit.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="AndersB"]When I tried that I bumped into a lot of problems.[/quote]
&lt;p&gt;I can&amp;#39;t think of why that should be. What do you see?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From your log, it is not very easy to say exactly what went wrong.&lt;/p&gt;
&lt;p&gt;The faulting instruction is located in&amp;nbsp;&lt;span&gt;0x0000be44, so you can look that up in your build folder using the command:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;arm-zephyr-eabi-addr2line -e build\zephyr\zephyr.elf -e 0xbe44&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(run that from a terminal that you open using nRF Connect for Desktop -&amp;gt; Toolchain Manager -&amp;gt; click the down button next to the NCS version you are using and select &amp;quot;Open command prompt&amp;quot;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can also check what is in the Link Register (LR/r14),&amp;nbsp;0x200350d1 using the command:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;arm-zephyr-eabi-addr2line -e build\zephyr\zephyr.elf -e 0x200350d1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please note that when you recompile, these addresses may change, so remember to use the addresses from your most recent log (and make sure you don&amp;#39;t rebuild in the meantime).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, if you say that it happens&amp;nbsp;&lt;strong&gt;when you write a message from the phone to the nRF chip&lt;/strong&gt;, you can try to start looking into the&amp;nbsp;on_receive() callback function in nus.c. Try setting a breakpoint and see if it is reached. Is it? If it is, is nus_cb.received assigned a value that is not NULL? What happens when it tries to call&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;nus_cb&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;received&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;conn&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;len&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I wish I could give a more &amp;quot;to the point&amp;quot; answer, but I am not able to reproduce what you are seeing. Perhaps you changed something in nus.c or nus.h at some point earlier, which is now causing the issues you are seeing?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/422902?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 08:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dcb5301-d665-4a04-b609-0b80e61277fa</guid><dc:creator>AndersB</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not changed anything in the project.&lt;/p&gt;
&lt;p&gt;There is no bonding information in my phone.&lt;/p&gt;
&lt;p&gt;I have not used the west command for erasing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I tried that I bumped into a lot of problems. So I am considering a reinstall of the Nordic development development.&lt;/p&gt;
&lt;p&gt;But I am curious about if there is some difference between erasing with west before flashing and just flash from VScode.&lt;/p&gt;
&lt;p&gt;But I will be back when I am up and running with the&amp;nbsp;development.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Anders&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/422782?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 14:00:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1b07597-a526-4c8c-80fd-e7011643474c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you please confirm that:&lt;/p&gt;
&lt;p&gt;1: You didn&amp;#39;t change anything in the project?&lt;/p&gt;
&lt;p&gt;2: You deleted Bluetooth bonding information (if present) on the phone?&lt;/p&gt;
&lt;p&gt;3: You erased the board before programming it the way I described in the previous reply?&lt;/p&gt;
&lt;p&gt;This happens when you try to send data, right? Is it a long string of data, or a fairly short one?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Course Bluetooth Low Energy Lesson 4 exercise 3</title><link>https://devzone.nordicsemi.com/thread/422549?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 13:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a1a613f-2e77-42ba-9389-e903e0050748</guid><dc:creator>AndersB</dc:creator><description>&lt;div&gt;OK, back on nRF52DK (build nRF52 DK NRF52832). So I installed the&amp;nbsp;&lt;span&gt;JLink RTT Viewer and I selected NRF52 as the best choice I could see.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And here is the answer where sending Hello from my Pixel:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;00&amp;gt; *** Booting Zephyr OS build v3.2.99-ncs2 ***&lt;/span&gt;
&lt;div&gt;00&amp;gt; [00:00:00.000,976] &amp;lt;inf&amp;gt; bt_sdc_hci_driver: SoftDevice Controller build revision:&lt;/div&gt;
&lt;div&gt;00&amp;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; &amp;nbsp; d8 0c 2d 2f 36 ae e2 5c &amp;nbsp;80 26 80 4c 3f 4d 16 53 |..-/6..\ .&amp;amp;.L?M.S&lt;/div&gt;
&lt;div&gt;00&amp;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; &amp;nbsp; 50 96 c7 73 &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;|P..s &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:00:00.009,765] &amp;lt;inf&amp;gt; Lesson4_Exercise3: Bluetooth initialized&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:22.308,074] &amp;lt;inf&amp;gt; Lesson4_Exercise3: Connected 74:74:29:09:B4:B1 (random)&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,341] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,372] &amp;lt;err&amp;gt; os: &amp;nbsp; Stacking error (context area might be not valid)&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,372] &amp;lt;err&amp;gt; os: &amp;nbsp; Data Access Violation&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,402] &amp;lt;err&amp;gt; os: &amp;nbsp; MMFAR Address: 0x20005070&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,433] &amp;lt;err&amp;gt; os: r0/a1: &amp;nbsp;0x1ee85fd0 &amp;nbsp;r1/a2: &amp;nbsp;0x3541cc00 &amp;nbsp;r2/a3: &amp;nbsp;0x3f5fa17e&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,433] &amp;lt;err&amp;gt; os: r3/a4: &amp;nbsp;0x290052a9 r12/ip: &amp;nbsp;0xa6fffcef r14/lr: &amp;nbsp;0x200350d1&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,463] &amp;lt;err&amp;gt; os: &amp;nbsp;xpsr: &amp;nbsp;0x21000000&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,463] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0000be44&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,494] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.406,555] &amp;lt;err&amp;gt; os: Current thread: 0x20001eb8 (BT RX)&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:03:55.682,922] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/div&gt;
&lt;div&gt;00&amp;gt; *** Booting Zephyr OS build v3.2.99-ncs2 ***&lt;/div&gt;
&lt;div&gt;00&amp;gt; [00:00:00.001,190] &amp;lt;inf&amp;gt; bt_sdc_hci_driver: SoftDevice Controller build revision:&lt;/div&gt;
&lt;div&gt;00&amp;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; &amp;nbsp; d8 0c 2d 2f 36 ae e2 5c &amp;nbsp;80 26 80 4c 3f 4d 16 53 |..-/6..\ .&amp;amp;.L?M.S&lt;/div&gt;
&lt;div&gt;00&amp;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; &amp;nbsp; 50 96 c7 73 &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;|P..s &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;span&gt;00&amp;gt; [00:00:00.009,918] &amp;lt;inf&amp;gt; Lesson4_Exercise3: Bluetooth initialized&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Hope this will point out the error.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Anders&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>