<?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>nRF5340 Debugging using &amp;quot;Segger Embedded Studio&amp;quot; for Bluetooth related APIs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73237/nrf5340-debugging-using-segger-embedded-studio-for-bluetooth-related-apis</link><description>Hi Nordic Team, 
 1. Actually we try to debug &amp;quot;Mesh Light&amp;quot; sample code using &amp;quot;Build and Debug&amp;quot; option of Segger Embedded Studio.. 2. Unfortunately debugging stopped at below line of API bt_enable() of hci_core.c err = bt_dev.drv-&amp;gt;open(); 3. But by programming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 Mar 2021 22:06:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73237/nrf5340-debugging-using-segger-embedded-studio-for-bluetooth-related-apis" /><item><title>RE: nRF5340 Debugging using "Segger Embedded Studio" for Bluetooth related APIs</title><link>https://devzone.nordicsemi.com/thread/302249?ContentTypeID=1</link><pubDate>Sat, 27 Mar 2021 22:06:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4948d21-0a64-41e0-b469-c911c457e9ea</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Selvam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By default the network core has logging supported. If you plan to do more modification on the network core, I would suggest to open the hci_rpmsg directly and modify the code there. You then can just compile and flash the hci_rpmsg separately (made sure you select board&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340_cpunet ) when you open the project.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the application core, you don&amp;#39;t need to flash/combine the hci_rpmsg core any more.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Debugging using "Segger Embedded Studio" for Bluetooth related APIs</title><link>https://devzone.nordicsemi.com/thread/302095?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 10:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbadfe32-f08a-42a1-8765-1337df7334dd</guid><dc:creator>selvam</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Hung Bui,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the update.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We followed the suggested steps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For the&amp;nbsp;case of update the code (to add print messages) in network core code , &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please suggest the steps to be followed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Selvam&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: nRF5340 Debugging using "Segger Embedded Studio" for Bluetooth related APIs</title><link>https://devzone.nordicsemi.com/thread/302084?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee3bc08-863b-4dbf-9713-f61c4476e745</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Selvam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes you can do my suggested steps. At the end of the day they are the same.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The important part is that you flash m&lt;span&gt;erged_CPUNET.hex into the network core and flash the merged.hex in the application core for debugging.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Note you only need to flash the merged_CPUNET.hex once if you haven&amp;#39;t made any change to the network code.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Debugging using "Segger Embedded Studio" for Bluetooth related APIs</title><link>https://devzone.nordicsemi.com/thread/302003?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 17:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4978b9cf-5bc6-4f66-aa74-92dc3b44bb98</guid><dc:creator>selvam</dc:creator><description>&lt;p&gt;Thanks for the response Hung Bui,&lt;/p&gt;
&lt;p&gt;Yes&amp;nbsp;mesh light is&amp;nbsp;&lt;span&gt;actually works fine and run normally and able to control LED on nRF5340 DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ensured that merged_CPUNET.hex is present at \mesh\light\build_nrf5340dk_nrf5340_cpuapp\hci_rpmsg\zephyr\ - it looks like old date.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Will it not updated during clean-build through &amp;quot;Segger Embedded Studio&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;More understanding from your inputs:&lt;/p&gt;
&lt;p&gt;If the link &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#programming-the-network-sample-from-ses"&gt;Working with nRF53 Series &amp;mdash; nRF Connect SDK 1.5.99 documentation (nordicsemi.com)&lt;/a&gt;&amp;quot; for programming the network sample from SES confuse, we shall follow the below steps:&lt;/p&gt;
&lt;p&gt;1. Load the &lt;span&gt;merged_CPUNET.hex from \mesh\light\build_nrf5340dk_nrf5340_cpuapp\hci_rpmsg\zephyr\ using nRF using &amp;quot;nrf Connect Programmer&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Load the merged.hex through build and debug option of &amp;quot;Segger Embedded Studio&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Now we can debug.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please correct us, if understanding need corrections.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Selvam&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Debugging using "Segger Embedded Studio" for Bluetooth related APIs</title><link>https://devzone.nordicsemi.com/thread/301991?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 16:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec0da9b7-d679-455b-a11a-9410f6532424</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Selvam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Before testing with debugging have you verified that it actually works an run normally. If you use nRF Mesh on the phone can you scan for the unprovisioned mesh node ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Please made sure the network core has been flashed with the&amp;nbsp;merged_CPUNET.hex inside&amp;nbsp;\mesh\light\build_nrf5340dk_nrf5340_cpuapp\hci_rpmsg\zephyr\&amp;nbsp;&lt;br /&gt;It&amp;#39;s the sub-image hci_rpmsg for the netcore that&amp;#39;s compiled when you compile the mesh light example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you follow the instruction &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html"&gt;here&lt;/a&gt; at&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#id23"&gt;Programming the network sample from SES&lt;/a&gt;&amp;nbsp;you can find how to make it flashed automatically when you flash the application core but if not you can just use nrf Connect Programmer to&amp;nbsp;flash &lt;span&gt;merged_CPUNET.hex to the network core&lt;/span&gt;, or you can use nrfjprog.exe&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that you can start flashing the application core using Segger embedded studio (it will flash merged.hex inside&amp;nbsp;\mesh\light\build_nrf5340dk_nrf5340_cpuapp\zephyr) and can debug from there.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>