IOT example可以正常编译,但是下载后打印出MEM CHECK FAIL!!!之后没有任何信息,AP实际上已经运行,能够扫描出来。
但是 user_init 函数的打印信息没有。
编译环境是windows,编译为本地升级版本,firmware 见附件。
void user_init(void)
{
os_printf("SDK version:%s\n", system_get_sdk_version());
os_printf("SDK version:%s\n");
#if ESP_PLATFORM
user_esp_platform_init();
#endif
user_devicefind_init();
#ifdef SERVER_SSL_ENABLE
user_webserver_init(SERVER_SSL_PORT);
#else
user_webserver_init(SERVER_PORT);
#endif
}
SDK 0.95 IOT demo 无法运行
Re: SDK 0.95 IOT demo 无法运行
Postby ESP_Faye » Thu Feb 26, 2015 10:03 am
您好,
打印 “MEM CHECK FAIL!!!” 的问题,已经在最新软件中解决 http://bbs.espressif.com/viewtopic.php?f=7&t=205
sdk 0.9.5 IOT Demo 可以正常运行,波特率 74880。 修改波特率请参考 http://bbs.espressif.com/viewtopic.php?f=10&t=182
您可以在 user_init 中添加如下代码,连接路由器,这样会打印出更多信息,以供判断是否正常运行。
打印 “MEM CHECK FAIL!!!” 的问题,已经在最新软件中解决 http://bbs.espressif.com/viewtopic.php?f=7&t=205
sdk 0.9.5 IOT Demo 可以正常运行,波特率 74880。 修改波特率请参考 http://bbs.espressif.com/viewtopic.php?f=10&t=182
您可以在 user_init 中添加如下代码,连接路由器,这样会打印出更多信息,以供判断是否正常运行。
Code: Select all
void wifi_config()
{
// Wifi configuration
char ssid[32] = SSID; // SSID of router
char password[64] = PASSWORD; // password of router
struct station_config stationConf;
//Set ap + station mode
wifi_set_opmode( 0x3 );
stationConf.bssid_set = 0;
//Set router config
os_memcpy(&stationConf.ssid, ssid, 32);
os_memcpy(&stationConf.password, password, 64);
wifi_station_set_config(&stationConf);
}
//Init function
void user_init()
{
wifi_config();
}
Who is online
Users browsing this forum: No registered users and 77 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.