<?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>nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update</link><description>Hello, 
 for clarification I use the nrf5_SDK_for_Mesh_v2.1.1. 
 After an OTA update (with use of the nRF toolbox app) the nrf52832 seem to be in a state of constant reboots. After some digging I see that the error happens during the mesh initialization</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jul 2020 10:30:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update" /><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260541?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 10:30:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96084485-2a10-4c14-aa49-2f3607d599e1</guid><dc:creator>Mr Sunshine</dc:creator><description>&lt;p&gt;thank you for your time, I&amp;#39;ll create a new ticket.&lt;/p&gt;
&lt;p&gt;Have a great holiday.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260531?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 10:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fc83e7c-22c1-48e8-b6fe-7fdc86c0f4cd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I will leave for vacation today, so if the new problem is not related to the flash manager, I suggest you create a new ticket with a title that describes the issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260530?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 10:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187a4508-4ce9-4306-9b6e-618934d0aaf8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;When you do a BL + SD + APP update, you can generate this in one packet, but the process will be split in two. First it will update BL + SD in one go, because the bootloader requires that it always has a compatible SoftDevice.&lt;/p&gt;
&lt;p&gt;When this is done, you can see that the device will reset briefly, and nrfutil/nRF Connect will reconnect to the device, and then perform the APP update.&lt;/p&gt;
&lt;p&gt;What sort of issue do you see?&lt;/p&gt;
&lt;p&gt;Try to only use one --sd-req (the old softdevice, that is already present on the nRF), and then you need to set the --sd-id to the new softdevice version.&lt;/p&gt;
&lt;p&gt;But please describe what issue you have? Does the DFU complete? Are you talking about the flash_manager issue, or something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260505?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 09:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30d9a501-f8ba-4f4c-ac78-489d640c28bb</guid><dc:creator>Mr Sunshine</dc:creator><description>&lt;p&gt;I have altered the&amp;nbsp;&lt;span&gt;DFU_APP_DATA_RESERVED&amp;nbsp;to be&amp;nbsp;CODE_PAGE_SIZE * 5 as you&amp;nbsp;suggested, and I set the&amp;nbsp;NRF_DFU_SINGLE_BANK_APP_UPDATES&amp;nbsp; back to 0. The problem seems to be gone if I do a OTA update for first the bootloader and after the application, so thank you for that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; The issue isn&amp;#39;t solved if I do an OTA update with a zip file that combines the bootloader, application, and softdevice altogether. It seems that I I use a combined zip that probably the application will be updated first instead of the bootloader. Might it be that I make a mistake when generating a new zip? The code I use is:&lt;pre class="ui-code" data-mode="text"&gt; nrfutil pkg generate new_DFU.zip --hw-version 52 --sd-req 0xA8,0xAF --sd-id 0 --softdevice softdevice.hex --bootloader-version 0 --bootloader bootloader.hex --key-file key_node.pem --application-version 0 --application application.hex&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260348?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 11:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:837d7d7e-5c37-4e9d-8703-4b26854bb242</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I see that in SDK15.0.0, the variable is called&amp;nbsp;DFU_APP_DATA_RESERVED, and is defined in nrf_dfu_types.h.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, NRF_DFU_SINGLE_BANK_APP_UPDATES set to 1 may prevent the issue to some degree, but if the application is big enough, the bootloader would start writing over your DFU area instead of throwing an error saying that the app is too big, so I would recommend you set the DFU_APP_DATA_RESERVED correctly.&lt;/p&gt;
&lt;p&gt;The reason&amp;nbsp;&lt;span&gt;NRF_DFU_SINGLE_BANK_APP_UPDATES&amp;nbsp;1 works is that the bootloader will not try to use dual bank, meaning it will delete the application and store the application in the direct placement at first. In this case, it meant that the bootloader didn&amp;#39;t use the area of the FDS pages. When it tried to use dual bank, it stored the application in the flash after the original application, because it thought it had space, since the&amp;nbsp;flash manager&amp;nbsp;pages was not protected by DFU_APP_DATA_RESERVED.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Dual bank is better if possible, because then you have a rollback in case something goes wrong during DFU (power loss). If not, the fallback after that would be that the device will start advertising as DfuTarg instead of running the previous application. No crisis, but it is a nice-to-have feature.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So the conclusion is: Set DFU_APP_DATA_RESERVED to protect your flash manager pages. It is a good safety to have, preventing bricked devices, like the update you currently had lead to (if you didn&amp;#39;t have a programmer).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&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;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260279?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 07:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10432bc4-d820-4e1b-b64a-837f4490d4d4</guid><dc:creator>Mr Sunshine</dc:creator><description>&lt;p&gt;I might have found a solution. I altered in the &lt;span&gt;sdk_config.h&amp;nbsp;&lt;/span&gt;the&amp;nbsp;&lt;tt&gt;NRF_DFU_SINGLE_BANK_APP_UPDATES variable from 0 to 1 and&amp;nbsp;&lt;/tt&gt;updated the bootlader separately through the DFU. After that the application update seems to function without the issues. Is&amp;nbsp;single bank mode a wise way to go?&lt;/p&gt;
&lt;p&gt;About your questions to the value of some variables, I&amp;#39;m afraid that what you are doing is primarily treating the symptoms instead of the cause. I think that&amp;nbsp;during the OTA update the bootlader overwrites some of the configuration data which will cause the&amp;nbsp;errors.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/260172"]What is your&amp;nbsp;DFU_APP_DATA_RESERVED defined as in sdk_config.h in your bootloader? [/quote]
&lt;p&gt;&lt;span&gt;the sdk_config.h&lt;/span&gt;&lt;span&gt;&amp;nbsp;in the bootloader doesn&amp;#39;t&amp;nbsp;seem to have a&amp;nbsp;DFU_APP_DATA_RESERVED, and I don&amp;#39;t see anything similar in the file. I&amp;#39;m using the SDK 15.0.0. this version might lack it.&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/260172"]I your case this size should reflect the distance from the bootloader area 0x70000 to the start of your flash manager (0x6B000), so try setting it to 20480 (or alternatively, 5*CODE_PAGE_SIZE).[/quote]
&lt;p&gt;How can&amp;nbsp;I Alter this size withoud the DFU_APP_DATA_RESERVED in the sdk_config.h?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260172?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 13:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd36084d-a88a-4a86-9b92-cc090d38252d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Which of the checks in:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static inline bool metadata_is_valid(const flash_manager_metadata_t * p_metadata)
{
    return (p_metadata-&amp;gt;metadata_len != 0xFF &amp;amp;&amp;amp;
            p_metadata-&amp;gt;metadata_len &amp;gt;= 8 &amp;amp;&amp;amp;
            p_metadata-&amp;gt;page_index != 0xFF &amp;amp;&amp;amp;
            p_metadata-&amp;gt;pages_in_area != 0xFF);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;is it that returns false?&lt;/p&gt;
&lt;p&gt;And a difficult question: What flash area is it looking at? To answer this, you need to check where is&amp;nbsp;&amp;nbsp;flash_manager_add() called from in the case where it fails?&amp;nbsp;add_flash_manager(),&amp;nbsp;init_flash_storage() or&amp;nbsp;build_flash_area()? And what is manager_config in that case?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In case:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void add_flash_manager(void)
{

    static fm_mem_listener_t flash_add_mem_available_struct = {
        .callback = flash_manager_mem_available,
        .p_args = add_flash_manager
    };
    flash_manager_config_t manager_config;
    manager_config.write_complete_cb = flash_write_complete;
    manager_config.invalidate_complete_cb = flash_invalidate_complete;
    manager_config.remove_complete_cb = flash_remove_complete;
    manager_config.min_available_space = WORD_SIZE;
#ifdef ACCESS_FLASH_AREA_LOCATION
    manager_config.p_area = (const flash_manager_page_t *) ACCESS_FLASH_AREA_LOCATION;
#else
    manager_config.p_area = (const flash_manager_page_t *) (((const uint8_t *) dsm_flash_area_get()) - (ACCESS_FLASH_PAGE_COUNT * PAGE_SIZE));
#endif
    manager_config.page_count = ACCESS_FLASH_PAGE_COUNT;
    m_flash_not_ready = true;
    uint32_t status = flash_manager_add(&amp;amp;m_flash_manager, &amp;amp;manager_config);
    if (NRF_SUCCESS != status)
    {
        flash_manager_mem_listener_register(&amp;amp;flash_add_mem_available_struct);
    }
    else
    {
        m_flash_not_ready = false;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What is dsm_flash_get()? What address is it pointing to?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In case:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void build_flash_area(void)
{
    bool success = false;
    flash_manager_config_t manager_config;
    manager_config.write_complete_cb      = flash_write_complete;
    manager_config.invalidate_complete_cb = flash_invalidate_complete;
    manager_config.remove_complete_cb     = flash_remove_complete;
    manager_config.min_available_space    = 0;
    manager_config.p_area = dsm_flash_area_get();
    manager_config.page_count = DSM_FLASH_PAGE_COUNT;

    /* Lock the bearer event handler to ensure that we don&amp;#39;t enter and leave the BUILDING state
     * between adding and checking. */
    bearer_event_critical_section_begin();
    if (flash_manager_add(&amp;amp;m_flash_manager, &amp;amp;manager_config) == NRF_SUCCESS)
    {
        /* If we have to build the flash manager, it means that it&amp;#39;s new, and there&amp;#39;s no metainfo. */
        if (m_flash_manager.internal.state == FM_STATE_BUILDING)
        {
            success = flash_store_metainfo();
        }
        else
        {
            success = true;
        }
    }
    bearer_event_critical_section_end();

    if (success)
    {
        m_flash_is_available = true;
    }
    else
    {
        /* Register the listener and wait for some memory to be freed up before we retry. */
        static fm_mem_listener_t mem_listener = {.callback = flash_mem_listener_callback,
                                                 .p_args = build_flash_area};
        flash_manager_mem_listener_register(&amp;amp;mem_listener);
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What is:&amp;nbsp;manager_config.p_area = dsm_flash_area_get(); ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In case:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void init_flash_storage(void)
{
    flash_manager_config_t config;
    memset(&amp;amp;config, 0, sizeof(config));
    config.min_available_space = 0;
    config.p_area = net_state_flash_area_get();
    config.page_count = NET_FLASH_PAGE_COUNT;
    config.write_complete_cb = flash_write_complete;

    if (flash_manager_add(&amp;amp;m_flash_manager, &amp;amp;config) != NRF_SUCCESS)
    {
        static fm_mem_listener_t mem_listener = {.callback = flash_mem_available,
                                                 .p_args = init_flash_storage};
        flash_manager_mem_listener_register(&amp;amp;mem_listener);
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What is:&lt;/p&gt;
&lt;p&gt;config.p_area = net_state_flash_area_get(); ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In case you are curious, the&amp;nbsp;net_state_flash_area_get() fetches the bootloader address:&lt;/p&gt;
&lt;p&gt;net_state_flash_area_get() -&amp;gt;&amp;nbsp;flash_manager_recovery_page_get() -&amp;gt;&amp;nbsp;flash_manager_defrag_recovery_page_get() -&amp;gt;&amp;nbsp;mp_recovery_area,&lt;/p&gt;
&lt;p&gt;which is set in&amp;nbsp;flash_manager_defrag_init():&lt;/p&gt;
&lt;p&gt;mp_recovery_area = p_flash_end - FLASH_MANAGER_RECOVERY_PAGE_OFFSET_PAGES - 1; /* pointer arithmetic */&lt;/p&gt;
&lt;p&gt;where p_flash_end is:&lt;/p&gt;
&lt;p&gt;p_flash_end = (flash_manager_recovery_area_t *) (BOOTLOADERADDR() - PAGE_SIZE);&lt;/p&gt;
&lt;p&gt;Which was why I asked for that earlier.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, what area is it trying to initialize the flash manager on, and which of the checks is it that fails, and what is currently in the flash where you are trying to use?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for the application .hex file, it has start address 0x26000 and end address 0x4545F, so it is 0x1F45F large (rounded up to 0x20000)&lt;/p&gt;
&lt;p&gt;Your screenshot from nRF Connect programmer:&lt;/p&gt;
&lt;p&gt;The previous application stops at 0x4BD58 (effectively 0x4C000), and the Flash manager starts at 0x6B000. This means that the free space between the two is 0x6B000-0x4C000 = 0x1F000. But since you are using a BLE bootloader, that should be fine (not background). However, you may want to check that your bootloader saves the correct amount of flash for FDS (flash manager).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What is your&amp;nbsp;DFU_APP_DATA_RESERVED defined as in sdk_config.h in your bootloader? Depending on what SDK version you use, it may have different, but similar name.&lt;/p&gt;
&lt;p&gt;I your case this size should reflect the distance from the bootloader area 0x70000 to the start of your flash manager (0x6B000), so try setting it to 20480 (or alternatively, 5*CODE_PAGE_SIZE).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260095?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 10:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19f10bea-5e71-441f-8f75-ac6eca8b3aa6</guid><dc:creator>Mr Sunshine</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/260075"] I can give you the zip file so that you can reproduce this through the nRF tools app.[/quote]
&lt;p&gt;I use the nRF toolbox app on android.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/260075"]And for the new_flash.hex, I was thinking only of the hex file that is generated when you compile the application that you use to generate the DFU image later.[/quote]
&lt;p&gt;I use the new_DFU.zip file given in my previous message for DFU updates. I can give you the application file without the bootloader and softdevice if that is what you mean.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6180.application.hex"&gt;devzone.nordicsemi.com/.../6180.application.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;in addition (I made a edit in my last message)&amp;nbsp;&lt;span&gt;I went deeper into the&amp;nbsp;flash_area_is_valid() code and I&amp;nbsp;see that the error occurs at p_area[0] of the struct &amp;quot;&amp;amp;p_manager-&amp;gt;config.p_area[i].metadata&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/260075?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 09:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25fa7c0d-b4d9-4a45-b5e3-9bc83062390c</guid><dc:creator>Edvin</dc:creator><description>[quote user="mr sunshine  "]Don&amp;#39;t you mean .dat file? the generated DFU zip file only includes .dat files and I don&amp;#39;t see .bat files. I can give you the zip file so that you can reproduce this through the nRF tools app.[/quote]
&lt;p&gt;&amp;nbsp;No, I meant a script that will perform the DFU when I run it. This way, if I compile the application, and run the script, it would take a DK and start transferring the image. How do you normally perform the DFU?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And for the new_flash.hex, I was thinking only of the hex file that is generated when you compile the application that you use to generate the DFU image later.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259870?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 10:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa6cbe65-761f-447b-b608-d64476420f1e</guid><dc:creator>Mr Sunshine</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259859"]Could you send the old application .hex file and the new one, and I can check. [/quote]
&lt;p&gt;Currently I&amp;#39;m stuck so I&amp;#39;ll give you the hex files:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/flash_5F00_new.hex"&gt;devzone.nordicsemi.com/.../flash_5F00_new.hex&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/flash_5F00_old.hex"&gt;devzone.nordicsemi.com/.../flash_5F00_old.hex&lt;/a&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259859"]Did you come any further as to why the&amp;nbsp;&lt;span&gt;flash_area_is_valid() returns false? &lt;/span&gt;[/quote]
&lt;p&gt;Sorry wan&amp;#39;t able to. I didn&amp;#39;t had acces to the J-link, and have to do other work activities. If&amp;nbsp;I look at the&amp;nbsp;flash_area_is_valid() then I see that this goes deeper into scructs.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259859"]If not, is there any way for me to reproduce this? Preferably, a .bat script to perform the DFU is welcome, so I don&amp;#39;t need to set it up from scratch. It will be faster for both of us[/quote]
&lt;p&gt;Don&amp;#39;t you mean .dat file? the generated DFU zip file only includes .dat files and I don&amp;#39;t see .bat files. I can give you the zip file so that you can reproduce this through the nRF tools app.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/new_5F00_DFU.zip"&gt;devzone.nordicsemi.com/.../new_5F00_DFU.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;the new DFU will not continuously reboot because I altered the code that It will ignore the first errors at the start of the program. But if you debug it you can see errors occurring during boot. I altered this for debug purposes.&lt;/p&gt;
&lt;p&gt;In addition I went deeper into the&amp;nbsp;flash_area_is_valid() code and can confirm that the error occurs at p_area[0].&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259859?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 09:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d76ec5c-b727-4818-a63b-1a4b15aef015</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The size of the nRF52832 is 512kb flash, so I don&amp;#39;t think your application is 939kB. The .hex file may be, but this is not translatable to the application size. Could you send the old application .hex file and the new one, and I can check. That is, the old one I can see from your screenshot. If you don&amp;#39;t want to send the .hex file, drag and drop the new one to the File Memory layout to the right, and do the same measurement (start and end flash addresses).&lt;/p&gt;
&lt;p&gt;Did you come any further as to why the&amp;nbsp;&lt;span&gt;flash_area_is_valid() returns false? If not, is there any way for me to reproduce this? Preferably, a .bat script to perform the DFU is welcome, so I don&amp;#39;t need to set it up from scratch. It will be faster for both of us &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;/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;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259823?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 08:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2427339c-c0d8-4ab1-b8ab-04139bb0278f</guid><dc:creator>Mr Sunshine</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259742"]That is correct. But when you hover your mouse over the different fields. What is the end address of your application, and what is the start address of your FDS (the three green lines)?[/quote]
&lt;p&gt;I made the following images,&amp;nbsp;I hope that these are clear enough:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/500x400/__key/communityserver-discussions-components-files/4/before-_2B00_-data.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/500x400/__key/communityserver-discussions-components-files/4/after-_2B00_-data.png" /&gt;&lt;/p&gt;
&lt;p&gt;for some clarification, the following colors are according to nRF Connect:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;first black is undefined&lt;/li&gt;
&lt;li&gt;second black is &amp;quot;MBR Paramters&amp;quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;red is &amp;quot;bootloader&amp;quot;&lt;/li&gt;
&lt;li&gt;all of green is the &amp;quot;Application&amp;quot;&lt;/li&gt;
&lt;li&gt;blue is &amp;quot;Softdevice&amp;quot;&lt;/li&gt;
&lt;li&gt;orange is &amp;quot;MBR or Application&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It seems as if the DFU update overwrites some spaces of the Application.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259742"]And finally, what is the size of the application that you are updating to?[/quote]
&lt;p&gt;if&amp;nbsp;I look at the .hex file used to flash the original program the size is 939 KB. The new one, although not being flashed, is 864 KB. Reason why the new one is smaller is due to it being on Release configuration while toe original was on debug configuration. I don&amp;#39;t know where I have to look to when looking for the file size for the DFU.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259742"]If the application image is too big to fit, perhaps it starts eating into the FDS pages. If so, you need to have a temporary middle application:[/quote]
&lt;p&gt;I find this quite odd, current configuration of the devices I use is through a mesh with multiple nodes and one NUS to connect too with a Smart Device. This NUS is bigger in size than the nodes but doesn&amp;#39;t show any issues during and after the OTA update while the nodes does. So if the image is too big than this should have surely shown on the NUS, but it currently doesn&amp;#39;t. The NUS uses the same nrf52832 chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259742?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 15:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dc8c10b-792b-4b66-8199-73e8b0fa1e5d</guid><dc:creator>Edvin</dc:creator><description>[quote user="mr sunshine  "]I don&amp;#39;t know what it is for, it was like this during development. I assumed it was the free space required for updates.&amp;nbsp;All&amp;nbsp;I know is that red is bootloader, black is bootloader settings, green is application and blue is soft device.[/quote]
&lt;p&gt;&amp;nbsp;That is correct. But when you hover your mouse over the different fields. What is the end address of your application, and what is the start address of your FDS (the three green lines)?&lt;/p&gt;
&lt;p&gt;And finally, what is the size of the application that you are updating to?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the application image is too big to fit, perhaps it starts eating into the FDS pages. If so, you need to have a temporary middle application:&lt;/p&gt;
&lt;p&gt;Original application -&amp;gt; DFU -&amp;gt; middle application -&amp;gt; DFU -&amp;gt; final application&amp;nbsp;&lt;/p&gt;
&lt;p&gt;where the middle application is very reduced, much like the DFU example in the SDK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259662?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 10:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8668eb6d-53ad-4325-9ced-4e6f88a9a505</guid><dc:creator>Mr Sunshine</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259651"]Have you tried to flash the new application manually? Does that work?[/quote]
&lt;p&gt;Flashing manually will fix the problem yes. But I want to update it through DFU. Currently some customers of us already have this product, so we don&amp;#39;t want to call these back for a update if an OTA update is also possible.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259651"]What is the free space (the grey area) in your screenshot to the left? [/quote]
&lt;p&gt;I don&amp;#39;t know what it is for, it was like this during development. I assumed it was the free space required for updates.&amp;nbsp;All&amp;nbsp;I know is that red is bootloader, black is bootloader settings, green is application and blue is soft device.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259651"]Have you tried to port the application to a later SDK version? Is it reproducible there?[/quote]
&lt;p&gt;I have in the past but failed. Porting to another SDK isn&amp;#39;t easily done, and from the experience it&amp;#39;s probably easier to redo the project if I want to change the SDK.&lt;/p&gt;
&lt;p&gt;I will respond later about&amp;nbsp;&lt;span&gt;flash_area_is_valid().&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259651?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 09:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c2559b5-7148-4162-ab40-029d8e53c9b9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Have you tried to flash the new application manually? Does that work?&lt;/p&gt;
&lt;p&gt;What is the free space (the grey area) in your screenshot to the left? Do you have the addresses? And what is the size of your new application? does it fit within that grey space?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you able to debug after the DFU?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="mr sunshine  "]&lt;span&gt;how c&lt;/span&gt;&lt;span&gt;an I easily check this?&amp;nbsp;It becomes quite a maze if&amp;nbsp;I dig deeper in the function.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;Try to set a breakpoint in flash_area_is_valid(). Try to step a bit, and set new breakpoints to find out why the flash_area_is_valid() returns false.&lt;/p&gt;
&lt;p&gt;Is&amp;nbsp;metadata_is_valid() returning false? What is your page_count? Does it assert in any of these?&lt;/p&gt;
&lt;p&gt;NRF_MESH_ASSERT(p_manager-&amp;gt;config.p_area[i].metadata.page_index == i);&lt;br /&gt; NRF_MESH_ASSERT(p_manager-&amp;gt;config.p_area[i].metadata.pages_in_area == p_manager-&amp;gt;config.page_count);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which of these checks is it that fails?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Remember that you may need to turn off optimization in order to debug this properly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you tried to port the application to a later SDK version? Is it reproducible there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259615?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 07:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e263efd-8c0d-4ead-bd4f-01741c773dc0</guid><dc:creator>Mr Sunshine</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259473"]Please try to check why the&amp;nbsp;&lt;span&gt;flash_area_is_valid()&lt;/span&gt;[/quote]
&lt;p&gt;&lt;span&gt;how c&lt;/span&gt;&lt;span&gt;an I easily check this?&amp;nbsp;It becomes quite a maze if&amp;nbsp;I dig deeper in the function.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In addition I have scanned the memory with nRF Connect and see this happening. Might this help to figure out the issue? What you see is one is made before the update which shows a blank space, and the other is after the update which shows almost no blank space.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt="before" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8664.before.png" /&gt;&lt;img alt="after" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8662.after.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259473?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 14:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc5b76f-7a10-44aa-a48d-d2ba9376f0ba</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Not that I can tell. Please try to check why the&amp;nbsp;&lt;span&gt;flash_area_is_valid() returns false, and what address it is trying to check, what is present there, and what it is expecting.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am sorry for pushing this over on you, but we are very short staffed due to summer holidays in Norway, so in order to give some pointers to everyone, I can&amp;#39;t spend too much time digging. These are the action points that I would investigate if I were to find out why it is not working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&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;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259388?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 09:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6d8237-a356-4251-bb53-97e2efbdbe58</guid><dc:creator>Mr Sunshine</dc:creator><description>&lt;p&gt;thanks for your extended explanation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did some debugging&amp;nbsp;and I got the following:&lt;/p&gt;
&lt;p&gt;BOOTLOADERADDR() = 0x70000&lt;/p&gt;
&lt;p&gt;p_flash_end = 454656&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259356"]You are using the Mesh SDK 2.1.1. Was the previous application also from the same SDK version, or did you do a version upgrade?[/quote]
&lt;p&gt;The update is in the same SDK version. One thing that might&amp;nbsp;be interesting is that the new application is on Release configuration, while&amp;nbsp;the old one&amp;nbsp;was in Debug.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259356"]Please make sure that you start with a completely clean flash (nrfjprog --eraseall) before you flash your bootloader,[/quote]
&lt;p&gt;Don&amp;#39;t worry about that. when I test a new DFU I clear and flash the original application to the device.&lt;/p&gt;
&lt;p&gt;In addition I have tried to also update the softdevice and bootloader through the DFU to see if that solves the issue, but it still seems to get errors. I currently use this code to generate the package, did&amp;nbsp;I miss something?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate package_to_generate.zip --hw-version 52 --sd-req 0xA8,0xAF --sd-id 0 --softdevice softdevice.hex --bootloader-version 0 --bootloader bootloader.hex --key-file ./key_file.pem --application-version 0 --application application.hex&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259356?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 08:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a299d816-9dc7-410a-b7cf-7e66d64f8e00</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry. I was a bit short in my previous reply.&lt;/p&gt;
&lt;p&gt;I meant the call to&amp;nbsp; BOOTLOADERADDR() in your mesh application project. it is found in flash_manager_defrag.c.&lt;/p&gt;
&lt;p&gt;This is a macro that checks whether or not there is a bootloader present in flash.&lt;/p&gt;
&lt;p&gt;In your case, you know that there indeed is a bootloader in the flash, but if this check returns false, then the mesh application will try to use the flash in the bootloader area to store the network data, while it actually should have tried to use the flash below the bootloader instead.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So after performing the OTA DFU, can you please try to set a breakpoint on line 591 in flash_manager_defrag.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;bool flash_manager_defrag_init(void)
{
#ifdef FLASH_MANAGER_RECOVERY_PAGE
    mp_recovery_area = (flash_manager_recovery_area_t *) FLASH_MANAGER_RECOVERY_PAGE;
#else
    flash_manager_recovery_area_t * p_flash_end;
    if (BOOTLOADERADDR() != BLANK_FLASH_WORD &amp;amp;&amp;amp;     //&amp;lt;-- line 591
        BOOTLOADERADDR() != 0)
    {
        ...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and do&amp;nbsp;some debugging to see what p_flash_end ends up being after these checks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BOOTLOADERADDR() is a macro:&lt;/p&gt;
&lt;p&gt;#define BOOTLOADERADDR() (NRF_UICR-&amp;gt;NRFFW[0])&lt;/p&gt;
&lt;p&gt;So it reads the UICR register for the bootloader address.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please make sure that you start with a completely clean flash (nrfjprog --eraseall) before you flash your bootloader, softdevice and application, so that you don&amp;#39;t have anything old data in the flash from previous testing. The flash should not be corrupted after a DFU.&lt;/p&gt;
&lt;p&gt;You are using the Mesh SDK 2.1.1. Was the previous application also from the same SDK version, or did you do a version upgrade?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259259?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 15:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14b4abcd-1f6b-4664-8288-2c9cf60e6bd2</guid><dc:creator>Mr Sunshine</dc:creator><description>&lt;p&gt;hello Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259250"]This means that you are using a BLE bootloader, and not the mesh bootloader, right?[/quote]
&lt;p&gt;Yes it uses BLE for updates. The system can be set in a separate DFU mode when using.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/63523/nrf52832-mesh-bricks-after-ota-update/259250"]When you have programmed the bootloader and performed the OTA DFU (or alternatively you can generate and flash bootloader settings using &amp;quot;nrfutil settings generate (--help)&amp;quot; if it is tedious to do this every time). What is the return value of&amp;nbsp;BOOTLOADERADDR() in flash_manager_defrag.c. Is it 0xFFFFFFFF or the actual bootloader address?[/quote]
&lt;p&gt;I don&amp;#39;t really understand what you are saying. Where is this &amp;quot;&lt;span&gt;flash_manager_defrag.c&lt;/span&gt;&amp;quot; is this a separate file?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have generated the bootloader settings file if you are interested in that, but I cannot see this&amp;nbsp;&lt;span&gt;BOOTLOADERADDR() you are mentioning in this file.&amp;nbsp;below the contents of the&amp;nbsp;bootloader settings file:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;:020000040007F3
:10E00000445500E70100000000000000000000008F
:10E01000000000000000000020F40100C4627BB397
:10E0200001000000000000000000000000000000EF
:10E0300000000000000000000000000000000000E0
:10E0400000000000000000000000000000000000D0
:0CE05000000000000000000000000000C4
:10F00000445500E70100000000000000000000007F
:10F01000000000000000000020F40100C4627BB387
:10F0200001000000000000000000000000000000DF
:10F0300000000000000000000000000000000000D0
:10F0400000000000000000000000000000000000C0
:0CF05000000000000000000000000000B4
:00000001FF&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope this helps.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 mesh bricks after OTA update</title><link>https://devzone.nordicsemi.com/thread/259250?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 14:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f7db4d-422a-41ba-8e98-151919cab201</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]After an OTA update (with use of the nRF toolbox app) the nrf52832[/quote]
&lt;p&gt;&amp;nbsp;This means that you are using a BLE bootloader, and not the mesh bootloader, right?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t remember what combination, but I remember that there was one Mesh SDK that used a version of the nRF5 &amp;quot;normal BLE&amp;quot; SDK where this combination was not compatible with one another. The reason was that the nRF5 SDK used a new method of storing the bootloader address, which the Mesh SDK didn&amp;#39;t check for.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When you have programmed the bootloader and performed the OTA DFU (or alternatively you can generate and flash bootloader settings using &amp;quot;nrfutil settings generate (--help)&amp;quot; if it is tedious to do this every time). What is the return value of&amp;nbsp;BOOTLOADERADDR() in flash_manager_defrag.c. Is it 0xFFFFFFFF or the actual bootloader address?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>