The Application +Stack ( Combined option) for the OTA happens in a different way where the whole combined image ( Application+Stack) transfers as a single chuck of data. The up-gradable stack OTA process is slightly different and here first the stack image will be transferred and written to the target device and then the Stack image will receive the Application image. So, you could use "Application+ Stack" option for the OTA.
Refer page #7 for more details on the Upgradable stack OTA process.
Ok. Is there any method to upgrade the application and stack built from different psoc creator version and component version?
User will need to upgrade components in each PSoC Creator projects before adding dependency. Please finalise the component versions and clean and build all three projects (launcher, stack and user application - in this sequence) in PSoC Creator 4.2.
I have done what you suggested. I tried to update the BLE component version from 3.40 to 3.52, cy_boot from 5.6 to 5.7 and Em_EEPROM_Dynamic to Em_EEPROM_Dynamic_v2_0 in all three projects. Clean and build the projects in psoc 4.2. But the application is still stacked in InitializeBootloaderSRAM() after OTA updated from a firmware built by psoc 4.1.
I used "Application and Stack (Separate Files)" mode. The system upgraded successfully and not stacked in InitializeBootloaderSRAM().
Seems like something wrong in "Application and Stack (combined)" mode.