<?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>is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78740/is-that-possible-to-lookup-a-bitmap-table-from-main-application-code-from-bootloader-code</link><description>Hi, 
 
 I am using nrf52840, need to modify the bootloader to lookup a big bitmap table. But since the table is big, it cannot allocate within the bootloader Rom area. 
 Is that possible to put this table in main Application area but let the bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Sep 2021 07:59:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78740/is-that-possible-to-lookup-a-bitmap-table-from-main-application-code-from-bootloader-code" /><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/328111?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 07:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a005b4cb-5b87-4e8a-b2a2-8a0e6a1875c1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This thread continues here: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79245/nrf52840-bootloader-issue---bl_size-always-over-limit"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/79245/nrf52840-bootloader-issue---bl_size-always-over-limit&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/328051?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 22:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef8efa1-5bdb-4fbf-bacd-a849f2c599fa</guid><dc:creator>DYNAMICTOYS</dc:creator><description>&lt;p&gt;Dear Vidar,&lt;/p&gt;
&lt;p&gt;The App validation issue was fixed now after changing correct version.&lt;/p&gt;
&lt;p&gt;But now I found another issue when DFU bootloader.&amp;nbsp; ( note : dfu the same bootlaoder )&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the bl_size always has around 5 k over limit whateven I increase the total compiled size.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i.e. move down the starting address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In Keil, iROM set start address from 0xE0000.&amp;nbsp; So from 0xE0000 to 0xFE000, it should have 122.88k.&lt;/p&gt;
&lt;p&gt;From Keil compiled result, I got&lt;/p&gt;
&lt;p&gt;Build target &amp;#39;nrf52840_xxaa_s140&amp;#39;&lt;br /&gt;linking...&lt;br /&gt;Program Size: Code=32732 RO-data=53448 RW-data=300 ZI-data=32584&lt;br /&gt;FromELF: creating hex file...&lt;br /&gt;&amp;quot;.\_build\RemoteBootloader840.axf&amp;quot; - 0 Error(s), 0 Warning(s).&lt;br /&gt;Build Time Elapsed: 00:00:03&lt;/p&gt;
&lt;p&gt;After program Softdevice, Main App and Bootlaoder to development board, start DFU will get the following debug print from RTT Viewer.&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: check if key press&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: DFU mode requested via button.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Signature required. Checking signature.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Calculating hash (len: 64)&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Verify signature&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Image verified&lt;br /&gt;00&amp;gt; &amp;lt;error&amp;gt; nrf_dfu_validation: BL size (118876) over limit (114688)&lt;br /&gt;00&amp;gt; &amp;lt;error&amp;gt; nrf_dfu_validation: Init packet does not contain valid firmware size&lt;br /&gt;00&amp;gt; &amp;lt;warning&amp;gt; nrf_dfu_ble: DFU request 4 failed with error: 0x4&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: display LCD image&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why the BL size is118876?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How this size calculated?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and why the limit is only 114688?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then if I change the Starting address from 0xDE000,&lt;/p&gt;
&lt;p&gt;Keil result is&lt;/p&gt;
&lt;p&gt;Program Size: Code=32732 RO-data=53448 RW-data=300 ZI-data=32584&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And debug printing become&amp;nbsp;&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;error&amp;gt; nrf_dfu_validation: BL size (135260) over limit (131072)&lt;/p&gt;
&lt;p&gt;Even adding all Code, Ro-data , Rw-data and Zi-data, it is still not meet 135k.&amp;nbsp; So how the bl_size is 135260?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Am I missing some compiler setting?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Although I should not do that :&amp;nbsp; in dfu_req_handling.c&amp;nbsp; &amp;nbsp;If I change the line&lt;/p&gt;
&lt;p&gt;if (p_init-&amp;gt;bl_size &amp;lt;= BOOTLOADER_SIZE)&lt;/p&gt;
&lt;p&gt;to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if (p_init-&amp;gt;bl_size -5000 &amp;lt;= BOOTLOADER_SIZE)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then it can DFU without any problem.&amp;nbsp; After DFU, everything work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/327933?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 09:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dcdcd25-36be-4fc9-aeea-92a4ff4ba60f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Dear Martin,&lt;/p&gt;
&lt;p&gt;This only for the bootloader, the application does not have its own settings page. And the bootloader settings version you mentioned&amp;nbsp; must be set to &amp;#39;2&amp;#39; when your are using SDK 17 (shall be version 2 for sdk 15.3.0 and &lt;span style="text-decoration:underline;"&gt;later&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="martinly77"]&lt;p&gt;&amp;nbsp;&amp;lt;warning&amp;gt; app: Boot validation failed. App is invalid.&lt;/p&gt;
&lt;p&gt;So what is missing by the App itself?&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;Is the application programmed onto the device exactly the same as the .hex file you passed to --application when you generated the settings page? If not, the boot validation will fail because the the checksum stored in the bootloader settings page won&amp;#39;t match the application image.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s also possible to turn off boot validation by setting --app-boot-validation to NO_VALIDATION instead of VALIDATE_GENERATED_CRC when you create the settings page.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1630661153631v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2) You need to make sure the new app in the DFU package has a higher version number than the one you currently have programmed on your device. The bootloader has &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__dfu__validation__config.html#gaf215258550046aa3679a3aa9c8ae8d81"&gt;NRF_DFU_APP_DOWNGRADE_PREVENTION&lt;/a&gt; enabled by default.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/327679?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 21:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e47c0a-232d-4820-a49c-a340e0962896</guid><dc:creator>DYNAMICTOYS</dc:creator><description>&lt;p&gt;Dear Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do we need to do a setting file for both Bootloader and Main App or just the Bootloader?&lt;/p&gt;
&lt;p&gt;For SDK 17, what version number should be used?&amp;nbsp; 3 ? or 4?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;in&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_settings_generate_display.html&amp;amp;cp=10_7_6"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_settings_generate_display.html&amp;amp;cp=10_7_6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;it only mentioned 15.3 is 2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I had created a setting file and merge with Bootloader file, then upload to development board.&lt;/p&gt;
&lt;p&gt;Now the waring message is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;warning&amp;gt; app: Boot validation failed. App is invalid.&lt;/p&gt;
&lt;p&gt;So what is missing by the App itself?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) packed a zip and did one DFU loading.&amp;nbsp; It printed out following message&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Signature required. Checking signature.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Calculating hash (len: 64)&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Verify signature&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_validation: Image verified&lt;br /&gt;00&amp;gt; &amp;lt;warning&amp;gt; nrf_dfu_ver_validation: FW version too low.&lt;br /&gt;00&amp;gt; &amp;lt;warning&amp;gt; nrf_dfu_validation: Prevalidation failed.&lt;br /&gt;00&amp;gt; &amp;lt;warning&amp;gt; nrf_dfu_ble: DFU request 4 failed with error: 0xB&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What is the minimum FW version?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/327537?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 08:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:880a3f54-4614-4fe4-bbea-95d809879d20</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Yes, you can use this start address.&lt;/p&gt;
[quote user="martinly77"]The&amp;nbsp;s_dfu_settings.bank_0.bank_code&amp;nbsp; is 0, look like it cannot see the Main App code.[/quote]
&lt;p&gt;&amp;nbsp;Yes, the bootloader does not that a valid application is present in bank 0. This is why when programming the application directly through the debug interface you also have to program the Bootloader settings page to &amp;quot;mark&amp;quot; the application as valid. Documentation on how to generate the settings page can be found here:&amp;nbsp;&lt;span&gt;&lt;a title="Generating and displaying bootloader settings" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=10_7_6"&gt;Generating and displaying bootloader settings&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;e.g.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;// Generate the settings page
 nrfutil settings generate --family NRF52840^
 --application application.hex^
 --application-version-string &amp;quot;1.0.0&amp;quot;^
 --bootloader-version 1^
 --bl-settings-version 2^
 --app-boot-validation VALIDATE_GENERATED_CRC^
 settings.hex
 
 // Load the settings page to the device with jlink
 nrfjprog --program settings.hex --sectorerase --reset &lt;/pre&gt;&lt;/p&gt;
[quote user="martinly77"]Another question is where is the Main App starting address?&amp;nbsp; &amp;nbsp;My Main App had Rom1 set to 0x27000.&amp;nbsp; ( it was came from an example code in the SDK ).[/quote]
&lt;p&gt;&amp;nbsp;The start address depends on the size of the Softdevice you use. S140 v.7.x.x is 0x27000 bytes, so 0x27000 is the correct start address as long as you&amp;#39;re using this Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/327499?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8a5818b-bf07-44a7-b6cd-e2c20a2f268f</guid><dc:creator>DYNAMICTOYS</dc:creator><description>&lt;p&gt;Dear Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My bootlaoder need a size of 110k,&amp;nbsp; so can I set the starting address from 0xE3000?&lt;/p&gt;
&lt;p&gt;After I set to this start address, enable RTT viewer in Bootloader code, using NRFGo Studio to upload SottDevice, Main App code and also this bootloader, the RTT print out the following debug print&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: check if key press&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot. 0&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: DFU mode because app is not valid.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;s_dfu_settings.bank_0.bank_code&amp;nbsp; is 0, look like it cannot see the Main App code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If only upload Softdevice and Main App, it can run normally.&amp;nbsp; But with Softdevice, it cannot jump to Main App.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another question is where is the Main App starting address?&amp;nbsp; &amp;nbsp;My Main App had Rom1 set to 0x27000.&amp;nbsp; ( it was came from an example code in the SDK ).&lt;/p&gt;
&lt;p&gt;Is this correct?&lt;/p&gt;
&lt;p&gt;I am using SDK 1702&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/327046?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 18:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af562c7-4a6c-4769-8431-cb212d14c927</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;You shouldn&amp;#39;t have to create a custom scatter file for this. It should be sufficient to simply adjust the IROM1 start and size from the &amp;quot;Target&amp;quot; dialog (i.e. Options for target -&amp;gt; Target).&lt;/p&gt;
[quote user="martinly77"]&lt;p&gt;is that because of the ROM size not enough?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;from the Target setting, IROM1 from 0xF8000 with size 0xD1000&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;this is over 100k size.&amp;nbsp; &amp;nbsp;The code add in just around 60k.&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;There must be an error in the calculation here, with the bootloader starting at 0xF8000 you really only have 24KB for the bootloader code. Might be easier to picture this when you see the table column for the 52840 here: &lt;span&gt;&lt;a title="Memory layout" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader.html?cp=8_1_3_5_0_7#lib_bootloader_memory"&gt;Memory layout&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/327041?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 17:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a535061-e689-45bd-bccc-22ace706ec83</guid><dc:creator>DYNAMICTOYS</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;After I added my code inside the bootloader, it had the follow error&lt;/p&gt;
&lt;p&gt;.\_build\nrf52840_xxaa_s140.axf: Error: L6985E: Unable to automatically place AT section nrf_dfu_settings.o(.ARM.__AT_0x000FE000) with required base address 0x000fe000. Please manually place in the scatter file using the --no_autoat option.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the code, SPI need to be used and initialize and so if in SPI_Init(), this line put in, it cause such error&lt;/p&gt;
&lt;p&gt;nrf_drv_spi_init(&amp;amp;spi, &amp;amp;spi_config, LCDspi_event_handler, NULL);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Question are :&lt;/p&gt;
&lt;p&gt;1) how to manually&amp;nbsp; placement of scatter?&lt;/p&gt;
&lt;p&gt;2) is that because of the ROM size not enough?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;from the Target setting, IROM1 from 0xF8000 with size 0xD1000&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;this is over 100k size.&amp;nbsp; &amp;nbsp;The code add in just around 60k.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/325858?ContentTypeID=1</link><pubDate>Fri, 20 Aug 2021 08:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741ec262-3881-4fa2-ad50-f092371b6561</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;I see. Is it not an option to allocate more flash to the bootloader? Seems like that would be the best solution. It is technially possible to execute code outside of the bootloader similiar to how we do it with the Softdevice (see&amp;nbsp;&lt;span&gt;&lt;a title="Supervisor call interface" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_svc.html?cp=8_1_3_52"&gt;Supervisor call interface&lt;/a&gt;&lt;/span&gt;) but it starts becoming a bit more complicated then.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;Note: changing the bootloader start address (i.e. bootloader size) is not possible through DFU, so this will only work if you don&amp;#39;t already have devices out in the field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/325806?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 17:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8124d70-df89-44a3-af03-c3e690928761</guid><dc:creator>DYNAMICTOYS</dc:creator><description>&lt;p&gt;HI Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I may just put the lookup data to an external serial Flash.&amp;nbsp; But the problem is there is not enough space for a special calculation code to put in bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Actually, is that possible to call from bootloader to a subroutine / function in App main?&amp;nbsp; &amp;nbsp;How?&lt;/p&gt;
&lt;p&gt;Or can the bootloader jump to App main and after done calculation, jump from main back to bootloader?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you very much.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is that possible to lookup a bitmap table from Main Application code from Bootloader code?</title><link>https://devzone.nordicsemi.com/thread/325733?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 12:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30b09ea2-7d61-41c9-b740-2ad240426fb3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are probably several ways you can solve this. Are you using the FDS filesystem in your main application? The first solution that comes to mind is to simply reserve one or more flash pages in the application data region and place your table there. FDS includes a configuration setting which you can use to reserve the page : &lt;span&gt;&lt;a title="FDS_VIRTUAL_PAGES_RESERVED" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__fds__config.html?cp=8_1_6_10_18_0_8#ga28b38ad7ba33f489f4b3de4c67cdfa7f"&gt;FDS_VIRTUAL_PAGES_RESERVED&lt;/a&gt;. If you choose this approach, just remember to adjust the NRF_DFU_APP_DATA_AREA_SIZE symbol in your bootloader accordingly as that will prevent the bootloader from overwriting app data during DFU. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5861.pastedimage1629374366152v1.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2046.pastedimage1629374439025v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can the use a harcoded pointer to reference the lookup table inside the app data region. Same as how the bootloader accesses the bootloader settings page.&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>