<?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>J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102299/j-link-error-but-ble-program-seems-to-continue-no-error-log</link><description>Dear Nordic, 
 
 I am implementing firmware on a nRF52840 Development Kit (DK) with the following functionality already implemented: 
 - BLE: 1 service based on ble_uart, another service based on ble_lbs. 
 I can send commands from my phone to the DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Aug 2023 11:40:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102299/j-link-error-but-ble-program-seems-to-continue-no-error-log" /><item><title>RE: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/439899?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 11:40:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38763dc9-02a0-4e00-ba2b-f0cadb600182</guid><dc:creator>FK42</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I tested it with a second development kit, and it works perfectly now.&lt;/p&gt;
&lt;p&gt;I wouldn&amp;#39;t know what the exact issue is with the other board, but I&amp;#39;m happy that it works.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your assistance.&lt;/p&gt;
&lt;p&gt;Frederik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/438728?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2023 11:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08f2bdf3-737a-4ff6-aa88-b9d8fc0a42f0</guid><dc:creator>FK42</dc:creator><description>&lt;p&gt;I will receive a second board next week, I will send you an update then.&lt;/p&gt;
&lt;p&gt;Thank you for your time and consideration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/438727?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2023 11:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83f4f66c-603a-4d51-9747-89feda1aedf0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Frederik,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a clear idea on what could be wrong here. If you can test on another DK then we can rule out the issue with hardware/the chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you do see the issue on another board then it could be something with the firmware. But as you mentioned it&amp;#39;s running fine so I am not sure what could be wrong here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/438539?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 13:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f880a9a-a76a-48ca-abfc-51f4d54959dc</guid><dc:creator>FK42</dc:creator><description>&lt;p&gt;I will try to get a hold of another development kit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After running some more tests:&lt;/p&gt;
&lt;p&gt;1. When it crashes, it seems the LED stays on and does not start blinking. This indicates the NRF52840 itself does not reset.&lt;/p&gt;
&lt;p&gt;2. When I run the hrs example, I am able to open the memory window and find the memory address that is shown in the error:&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/pastedimage1690464301032v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When I try to do the same in my program, Segger immediately crashes.&lt;/p&gt;
&lt;p&gt;Does this also point to the DK being faulty, or could this mean something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/438513?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 12:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a74c13cf-5d14-4956-a49c-3db3a502b9b9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t see a problem reading address 0x20004754. It&amp;#39;s application memory address and should be available to the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would strongly suggest to get hold of another DK and test again.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/438506?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 11:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17b67756-80aa-41cb-a59c-1d8ea038ab8b</guid><dc:creator>FK42</dc:creator><description>&lt;p&gt;Unfortunately I do not have another DK available at the moment. I do have a PCB I just received with an nRF52840 on it, but using that could introduce other&amp;nbsp;uncertainties.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error I mentioned above is when running my firmware, not the ble_app_hrs example, by the way. Apologies for the confusion.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been running the ble_app_hrs_pca10056_s140 for around 15 minutes now without issue. So it seems the issue is my firmware.&lt;/p&gt;
&lt;p&gt;I am guessing one of my BLE functions is trying to read an invalid memory address, as running just the TWI functionality worked fine.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT: following&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;this guide from nordi&lt;/a&gt;c, I made sure I had the right memory definitions.&lt;/strong&gt; Now that I adjusted it, the same error still occurs but now at a different address:&lt;/p&gt;
&lt;p&gt;Error reading from memory address 0x20004734&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/438498?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 11:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f512c17-f7ef-4a73-bec3-783008205262</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I think there must be something wrong with the hardware on the DK. Either too long USB cable, or something wrong with the debugger.&amp;nbsp;&lt;br /&gt;Please try to test with another DK to see if you have the same error. Please also try with another USB cable, and connect to another USB port, preferably directly to the mainboard.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/438488?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 10:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7005e9f8-26e1-42d9-bddc-6127b04f2437</guid><dc:creator>FK42</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thank you for your fast response and your assistance.&lt;/p&gt;
&lt;p&gt;Debugger: I assume SES uses the installed debugger on my desktop, which is V7.88. I am not actively using the software but only using SES.&lt;/p&gt;
&lt;p&gt;I will apply your suggestion about having a LED blink when the device boots up.&lt;/p&gt;
&lt;p&gt;I will see if I can find another DK to test with.&lt;/p&gt;
&lt;p&gt;SES: I was using SES version V7.30. I installed V5.42a and now running some tests. It still gives an error, but this time its a bit more informative:&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/Pasted-image-20230727123923.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Running another test results in:&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/pastedimage1690455331723v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I received the &amp;quot;Error reading from memory address 0x20004754&amp;quot; countless times in quick succession before losing the target connection.&lt;/p&gt;
&lt;p&gt;The last message in the debug terminal is once again BLE event: 0x57.&lt;/p&gt;
&lt;p&gt;Please forgive my ignorance, but do you have an idea how I can best figure out the root cause of this memory error?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&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: J-link error but BLE program seems to continue, no error log</title><link>https://devzone.nordicsemi.com/thread/438460?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 09:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8b8fac2-7b18-4c07-9097-877d72e3e89a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Frederik,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to test debugging with one of our example, ble_app_hrs for example ?&amp;nbsp;&lt;br /&gt;I suspect that it&amp;#39;s an issue with the debugger and has nothing to do with the application or the communication between the DK and the phone.&amp;nbsp;&lt;br /&gt;You can verify that the device was not reset by having a LED blink when the device booting up for example.&lt;/p&gt;
&lt;p&gt;Do you have other&amp;nbsp;DK to test ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which Jlink version you are using ? And which SES version ? Please try to use the SES version&amp;nbsp;(5.42a) mentioned in the release note of the SDK&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/index.html?cp=9_1_0"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/index.html?cp=9_1_0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>