<?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>Using Serial recovery with the NRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111033/using-serial-recovery-with-the-nrf5340</link><description>Hello community, 
 I am using BL5340PA BLE controller board from Liard connectivity which is based on the nRF5340 SoC. The BL5340 module allows all of the base functionality in the nrf5340 module, but also adds an external FEM in increase the TX power</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 May 2024 11:11:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111033/using-serial-recovery-with-the-nrf5340" /><item><title>RE: Using Serial recovery with the NRF5340</title><link>https://devzone.nordicsemi.com/thread/482770?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 11:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aae40979-a96f-491b-aef2-90ae7edc804b</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In general I&amp;nbsp;don&amp;#39;t think it would lead anywhere to create a custom HCI command since it would only affect the network core and not reset the application core for the 5340. I presume you are using HCI_USB, and there is a PR for adding a warning regarding &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/68405/commits/7f6907c3021aaee9b89be783d75f1a5b3326d639"&gt;it&lt;/a&gt;. I think the best solution would be to either forward a GPIO to the network core that you connect to the reset pin, so you can trigger a reset for application core and enter bootloader option.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another alternative would be to configure the application so that it enter bootloader mode for a few seconds every time you reboot your device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would also suggest looking into HCI_UART over usb then using hci_usb. To cite a coworker &amp;quot;&lt;span&gt;I get the impression that hci over usb as a transport layer is slightly&amp;nbsp;unstable by design; for simple use cases where transfer is not stressed then hci_usb is functional, but for stability you should use uart or spi as&amp;nbsp;hci transport. It seems as most vendors use&amp;nbsp;uart hci transport due to this, e.g. in phones, laptops etc. We plan to add a disclaimer to the hci_usb sample. A suggested workaround is to use compile hci_uart with the cdc uart driver instead (if you need to use usb, and cant use uart or spi directly).&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serial recovery with the NRF5340</title><link>https://devzone.nordicsemi.com/thread/482732?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 07:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0664deb5-2a87-422f-91d7-23e55421f67e</guid><dc:creator>Utsav R Shah</dc:creator><description>&lt;p&gt;Thank you so much &lt;a href="https://devzone.nordicsemi.com/members/runsiv"&gt;runsiv&lt;/a&gt;&amp;nbsp; for the suggestion. I will definately go through the course material to know more about DFU.&lt;/p&gt;
&lt;p&gt;I had gone through some applications on serial recovery and was successfully able to do a firmware update on my DK board.&lt;/p&gt;
&lt;p&gt;I wish to ask one thing which is about creating a custom HCI command to reset the board in case a firmware update has to be done in runtime. I would be using the Custom BL5340 board that does not have support for any button reset and it may not be possible for me to restart the entire system to go into recovery mode.&lt;/p&gt;
&lt;p&gt;How can I create a custom HCI command that I can execute at runtime so that the board goes into recovery mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serial recovery with the NRF5340</title><link>https://devzone.nordicsemi.com/thread/482718?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 07:18:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a195e2-e16c-425f-b764-c6dc1c66030b</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Utsav&lt;/p&gt;
&lt;p&gt;I think my best recommendation would be to go through our lesson on &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;Bootloaders and DFU in the NCS Intermediate course&lt;/a&gt;. It gives a very good understand how DFU and how everything fits together.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>