<?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 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80978/nrf5340-simultaneously-debugging-on-application-and-network-cores</link><description>Hi- 
 I am trying to debug the network and application cores simultaneously using the beacon sample application configured for RPC HOST on the nrf5340DK board. My configuration is as follows: 
 - Windows 10 
 - VSCode with nrf Connect and Cortex-Debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Oct 2021 15:41:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80978/nrf5340-simultaneously-debugging-on-application-and-network-cores" /><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336726?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 15:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7284be6e-0986-4625-80b0-186afa334c29</guid><dc:creator>kpreiss</dc:creator><description>&lt;p&gt;Ok, will it work with Segger Embedded Studio?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336647?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 11:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e8b23b0-c7cf-4c8c-b0bd-a1296907d3aa</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;After my initial testing I see the same as you. It works once in a while, but most of the time I get error.&lt;/p&gt;
&lt;p&gt;Debugging multi-core applications is not a feature of the VS Code extension yet, but I will add this as a feature request to the VS Code team.&lt;/p&gt;
&lt;p&gt;In the meantime, debugging both cores can be achieved using a compound debug configuration as discussed here:&amp;nbsp;&lt;a href="https://github.com/Marus/cortex-debug/issues/404#issuecomment-888594384"&gt;https://github.com/Marus/cortex-debug/issues/404#issuecomment-888594384&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336267?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 14:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71790ac0-c2aa-48b1-a950-bcf78d6de08a</guid><dc:creator>kpreiss</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635345829993v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336266?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 14:43:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53edc981-2c54-4236-ba7e-dd050253915b</guid><dc:creator>kpreiss</dc:creator><description>&lt;p&gt;I cannot even connect to the application core again.&amp;nbsp; I get the following error message when attempting to debug the app core after erasing and flashing....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336244?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 13:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aee4bedb-204c-4093-9312-d1f976c26a56</guid><dc:creator>kpreiss</dc:creator><description>&lt;p&gt;can you try disconnecting from both debug sessions, then reconnecting?&amp;nbsp; I got it to work ONCE after starting vscode, erase and flashing, then debugging.&amp;nbsp; However, once I stop the debug sessions then try to restart, it doesn&amp;#39;t work.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336233?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 13:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0605faf1-848c-442a-96dd-e509abe798c2</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, I opened two VS Code windows and used one for the Beacon sample on the application core, and the other for the RPC Host sample on the network core.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336207?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 12:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e765de-da73-44d6-bd91-efec624f1818</guid><dc:creator>kpreiss</dc:creator><description>&lt;p&gt;Yes, I did do this.&amp;nbsp; Are you launching two instances of VSCode to debug?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336141?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 09:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aac14101-bdab-4d70-b644-0353abf0dc71</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you specify that the&amp;nbsp;nRF RPC Host sample should be the child image of the Beacon sample when creating the build configuration in VS Code? If not, the HCI RPMsg sample will become the child image of the sample. In multi-image builds, VS Code automatically programs the child images as well as the main image, so this would cause the HCI RPMsg sample to be programmed on the network core when you select that you want to debug the Beacon sample.&lt;/p&gt;
&lt;p&gt;You can specify that the nRF RPC Host should be the child image by adding this as an Extra Cmake argument when creating the build configuration:&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;-DCONFIG_BT_RPC=y&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Using this, I was able to debug both cores and test the application by first starting the debug session on the application core, then the debug session on the network core.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/336003?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 13:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a03fb447-1940-4fb0-9834-311a69fa2ec7</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am still investigating this issue. I will come back to you tomorrow.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/335799?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 14:20:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c008666c-8058-484c-8950-e3207c70d83b</guid><dc:creator>kpreiss</dc:creator><description>&lt;p&gt;Yes, the SIGTRAP error stops the program from running and the development board does not advertise.&amp;nbsp; I have not tried other samples.&amp;nbsp; I was trying to use the rpc_host functionality on the network core and it appears only a few samples support this feature.&amp;nbsp; The beacon sample being one of them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 simultaneously debugging on application and network cores</title><link>https://devzone.nordicsemi.com/thread/335772?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 13:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c830e61-4c70-4bf3-9d1d-1823d5170f7f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Kurt,&lt;/p&gt;
&lt;p&gt;Does the SIGTRAP error stop your program for running? Is the device still advertising the Eddystone URL, or has it halted completely? Do you only see this with the Beacon sample, or do you see the same behavior with other samples as well?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>