<?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 timer in nRF52840 SDK16 in bootloader.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64515/how-to-add-timer-in-nrf52840-sdk16-in-bootloader</link><description>Hi 
 I am test the DFU function in nRF52840. I want to add a timer to the bootloader to generate a one-second sleep action. But when even I have not started to use the timer just only add the &amp;lt;app.timer.c&amp;gt; and &amp;lt;drv_rtc.c&amp;gt; to the project and build successfully</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Aug 2020 11:58:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64515/how-to-add-timer-in-nrf52840-sdk16-in-bootloader" /><item><title>RE: How to add timer in nRF52840 SDK16 in bootloader.</title><link>https://devzone.nordicsemi.com/thread/263208?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 11:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0631bdb-f960-4ce7-abd5-2c56b158cef3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi &lt;span style="font-family:verdana, geneva;"&gt;Jonathan&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Are you building the bootloader with SES by chance? The flash_placement.xml file used by the bootloader is set-up so you don&amp;#39;t get a linker error even if the bootloader starts to grow into the &amp;quot;.mbr_params_page&amp;quot;. section. This could potentially explain why it stopped working even if you just added the modules without using them. Here is the placement file from SDK 17.0.0 which should result in a linker error if the bootloader becomes too big : &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-883ea208ac194404982cd474ab74e5f3/flash_5F00_placement.xml"&gt;devzone.nordicsemi.com/.../flash_5F00_placement.xml&lt;/a&gt;. You may re-build the bootloader with this one to confirm if it actually is too big. A solution then is to reduce the bootloader start address (note: address must be flash page-aligned)&lt;/p&gt;
&lt;p&gt;The bootloader already has 2 timers, one to feed the Watchdog if enabled, and one inactivity timer to make the bootloader time out at some point, these are implemented in nrf_bootloader_dfu_timers.c with RTC2.&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>