This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to merge one Application with DFU feature.

Hello All,

I am trying to merge one of the application example with DFU feature.

Development setup - OS windows 10, 64 bit

                                   IDE Segger embedded studio V_4.16 with nRF52 DK, sdk version 15 .

I have tried the this many times but i could not. Facing lot of problems from last week.

I have tried with combining secure dfu example with  ble_proximity example and wise-versa.

But facing linking problems for some of the files./ remove .o files,/.h file not defined etc..

So If some one knows the right procedure / steps how to merge/combining.

Then please let me know.

Provide your inputs.

Regards,

Rohit

  • Hello Sir,

    I have kept the break point on the app_error_handler_bare. seen below data

    uint32_t nrf_dfu_svci_vector_table_set(void)  in this function it is not satisfying the condition " if (bootloader_addr != 0xFFFFFFFF)" and taking this condition

    NRF_LOG_ERROR("No bootloader was found");
    return NRF_ERROR_NO_MEM;

    and then

    It is going to system reset file to "core_cm4.h" - void NVIC_SystemReset(void) function.

    and stuck in below stuff

    And  i thought its memory problem so just i have removed all services and just added dfu then it is showing this kind of errors and in hardware it is not advertising the name of the device.

    if we add with all service with dfu then similar issue will arise.

    And if we just exclude dfu the it will advertise the name of device.

    What is the main cause for this i am not getting.

    Please provide your input on this to solve.

    Regards,

    Rohit 

  • Hello Bjorm,

    Thanks for helping to solve above issue.

    Its ROM and RAM size issue.

    Issue is resolved successfully. 

    Thanks,

    Rohit

  • Just addition to this we have to DISABLE 

    NRF_FRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 

    in sdk_config.h file  to see the info in the debug terminal when we debug the code so you can get the issue info with specific file. So we can edit the required change as mentioned in the degbug terminal.

    plus nrf_log_logging and NRF_LOG_BACKEND_RTT_ENABLED should be enable in sdk_config.h file.

  • Hi Rohit, I'm looking at exact the same error, when adding DFU support to another example. Could you tell me how you solved this exactly? What are the correct RAM and ROM sizes and where can I set them? Thanks in advance!  kind regards, Sitan van Sluis

  • Hello Sitan,

    You can follow the procedure given by Bjørn Sir above.

    And 

    Just addition to this we have to DISABLE 

    NRF_FRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 

    in sdk_config.h file  to see the info in the debug terminal when we debug the code so you can get the issue info with specific file. So we can edit the required change as mentioned in the degbug terminal.

    plus nrf_log_logging and NRF_LOG_BACKEND_RTT_ENABLED should be enable in sdk_config.h file.

    So you can get actual size in debug console.

    Regards,

    Rohit

Related