hi,
i download SDK viewtopic.php?f=46&t=2349 from this link and i compile code so i got error of
./SDK/esp_iot_rtos_sdk-master/lib\libmain.a(app_main.o): In function `flash_data_check':
(.irom0.text+0x550): undefined reference to `user_rf_cal_sector_set'
./SDK/esp_iot_rtos_sdk-master/lib\libmain.a(app_main.o): In function `flash_data_check':
(.irom0.text+0x631): undefined reference to `user_rf_cal_sector_set'
can any explain me this error and how can i solve this error.
[SOLVED] got error of user_rf_cal_sector_set in latest RTOS 1.4.2 SDK
-
- Posts: 13
- Joined: Thu Jun 30, 2016 7:53 pm
[SOLVED] got error of user_rf_cal_sector_set in latest RTOS 1.4.2 SDK
Postby valmik thakar » Fri Jul 29, 2016 1:18 pm
Re: got error of user_rf_cal_sector_set in latest RTOS 1.4.2 SDK
Postby pratik » Tue Aug 02, 2016 12:38 am
Hello,
Please add this to your user_main.c:
Make sure that the corresponding sector contains blank.bin
Please add this to your user_main.c:
Make sure that the corresponding sector contains blank.bin
Code: Select all
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;
case FLASH_SIZE_8M_MAP_512_512:
rf_cal_sec = 256 - 5;
break;
case FLASH_SIZE_16M_MAP_512_512:
case FLASH_SIZE_16M_MAP_1024_1024:
rf_cal_sec = 512 - 5;
break;
case FLASH_SIZE_32M_MAP_512_512:
case FLASH_SIZE_32M_MAP_1024_1024:
rf_cal_sec = 1024 - 5;
break;
default:
rf_cal_sec = 0;
break;
}
return rf_cal_sec;
}
Re: [SOLVED] got error of user_rf_cal_sector_set in latest RTOS 1.4.2 SDK
Postby Rutharesh » Fri Aug 12, 2016 5:36 pm
I'ts worked for me.
But in the first line code i have removed "enum"
Thanks for the answer...
But in the first line code i have removed "enum"
Code: Select all
from "enum flash_size_map size_map = system_get_flash_size_map()"
to "flash_size_map size_map = system_get_flash_size_map();"
Thanks for the answer...
Who is online
Users browsing this forum: No registered users and 307 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.