I did some more analysis on this by adding some code to ota_fr.c, below is the snippet.
uint32_t address, available_size,current_size;
wiced_framework_app_open( DCT_APP0_INDEX, &app );
WICED_VERIFY( init_sflash( &sflash_handle, PLATFORM_SFLASH_PERIPHERAL_ID, SFLASH_WRITE_NOT_ALLOWED ) );
WICED_VERIFY( sflash_read( &sflash_handle, app.app_header_location.detail.external_fixed.location, &app_header, sizeof(app_header_t) ) );
wiced_apps_get_physical_address( &app_header, 0, &address, &available_size );
//wiced_framework_app_get_size( &app, ¤t_size );
for ( index = 0; index < app_header.count; index++ )
current_size = current_size + app_header.sectors[ index ].count;
current_size = current_size * SFLASH_SECTOR_SIZE;
printf("Address is %ld, available_size is %ld ,size of app %ld ,header.count %ld\n",address,available_size,current_size,app_header.count);
Attached is the output of it, and which is same for DCT_FR_APP_INDEX too.
I don't know why the location is not different for both.
Please help here.
Hi Sir ,
Where did you get the BM-22 Eval Kit?
Wondered you need to have Ext SPI Flash out of module(U3) , please check it.