<?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>How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79809/how-to-add-spis-example-in-secure-dfu-ble-example</link><description>Hi Nordic Team, 
 I was doing OTA in nrf52840 using Secure DFU ble example in nrf5 sdk. Where i want add some customizations in the code. 
 1.I wanted to add spis example to secure dfu ble example.to send date to another ic. it is working perfectly fine</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Sep 2021 13:42:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79809/how-to-add-spis-example-in-secure-dfu-ble-example" /><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/331955?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 13:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30b45699-f20b-4924-8a32-1366a03d7d91</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Have you tried to see if it works if you also reset the stm? I wonder if the CS line might being asserted by the stm while the nRF reboots. &lt;/p&gt;
&lt;p&gt;Also, were you able to debug the bootloader like I suggested?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/331952?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 13:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc93e7dc-bea6-42a1-8ddf-61b8869777ba</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;no from stm im giving reset to nrf dfu.but when i put dfu code in nrf52840 dk and pressed the boot/reset pin that is not triggering a reset to nrf in dk also..whether we need to add something in nrf dfu code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/331939?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 13:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006295a3-a318-415a-9bdc-a538aec87543</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;OK, it&amp;#39;s hard to say what&amp;#39;s just wrong based on the information given. Can you attach the debugger after the reset and check if the SPIS buffer is being set? Also, does the reset button also reset the stm?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/331850?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 08:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccd9560d-cb8d-45c8-8638-8e657eed8581</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;Go again to DFU mode&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/331849?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 08:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d62aa7-bc7f-4a3f-9862-b0db7277ccc4</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;DFU&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/331841?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 07:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0f83a7a-cc96-4e45-afc0-c0068eaf7892</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;What happens when you press the reset button, does it exit DFU mode and go back to running the main application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/331813?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 03:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d911a10-df9c-4c52-8a58-96802363b727</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;i have added this&amp;nbsp;&amp;nbsp; &amp;nbsp; NRF_POWER-&amp;gt;TASKS_CONSTLAT = 1; in my code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/331811?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 02:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a1fa3a-a9a6-4579-8005-64486c000ad1</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;Hi spis is now working in dfu mode and mac id also I&amp;#39;m able to send to master.but when I press the reset button in dfu mode then spis is not working I&amp;#39;m getting 0xff,0xff,...etc in master.&lt;/p&gt;
&lt;p&gt;Pls help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/330456?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 10:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:182bb3cb-9630-4476-b82e-9b4b8a9a0199</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This call must be made after the Softdevice has been enabled by nrf_bootloader.c::nrf_dfu_init(). I also recommend you validate the return code:&lt;/p&gt;
&lt;p&gt;uint32_t err_code = sd_ble_gap_addr_get(&amp;amp;ble_addr);&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK(err_code) // invoke error handler if err_code != NRF_SUCCESS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/330435?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 10:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f047a3da-a4cd-4451-94c8-f3e9b1c51bb6</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;if (dfu_enter)&lt;br /&gt; {&lt;br /&gt; &lt;br /&gt; nrf_bootloader_wdt_init();&lt;br /&gt; scheduler_init();&lt;br /&gt; //dfu_enter_flags_clear();&lt;br /&gt; gpio_init();&lt;br /&gt; ble_gap_addr_t mac_addr;&lt;br /&gt; sd_ble_gap_addr_get(&amp;amp;mac_addr);&lt;br /&gt; tx_buf[0]=0x11;&lt;br /&gt; tx_buf[1]=0x22;&lt;br /&gt; tx_buf[2]=mac_addr.addr[0];&lt;br /&gt; tx_buf[3]=mac_addr.addr[1];&lt;br /&gt; tx_buf[4]=mac_addr.addr[2];&lt;br /&gt; tx_buf[5]=mac_addr.addr[3];&lt;br /&gt; tx_buf[6]=mac_addr.addr[4];&lt;br /&gt; tx_buf[7]=mac_addr.addr[5];&lt;br /&gt; tx_buf[8]=0x44;&lt;br /&gt; tx_buf[9]=0x55;&lt;br /&gt; spi_Init();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/330421?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 09:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f944ad4-d69c-4416-a82e-f9129b2d5c94</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;mac id is F7:FB:53:21:22:34&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/330420?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 09:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef2c4160-045a-4450-abfb-530eb8069d9b</guid><dc:creator>Akshay19</dc:creator><description>&lt;p&gt;yes it is working now but i want to transfer mac id of nrf to stm. Im using the lines of code to do that&lt;/p&gt;
&lt;p&gt;ble_gap_addr_t ble_addr;&lt;br /&gt; sd_ble_gap_addr_get(&amp;amp;ble_addr);&lt;/p&gt;
&lt;p&gt;but when i call that im only getting 2,3,0,0,0,0,&lt;/p&gt;
&lt;p&gt;as mac id&lt;/p&gt;
&lt;p&gt;i call the before and after spi int&lt;/p&gt;
&lt;p&gt;but result is same&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. where should we call this code to get the correct mac id&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add spis example in Secure DFU ble example</title><link>https://devzone.nordicsemi.com/thread/330222?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 10:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc9f7fe7-1164-4d96-ae9e-6eadce179375</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you already enabling the constant latency power mode like in the SPIS example? This mode makes the SPIS wakeup shorter so you don&amp;#39;t have to assert the CSN line as early.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    // Enable the constant latency sub power mode to minimize the time it takes
    // for the SPIS peripheral to become active after the CSN line is asserted
    // (when the CPU is in sleep mode).
    NRF_POWER-&amp;gt;TASKS_CONSTLAT = 1;
    ...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note: the SPIS should be unitialized and the sub-power mode should be set to low power before booting the main app.&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>