<?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>Creating Bootloader with FreeRTOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63760/creating-bootloader-with-freertos</link><description>Hi, 
 
 We have 2 projects in pre-production stage that use nRF52840. We are also using FreeRTOS for both projects. 
 Now we need to create an OTA bootloader for both. There is a standard bootloader from Nordic that uses the power management module from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Mar 2021 13:31:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63760/creating-bootloader-with-freertos" /><item><title>RE: Creating Bootloader with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/299807?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 13:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d16a8f6-a180-4fc4-8b69-d7d702b575f5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We do not have any example for this, but i am quite confident you can use the standard bootloader for FreeRTOS based application. If you want to merge bootloader and application as one binary, then it is a different story. then it is the matter of making your project compilable.&lt;/p&gt;
&lt;p&gt;Have you tried using the standard bootloader in SDK with your FreeRTOs based application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating Bootloader with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/299806?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 13:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c79f4cb-4c0a-41f6-869e-81e5f4e21f86</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Andrew,&lt;/p&gt;
&lt;p&gt;David requested me to respond to you about this usecase.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]We also found that FreeRTOS&amp;nbsp;uses&amp;nbsp;its own power management functions, so there is a collision here.[/quote]
&lt;p&gt;Which standard example are you referring to here? Why do you think there will be a collision?&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The bootloader has control during the DFU process and does not give control to the application before the bootloader has done what it is supposed to do.&amp;nbsp; In that sense, i do not see a problem that bootloader has a different power management system than the application. In this scenario, i think
&lt;ol&gt;
&lt;li&gt;You can use the same mechanism of power management as the standard bootloader from the SDK have and let it have control over power management until it jumps to the application. After that, the application will have different (FreeRTOS) based power management, but that should be OK as the bootloader relinquished the control.&lt;/li&gt;
&lt;li&gt;disable the power management in bootloader&lt;/li&gt;
&lt;li&gt;port the power management function in the bootloader to use FreeRTOS API&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating Bootloader with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/260549?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 11:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71092667-d52a-4df6-96d0-b9a45c8de154</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="AndrewMospan"]Maybe you have an example of FreeRTOS+DFU...[/quote]
&lt;p&gt;&amp;nbsp;I have not&amp;nbsp;experimented to do this merge yet. hopefully someone&amp;nbsp;in this forum did.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating Bootloader with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/260411?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 14:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b28d859-25ce-4606-9a19-b85237338da7</guid><dc:creator>AndrewMospan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;Is there any way of merging&amp;nbsp;&amp;quot;ble_app_hrs_freertos&amp;quot;&amp;nbsp;and &amp;quot;ble_app_buttonless_dfu&amp;quot;?&lt;/p&gt;
&lt;p&gt;Maybe you have an example of FreeRTOS+DFU...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating Bootloader with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/260119?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 11:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e13818d-dc7a-4a31-aee1-2611c76b67ab</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Andrew,&lt;/p&gt;
&lt;p&gt;If you are using FreeRTOS in your application only and you have a bootloader project without FreeRTOS, then i guess both can live together in the same device without any issues. This is because when the bootloader is started, application&amp;nbsp;gives away control and application gets control only after the bootloader is done.&lt;/p&gt;
&lt;p&gt;Which examples exactly were in mind to merge? merging something with nrf_pwr_management and FreeRTOS power management is not very straightforward and needs some architectural considerations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>