<?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>issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103364/issue-while-doing-ota-in-customised-firmware-with-nrf5340</link><description>hello, 
 i am using nrf5340 in our customised board with ncs 2.4.0 and having issue while merging ota in our customised code standalone code for ota is working fine which i hvave refered from this link https://github.com/hellesviknordic/samples_for_nrf_connect_sdk</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 09 Sep 2023 05:12:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103364/issue-while-doing-ota-in-customised-firmware-with-nrf5340" /><item><title>RE: issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/thread/445230?ContentTypeID=1</link><pubDate>Sat, 09 Sep 2023 05:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae2cf2ff-7b8d-4d7b-b3e6-fc368b3bd1f4</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;hi thanks that helped is there any handlers for dfu in nrf5340 so that i can stop my other handlers in nrf5340 because of other sensor handlers device gets disconnected with in 1.5 seconds&lt;/p&gt;
&lt;p&gt;regrads&lt;/p&gt;
&lt;p&gt;manikandan&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/thread/444774?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 16:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3212e43f-c634-48f1-9be6-e0abae482b62</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the logs. They are helpful. I can see that your device does not send any notifications when needed.&lt;br /&gt;First, the phone sends a &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect-Device-Manager/blob/75dfbcad35da8dfde97f1c63dc89bbd694668731/mcumgr-ble/src/main/java/io/runtime/mcumgr/ble/McuMgrBleTransport.java#L666-L667"&gt;Read Mcu Params request&lt;/a&gt; at time 10:27:17/669-677. The request is&amp;nbsp;explained&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect-Device-Manager/blob/75dfbcad35da8dfde97f1c63dc89bbd694668731/mcumgr-ble/src/main/java/io/runtime/mcumgr/ble/McuMgrBleTransport.java#L579-L588"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The timeout is set to &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect-Device-Manager/blob/344adc4b01b4a793b105d6012aaf17704420ee1a/mcumgr-ble/src/main/java/io/runtime/mcumgr/ble/McuMgrBleTransport.java#L692"&gt;1 second&lt;/a&gt;, but during that time there&amp;#39;s no response. The device should reply with McuParam response or with an error, but nothing is received. The timeout is ignored.&lt;/p&gt;
&lt;p&gt;Then the phone starts DFU and the first thing being done is checking that&amp;#39;s on the device (validation step) by sending &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect-Device-Manager/blob/75dfbcad35da8dfde97f1c63dc89bbd694668731/mcumgr-core/src/main/java/io/runtime/mcumgr/dfu/task/Validate.java#L55"&gt;Image Read State request&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Again, the device does not reply with anything. There&amp;#39;s no notification in the log. As a result, the phone disconnects.&lt;/p&gt;
&lt;p&gt;And here&amp;#39;s when I&amp;#39;m not 100% about. The disconnection happens less than 2.5 seconds after the first request. In my option the timeout for the Image Read State command is &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect-Device-Manager/blob/344adc4b01b4a793b105d6012aaf17704420ee1a/mcumgr-core/src/main/java/io/runtime/mcumgr/managers/ImageManager.java#L88"&gt;5 seconds&lt;/a&gt;. There are other requests with 2.5 second, but they aren&amp;#39;t called yet. So I don&amp;#39;t know why the phone:&lt;/p&gt;
&lt;p&gt;1. disconnects&lt;br /&gt;2. does it so quickly&lt;/p&gt;
&lt;p&gt;Anyway, the target device should send notifications and it doesn&amp;#39;t. I would start debugging in this direction.&lt;/p&gt;
&lt;p&gt;Also, you may use nRF Connect Device Manager app instead of nRF Connect. It has slightly newer version of the library and also produces logs to nRF Logger, if needed. (You need to install nRF Logger from Play Store, there&amp;#39;s no log pane in nRF Connect Device Manager app).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/thread/444276?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 09:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8059a559-4edf-4ad7-b9bd-2b66ba490f79</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;No logging work&amp;#39;s before doing ota and also if I do someother operation like reading sensor values and all.. But did not working while doing ota&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/thread/444274?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 09:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2395f2b1-71b5-4515-9647-3b5fa853ba26</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I would like to know if you have RTT logging working at all. Are you receiving any logs before, during, or after the DFU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/thread/444273?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 09:41:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65a1482b-0b73-43f3-bbe6-b4a9013fc56e</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;No I don&amp;#39;t see anything on the log while doing ota.. Is there any other way ??&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/thread/444249?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 08:50:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b487ff-e825-42c8-b3f2-2c41e019449d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;From the project configuration you provided, I see that you already have logging over RTT enabled. Are you receiving any logs over RTT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/thread/444155?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 15:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ad59d4-e9b6-4ef4-8ba4-f7daaf9bf64e</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;yes pinout and qspi are same and also standalone code works fine in our custom board i dont see any log on terminal may i know how can i enable bootloader log&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: issue while doing ota in customised firmware with nrf5340</title><link>https://devzone.nordicsemi.com/thread/444146?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 14:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c923e4b-187d-4c35-96c3-3b3529a12f66</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The log from the phone indicates that the connection is being dropped, but not why. Can you&amp;nbsp;get debug logs from the board? This log may provide us with more clues. Also, with regards to the&amp;nbsp;custom, does it have the same QSPI flash IC and pinout as the DK?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>