the error with webserver.c

hualaonanxiaoniao
Posts: 11
Joined: Wed Apr 27, 2016 4:22 pm

the error with webserver.c

Postby hualaonanxiaoniao » Tue Jun 21, 2016 2:26 pm

您好,我想问问关于iot_demo中的问题。
在文档中,pc端这边发送wifi路由信息给esp8266,按原理来说是可以让他连接上所指定的路由
但是,在之前测试的时候,发送给esp8266的信息,一接收之后就会出错,然后重新烧写程序就可以连接得上。

之前就没去管,然后在自己写程序的过程中,用的是可升级版大小为4096的user_bin,然后发觉如果是写入flash数据的时候也会出现同样的问,那请问在iot_demo 这边,通过pc发送命令让esp8266写入station信息的时候,flash的区域是在哪里,可以修改的吗?或者说有什么地方需要注意的呢

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: the error with webserver.c

Postby ESP_Faye » Wed Jun 22, 2016 9:41 am

您好,

IoT Demo 的用户参数区,需要根据您使用的 flash size 实际调整。

Code: Select all

/* NOTICE---this is for 512KB spi flash.
 * you can change to other sector if you use other size spi flash. */
#define PRIV_PARAM_START_SEC      0x3C

/* NOTICE---this is for 512KB spi flash.
 * you can change to other sector if you use other size spi flash. */
#define ESP_PARAM_START_SEC      0x3D


User Data 区域您可以参考 ESP8266 入门指南 的 “Flash 布局” 一章。

Who is online

Users browsing this forum: No registered users and 13 guests