You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi there,
the new SDK for non-OS requires this function to be added in user_main:
`
/******************************************************************************
FunctionName : user_rf_cal_sector_set
Description : SDK just reversed 4 sectors, used for rf init data and paramters.
We add this function to force users to set rf cal sector, since
we don't know which sector is free in user's application.
hi there,
the new SDK for non-OS requires this function to be added in user_main:
`
/******************************************************************************
FunctionName : user_rf_cal_sector_set
Description : SDK just reversed 4 sectors, used for rf init data and paramters.
Parameters : none
Returns : rf cal sector
*******************************************************************************/
uint32 ICACHE_FLASH_ATTR
user_rf_cal_sector_set(void)
{
enum flash_size_map size_map = system_get_flash_size_map();
uint32 rf_cal_sec = 0;
switch (size_map) {
case FLASH_SIZE_4M_MAP_256_256:
rf_cal_sec = 128 - 8;
break;
}
return rf_cal_sec;
}
`
I don't know if it needs mods in your specific code, I just made it to compilation and haven't tested any further.
Regards.
The text was updated successfully, but these errors were encountered: