<?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>Peripheral UART example does not run on 7002DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113903/peripheral-uart-example-does-not-run-on-7002dk</link><description>I have been successfully using the Peripheral UART example on a 5340DK board. I tried rebuilding for the 7002DK, and am getting runtime errors. The UART initializes, but the call to bt_enable() returns EAGAIN: 
 [00:00:17.895,446] [0m&amp;lt;inf&amp;gt; peripheral_uart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Aug 2024 16:10:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113903/peripheral-uart-example-does-not-run-on-7002dk" /><item><title>RE: Peripheral UART example does not run on 7002DK</title><link>https://devzone.nordicsemi.com/thread/498492?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 16:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa39b2dc-4dc7-441d-96b1-043bb542dbf5</guid><dc:creator>Fisherdude</dc:creator><description>[quote userid="107683" url="~/f/nordic-q-a/113903/peripheral-uart-example-does-not-run-on-7002dk/498388"]On newer DKs it is also often required to do a recover when flashing for the first time to unlock some registers (this is prompted when attempting to flash a new DK for the first time in VS Code), so that might be why you had to erase it with West Flash.[/quote]
&lt;p&gt;I&amp;#39;m sure this is the root cause of what I was seeing. Good to know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral UART example does not run on 7002DK</title><link>https://devzone.nordicsemi.com/thread/498388?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 07:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:202241b9-9bc5-4b7e-b75e-8d572f8d7acb</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;My thoughts is that when you do it through Ozone you don&amp;#39;t necessarily get the full firmware that you need for the application. Lets say that you for instance only upload the application .elf or that you only upload an .elf file when using Debug with Ozone to program the board, you don&amp;#39;t get the also required bootloader MCUBoot (given that you have that) or any other required images in the multi-image build that is the firmware for a 7002DK.&lt;/p&gt;
&lt;p&gt;When flashing with VS Code, you&amp;#39;re using &amp;quot;West Flash&amp;quot;, which in turn is built to ensure that you get all the relevant images from the build folder when flashing.&lt;/p&gt;
&lt;p&gt;Just a disclaimer, this is just my thoughts and I&amp;#39;ve not verified it since I have little experience with using Ozone, but it&amp;#39;s worth investigating from your end.&lt;/p&gt;
&lt;p&gt;On newer DKs it is also often required to do a recover when flashing for the first time to unlock some registers (this is prompted when attempting to flash a new DK for the first time in VS Code), so that might be why you had to erase it with West Flash.&lt;/p&gt;
[quote user="Fisherdude"]So bottom line, the UART Peripheral example *does* work with no modification between the two boards (other than the board selection) if it gets fully programmed.[/quote]
&lt;p&gt;Thats good to hear! I see that the nRF7002DK is not mentioned under&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;requirements&lt;/a&gt;&amp;nbsp;for the peripheral UART sample, so just note that the sample has not been fully tested for that board.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral UART example does not run on 7002DK</title><link>https://devzone.nordicsemi.com/thread/498348?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 18:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d981897-8f77-4969-8b7b-10226c8ce7cf</guid><dc:creator>Fisherdude</dc:creator><description>&lt;p&gt;More information. I had been programming the board via &amp;quot;Debug with Ozone&amp;quot;. When I used the &amp;quot;Flash&amp;quot; option in nRF Connect VS Code, I initially got an error. When I let Flash erase and restore the image, it started working.&lt;/p&gt;
&lt;p&gt;So bottom line, the UART Peripheral example *does* work with no modification between the two boards (other than the board selection) if it gets fully programmed.&lt;/p&gt;
&lt;p&gt;Any ideas on how the network MCU may have been corrupted, and why doing an erase and flash with Ozone did not restore it?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral UART example does not run on 7002DK</title><link>https://devzone.nordicsemi.com/thread/498342?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 16:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b80935-c643-4e38-aa96-a3c4880a47c4</guid><dc:creator>Fisherdude</dc:creator><description>&lt;p&gt;Thanks, Andreas. I&amp;#39;ll look at the documentation and see if it helps. I&amp;#39;m not currently *intentionally* enabling the wi-fi on the nRF7002DK, although that is the plan going forward. So certainly the coexistence documentation will help there.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peripheral UART example does not run on 7002DK</title><link>https://devzone.nordicsemi.com/thread/498182?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 07:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:991f155e-28b2-49b7-a33b-3f7c966f8eca</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Am I naive to assume the 5340 should work the same on both the 5340DK and 7002DK boards?[/quote]
&lt;p&gt;To some extent, but not too naive. I&amp;#39;ll try to explain here. The nrf5340 on the nRF7002DK has other assignments than the sole 5340SoC on the nRF5340DK has. In the nRF7002DK its job is to control the nRF7002 Wifi chip + the application you develop.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The next thing that you will have to consider when mixing in BLE with the nRF700x series is the fact that you can do both BLE and Wifi simultaneously, but you will have to implement a routine that multiplexes the 2.4GHz WiFi and BLE radio usage since there is only one radio present on the board. See this sample for reference:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/wifi/ble_coex/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/wifi/ble_coex/README.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another reference I recommend that you use is the WiFi fundamentals course at our academy pages (&lt;a href="https://academy.nordicsemi.com/courses/wi-fi-fundamentals/"&gt;https://academy.nordicsemi.com/courses/wi-fi-fundamentals/&lt;/a&gt;), as well as any other relevant nRF Connect SDK fundamentals/intermediary and BLE fundamentals course found here&amp;nbsp;&lt;a href="https://academy.nordicsemi.com"&gt;https://academy.nordicsemi.com&lt;/a&gt;. The WiFi course does not go through WiFi + BLE coexistence, but its still a good reference.&lt;/p&gt;
&lt;p&gt;To summary:&lt;/p&gt;
&lt;p&gt;To implement peripheral_uart support for the nrf5340 I would recommend that you use the wifi-ble_coexistence sample as a basis and try to integrate the peripheral_uart implementation on top of this. This should allow you to understand better how coexistence between WiFi and BLE works on the nRF7002DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know if this answers your question,&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>