My ota2 project is not building when I add the debug option to the build config.
InVue.RTD-InVue_RTD-FreeRTOS-LwIP-debug ota2_manuf_download will not build but InVue.RTD-InVue_RTD-FreeRTOS-LwIP ota2_manuf_download will and InVue.RTD-InVue_RTD-FreeRTOS-LwIP-debug download will not build but InVue.RTD-InVue_RTD-FreeRTOS-LwIP download will.
The error is related to the memory location defines in the OTA2_image_defines.mk.
Is this normal? How can I debug my project with the added OTA code?
18:04:24 **** Build of configuration Default for project AWS_WIFI_RTD ****
apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.c:577:19: note: each undeclared identifier is reported only once for each function it appears in
apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.c: In function 'wiced_ota2_image_write_data':
apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.c:1290:28: error: 'OTA2_IMAGE_STAGING_AREA_SIZE' undeclared (first use in this function); did you mean 'NORMAL_IMAGE_APPS_AREA_BASE'?
if ( (offset + size) > OTA2_IMAGE_STAGING_AREA_SIZE)
apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.c: In function 'wiced_ota2_get_boot_type':
apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.c:1590:14: warning: implicit declaration of function 'wiced_dct_ota2_read_saved_copy'; did you mean 'wiced_dct_read_with_copy'? [-Wimplicit-function-declaration]
result = wiced_dct_ota2_read_saved_copy( &ota2_header, DCT_OTA2_CONFIG_SECTION, 0, sizeof(platform_dct_ota2_config_t));
apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.c: In function 'wiced_ota2_image_get_offset':
apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.c:1796:26: error: 'OTA2_IMAGE_FACTORY_RESET_AREA_BASE' undeclared (first use in this function); did you mean 'NORMAL_IMAGE_DCT_2_AREA_BASE'?
ota_offset = OTA2_IMAGE_FACTORY_RESET_AREA_BASE;
apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.c:1799:26: error: 'OTA2_IMAGE_STAGING_AREA_BASE' undeclared (first use in this function); did you mean 'NORMAL_IMAGE_APPS_AREA_BASE'?
ota_offset = OTA2_IMAGE_STAGING_AREA_BASE;
tools/makefiles/wiced_elf.mk:232: recipe for target 'build/InVue.RTD-InVue_RTD-FreeRTOS-LwIP-debug/Modules/apps/InVue/RTD/../../../libraries/filesystems/ota2/wiced_ota2_image.o' failed
I think I found the problem last night after posting. I was able to get the errors to go away by including the filesystems/wicedfs component in my makefile because my application requires access to functions in wiced_ota2_image.c.