<?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 update another chip firmware using nRF52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53953/how-to-update-another-chip-firmware-using-nrf52840</link><description>Hi team, there is nRF52840 and STM32 connected via UART. I need to update ST firmware over nRF. I managed to send stm32 .hex (FW intended for ST) over nRF DFU service and check the flag .bank_1.bank_code it is definitely changed to NRF_DFU_BANK_VALID_EXT_APP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2019 15:03:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53953/how-to-update-another-chip-firmware-using-nrf52840" /><item><title>RE: How to update another chip firmware using nRF52840?</title><link>https://devzone.nordicsemi.com/thread/218293?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 15:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c16c296-da1d-4683-9f25-60307fa6ff02</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Vasa,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;once the external application has been transferred to the nRF52840, the bootloader will call&amp;nbsp;nrf_dfu_validation_post_external_app_execute().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The external application will be located in BANK 1. You can find the bank 1 start address by calling&amp;nbsp;nrf_dfu_bank1_start_addr() and the size of the application will be passed to&amp;nbsp;&lt;span&gt;nrf_dfu_validation_post_external_app_execute with the&lt;/span&gt;&amp;nbsp;dfu_init_command_t struct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So once you have the Bank 1 start address and the size of the external application you should be able to use the UART peripheral to transmit the firmware over to the STM32. You can use the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__uarte.html"&gt;UARTE&lt;/a&gt;&amp;nbsp;HAL or driver directly or use the &lt;a title="SLIP library" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_slip.html?cp=5_1_3_46"&gt;SLIP library&lt;/a&gt;&amp;nbsp;or the&amp;nbsp;&lt;a title="Libuarte - advanced UARTE driver" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_libuarte.html?cp=5_1_3_27"&gt;Libuarte - advanced UARTE driver&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>