<?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 Bluetooth Init Failed in Sample Apps: EINVAL -22</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115269/nrf5340-bluetooth-init-failed-in-sample-apps-einval--22</link><description>Using nrf5340 DK with v2.7.0 SDK + toolchain. Blinky app works fine. Tried the sample apps: 
 - peripheral_hr 
 - peripheral_ht 
 Which both reproduced the exact same error. 
 Process: Built a configuration for the sample app for nrf5340dk_nrf5340_cpuapp</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Oct 2024 08:18:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115269/nrf5340-bluetooth-init-failed-in-sample-apps-einval--22" /><item><title>RE: NRF5340 Bluetooth Init Failed in Sample Apps: EINVAL -22</title><link>https://devzone.nordicsemi.com/thread/505474?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 08:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:525f50b7-0219-47d9-8f42-56ada231b9e3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see from the video that you don&amp;#39;t get the netcore generated at all, so the error you are getting is expeted given that. However, the net core image should have automatically been added. Moreover,&amp;nbsp; I see the same on my end now. I need to look a bit more into this to understand why I did not reproduce it before on my Linux system and why this happens, as it is not the intentional behaviour (parent-chilld s&lt;/p&gt;
&lt;p&gt;One solution for now&amp;nbsp;is to specificaylly build with&amp;nbsp;--no-sysbuild (parent-child) which works on my end. (Another could be to add build and program the hci_ipc image for the net core separately).&lt;/p&gt;
&lt;p&gt;Edit: It turns out that on my failing system sysbuild was set as default with west, perhaps that could be the case on youras as well. To change it, open a nRF Connet terminal within VS Code, and type the following command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west config --local build.sysbuild False&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Bluetooth Init Failed in Sample Apps: EINVAL -22</title><link>https://devzone.nordicsemi.com/thread/505435?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 22:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:341a4da7-1082-4c36-9f82-e5440ca89e6d</guid><dc:creator>asdima</dc:creator><description>&lt;p&gt;Hi, Thanks so much for the prompt response.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve reinstalled the toolchain and SDK from scratch after a PC of my computer. I repeated the process above using peripheral_ht, and I&amp;#39;ve taken a quick 3 min video to demonstrate the error I am seeing. In the video, I build, flash and then reset the board so you can see the output on serial port. Build output is fully in view. I&amp;nbsp;have also attached a picture of the physical DK connected to my USB port, in case there are any jumpers/connections missing that you think may impact this test.&lt;/p&gt;
&lt;p&gt;In short summary, the ERR-22 shows up after building peripheral_ht for&amp;nbsp;&lt;span&gt;nrf5340dk/nrf5340/cpuapp on v2.7.0 SDK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Video:&lt;br /&gt;&lt;a href="https://www.loom.com/share/26cd4fddc6794c1a952de616b4088835?sid=c2911f04-009c-4cdd-818e-bad1a4866d00"&gt;https://www.loom.com/share/26cd4fddc6794c1a952de616b4088835?sid=c2911f04-009c-4cdd-818e-bad1a4866d00&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&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/nrf5340.jpg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 Bluetooth Init Failed in Sample Apps: EINVAL -22</title><link>https://devzone.nordicsemi.com/thread/505179?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 12:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ecdbce-f468-43aa-ad68-93dd9b1dfba9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have attempted to reproduce this without success. Both the&amp;nbsp;&lt;span&gt;peripheral_hr and&amp;nbsp;peripheral_ht runs well when I build for the app core, and the net core image is automatically added as well. This happens both when using sys-build and the older child/parent approahc. I notice you write&amp;nbsp;nrf5340dk_nrf5340_cpuapp, but with SDK nRF Connect SDK 2.7.0 and higher you should use&amp;nbsp;&lt;/span&gt;nrf5340dk/nrf5340/cpuapp (hardware model v2).&lt;/p&gt;
&lt;p&gt;If you still cannot make it work, can you upload the full build log so that I see more of what you have done? Also, can you verify that you are using both the 2.7.0 SDK and 2.7.0 toolchain and that you have not made any changes to the SDK code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>