The OTA update happens inside function process_upgrade_chunk() at wiced_framework_app_open( DCT_APP0_INDEX, &app ) in libraries/daemons/ota_server/wiced_ota_server.c. The OTA implementation allows update of only application (APP0) and not DCT or any other memory blocks. Can you consider using ThreadX for OTA2?
Thanks for quick response,
For our project we have to use FREE RTOS platform, so we can't use Threadx.
we were able to update app using above mentioned function, but for DCT it was not happening.
Is there any other way to update DCT using OTA?
These are indexes available for OTA. For app 3 indexes available.
Why only one index for DCT?
Can we create new index for DCT here? If possible how we can create?
please give your inputs for DCT update using FREE RTOS?
As stated earlier, DCT update is not supported in OTA implementation. And DCT_IMAGE is meant for internal usage which is why there is only one index for DCT unlike APP0 which is free for users. You can check this thread SDK 6.2 OTA2 image build error: Illegal division by zero at ./tools/text_to_c/sector_count.pl where OTA2 was working with freertos.