<?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>nRF52840 Firmware update from stm32f407 (non-OS)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52935/nrf52840-firmware-update-from-stm32f407-non-os</link><description>Hi Everyone, 
 I need to develop a bootloader and a firmware update procedure.
My development environment is nRF52840, sdk 15.3.
Program download configuration 1) Download nRF52840&amp;#39;s firmware to stm32f407 memory from server through LTE modem.
2) RS-232C</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2020 09:04:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52935/nrf52840-firmware-update-from-stm32f407-non-os" /><item><title>RE: nRF52840 Firmware update from stm32f407 (non-OS)</title><link>https://devzone.nordicsemi.com/thread/229166?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 09:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c898754-8035-4d7d-bec8-75a0860765cf</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Alex,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="alex kim"]&lt;p&gt;&lt;/p&gt;&lt;p&gt;1.&amp;nbsp;&lt;span&gt;I added DEBUG inside the preprocessor symbol in the keil environment.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Undefined symbol app_error_save_and_stop (referred from app_error_weak.o) was printed when I build in keil&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The Bootloader projects does not include the app_error.c file where&amp;nbsp;&lt;span&gt;app_error_save_and_stop&amp;nbsp;() is defined to reduce the overal memory usage of the example. You can add it to the project from&amp;nbsp;&lt;/span&gt;&amp;nbsp;nRF5_SDK_15.3.0_59ac345\components\libraries\util&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="alex kim"]&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;2.&amp;nbsp;Which of the following messages would appear in uart of the secure_bootloader?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;lt;error&amp;gt; app: Received an error: 0x00000004!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Error Code 0x04 is&amp;nbsp;NRF_ERROR_NO_MEM meaning that there is&amp;nbsp;No Memory for operation. Which function in the bootloader is returning this error code?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Firmware update from stm32f407 (non-OS)</title><link>https://devzone.nordicsemi.com/thread/229012?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 11:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11957aa9-9ad2-4d1c-919d-f7e8d2144181</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi Bjorn&lt;/p&gt;
&lt;p&gt;I have two questions&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;&lt;span&gt;I added DEBUG inside the preprocessor symbol in the keil environment.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Undefined symbol app_error_save_and_stop (referred from app_error_weak.o) was printed when I build in keil&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.&amp;nbsp;Which of the following messages would appear in uart of the secure_bootloader?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;lt;error&amp;gt; app: Received an error: 0x00000004!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alex&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Firmware update from stm32f407 (non-OS)</title><link>https://devzone.nordicsemi.com/thread/214493?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 06:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a99e3e28-e75d-4bad-adc1-ae57a45cb405</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Firmware update from stm32f407 (non-OS)</title><link>https://devzone.nordicsemi.com/thread/214494?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 06:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:251c2980-2bb5-4ac1-b2f4-992ca2def21b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Firmware update from stm32f407 (non-OS)</title><link>https://devzone.nordicsemi.com/thread/214482?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 02:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46821cec-fa31-45de-b904-baef81698d09</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for your quick reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alex&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Firmware update from stm32f407 (non-OS)</title><link>https://devzone.nordicsemi.com/thread/213637?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 11:59:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb97b35-34f2-4b17-99a9-c005c0c53245</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Alex,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I recommend that you take a look at this C port of nrfutil:&amp;nbsp;&lt;a href="https://github.com/jimmywong2003/nrf-slim-serial-uart-dfu-host-c-code"&gt;https://github.com/jimmywong2003/nrf-slim-serial-uart-dfu-host-c-code&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think you should be able to run this on the STM side and then you only need to flash the&amp;nbsp;&lt;a title="Secure DFU Bootloader over Serial Link (UART/USB)" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/sdk_app_serial_dfu_bootloader.html?cp=5_1_4_4_4"&gt;Secure DFU Bootloader over Serial Link (UART/USB)&lt;/a&gt;&amp;nbsp;example to the nRF52840 to perform firmware updates of the nRF52840 from the STM.&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>