<?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>Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95321/failed-to-create-advertising-set-err--5-with-peripheral_power_profiling-example</link><description>Hello, 
 I have a nRF5340-DK card that I want to test with the &amp;quot;Peripheral_Power_Profiling&amp;quot; example. I use the SDK v2.2.0 and VS Code for this. I didn&amp;#39;t make any modification to the code, but I get the following error (print of the serial port : 
 **</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jan 2023 00:54:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95321/failed-to-create-advertising-set-err--5-with-peripheral_power_profiling-example" /><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/403948?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 00:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:646af9c0-cfa7-4449-ad2c-3dd36b0e6ee3</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Dear Maxime,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for the late follow up.&lt;/p&gt;
&lt;p&gt;Yes, looking at the terminal is one way to do it. You should see that the file being flashed is &amp;quot;merged_domains.hex.&amp;quot;&lt;/p&gt;
&lt;p&gt;I initially thought that one could select the wrong line in the Build Configuration panel in the nRF Connect VS Code Extension, and it would only flash the Application Core. However, I double check and it is not the case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="max-height:190px;max-width:214px;" height="190" src="https://devzone.nordicsemi.com/resized-image/__size/428x380/__key/communityserver-discussions-components-files/4/pastedimage1673310928219v1.png" width="214" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It seems the only&amp;nbsp;way to accidentally flash only the Application Core is by selecting specific hex file in &amp;lt;build folder&amp;gt;/zephyr.&lt;/p&gt;
[quote user="MaximeCharriere"]It seems that the problem has reappeared, and that my&amp;nbsp;only way to make it work again is to s&lt;span&gt;etup another unmodified application based on the peripheral_power_profiling sample, build, and erase and flash.&lt;/span&gt;[/quote]
&lt;p&gt;The symptom you describe here&amp;nbsp;sound very very strange. Could you please reattempt with a different sample? I can recommend the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/samples/bluetooth/beacon/README.html"&gt;Bluetooth: Beacon&lt;/a&gt; sample, or the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Peripheral UART&lt;/a&gt; sample.&lt;/p&gt;
&lt;p&gt;If those works well, I think we should then closely examine your flashing steps.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/403336?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 09:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29615d79-0e5e-4d56-877d-552d0ad45925</guid><dc:creator>MaximeCharriere</dc:creator><description>&lt;p&gt;It seems that the problem has reappeared, and that my&amp;nbsp;only way to make it work again is to s&lt;span&gt;etup another unmodified application based on the peripheral_power_profiling sample, build, and erase and flash.&lt;br /&gt;&lt;br /&gt;What do you think about &amp;quot;making sure it was done for both cores?&amp;quot;. How to check it? Just by looking in the terminal?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/403289?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 07:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83db5c79-5e1b-487a-a4d4-97931b17e1da</guid><dc:creator>MaximeCharriere</dc:creator><description>&lt;p&gt;Dear Hieu,&lt;/p&gt;
&lt;p&gt;You were right, it works. Thanks a lot for the help.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maxime&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/403264?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2023 21:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9194fc88-1f51-460d-aab3-87a82f11c7e3</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Dear Maxime,&lt;/p&gt;
&lt;p&gt;It is very odd that the those Kconfig&amp;#39;s fix your issue, as the peripheral_power_profiling sample does not seem to rely on them to work.&lt;/p&gt;
&lt;p&gt;I cannot reproduce your initial issue on my end.&amp;nbsp;However, while my sample built and works, I see that it&amp;nbsp;runs well without the same two Kconfig.&lt;/p&gt;
&lt;p&gt;My best guess is that in your initial attempts, you only flashed the App Core after accidentally overwrote the Net Core with something wrong. Thus, the application always failed.&lt;/p&gt;
&lt;p&gt;In your recent attempt, you must have now writen a correct image to the Net Core, and thus things work.&lt;/p&gt;
&lt;p&gt;May I ask you to setup another unmodified application based on the peripheral_power_profiling sample, build, and erase and flash, making sure it was done for both cores?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/402996?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 14:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89116347-ad62-4084-9320-749d6344295b</guid><dc:creator>MaximeCharriere</dc:creator><description>&lt;p&gt;Dear Hieu,&lt;br /&gt;&lt;br /&gt;It seems that our answers have crossed :) . Do you have an explanation for my last&amp;nbsp;response ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/402994?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 14:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d89d6a-745c-411b-9736-157312cff541</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;When you flash the device, did you make sure that you are flashing both the application core and the network core?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/402993?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 14:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe313d1-0919-4638-91eb-a843e2d9b56e</guid><dc:creator>MaximeCharriere</dc:creator><description>&lt;p&gt;After following this post:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90574/get-error-message-when-running-exsample-project-on-nrf5340dk"&gt;get error message when running exsample project on nrf5340DK - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I managed to solve my problem by adding :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_BT_EXT_ADV=y&lt;/p&gt;
&lt;p&gt;CONFIG_BT_PER_ADV=y&lt;/p&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;samples/bluetooth/hci_rpmsg/prj.conf&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;But I really don&amp;#39;t understand why it solved my problem, and why it worked before without it and not now?&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/402980?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 13:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb8b5e51-e66c-4a37-b2c5-529ec3ee15d7</guid><dc:creator>MaximeCharriere</dc:creator><description>&lt;p&gt;In fact, I had inadvertently deleted the file. And I put it back (and then also redid everything from the beginning..) but the problem remains. I also did an &amp;quot;Erase All&amp;quot;, but without success&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to create advertising set (err -5) with Peripheral_Power_Profiling example</title><link>https://devzone.nordicsemi.com/thread/402972?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 13:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d1bbab4-fe15-4014-b898-eb7ba2daacea</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Maxime,&lt;/p&gt;
&lt;p&gt;What was the change you made to hci_rpmsg.conf?&lt;/p&gt;
&lt;p&gt;Have you tried to erase the SoC completely before reflashing?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>