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

Combining two applications

I want to combine two applications, both of them having two services. One application resides at 0x16000 and other one resides at 0x249f0. I am using softdevice 7.3 and sdk 6. What I wanted to do is that, when I press one button it should to jump to the second application. I combined both applications using the mergehex. If I upload the combined image with nrfjprog, both applications will work fine. But if i upload the firmware using dfu, the second application will not work. Why does the second applications not getting saved properly? How can I upload the merged hex file properly with the dfu?

Parents Reply
  • You also have to edit the bootloader_app_startfunction, as the argument app_addr is not used, i.e.

    void bootloader_app_start(uint32_t app_addr)
    {
        // If the applications CRC has been checked and passed, the magic number will be written and we
        // can start the application safely.
        uint32_t err_code = sd_softdevice_disable();
        APP_ERROR_CHECK(err_code);
    
        interrupts_disable();
    
        err_code = sd_softdevice_vector_table_base_set(0x249f0);//CODE_REGION_1_START
        APP_ERROR_CHECK(err_code);
    
        bootloader_util_app_start(0x249f0);//CODE_REGION_1_START
    }
    
Children
No Data
Related