Skip to content

Commit 7c45873

Browse files
committed
update to SDK 1.1.1_15_06_05
1 parent f889d3b commit 7c45873

File tree

15 files changed

+68
-7
lines changed

15 files changed

+68
-7
lines changed

cores/esp8266/core_esp8266_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void user_init(void) {
129129
uart_div_modify(0, UART_CLK_FREQ / (74480));
130130

131131
system_rtc_mem_read(0, &resetInfo, sizeof(struct rst_info));
132-
if(resetInfo.reason == WDT_RST_FLAG || resetInfo.reason == EXCEPTION_RST_FLAG) {
132+
if(resetInfo.reason == REASON_WDT_RST || resetInfo.reason == REASON_EXCEPTION_RST) {
133133
os_printf("Last Reset:\n - flag=%d\n - Fatal exception (%d):\n - epc1=0x%08x,epc2=0x%08x,epc3=0x%08x,excvaddr=0x%08x,depc=0x%08x\n", resetInfo.reason, resetInfo.exccause, resetInfo.epc1, resetInfo.epc2, resetInfo.epc3, resetInfo.excvaddr, resetInfo.depc);
134134
}
135135
struct rst_info info = { 0 };

tools/sdk/changelog.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
esp_iot_sdk_v1.1.1_15_06_05 Release Note
2+
-------------------------------------------
3+
4+
Resolved Issues(Bugs below are eligible for Bug Bounty Program):
5+
1.Too short timer which set by os_arm_timer_us may cause crash. [Tommy]
6+
2.Call os_malloc in low heap situation may cause crash. [MeneerThijs]
7+
3.Memory leak issue when SSL connection fail. [孙新虎]
8+
9+
Optimization:
10+
1.Update JSON parser to handle with illegal parameter and illegal calling progress.
11+
2.Add parameter of user_esp_platform_check_ip in user_websever.c which in IOT_Demo.
12+
3.Update UART driver to solve the problem that if send data through UART while ESP8266 startup may cause UART invalid.
13+
4.Update smartconfig to version 2.2, corresponding phone APP v0.3.2. And update the description and example of smartconfig_start in document "2C_ESP8266__Programming Guide"
14+
5.Update code in iram to solve the problem that space for text is not enough.
15+
6.Update PWM driver and provide libpwm.a in esp_iot_sdk, update PWM APIs in "2C_ESP8266__Programming Guide", more details in "Added APIs" below.
16+
7.Revised issue that multicast may fail in ESP8266 softAP mode.
17+
8.Update folder "driver",add folder "driver_lib" in \esp_iot_sdk\examples , add "hw_timer.c" about frc1 hardware timer.
18+
9.Remove useless driver code in IOT_Demo
19+
10.Update IOT_Demo to use the latest PWM driver in light demo.
20+
11.Provide liblwip_536.a of which MSS size is 536
21+
12.Revised issue that boot may fail when 80Mhz SPI clock selected
22+
13.Update esp_init_data_default.bin about RF option in \esp_iot_sdk\bin
23+
24+
Added APIs:
25+
1.PWM APIs:
26+
Updated: pwm_init,add parameter to set PWM channel and GPIO pin
27+
Added:
28+
(1)get_pwm_version:get version information of PWM driver
29+
(2)pwm_set_period:set PWM period
30+
(3)pwm_get_period:get PWM period
31+
Deleted:
32+
(1)pwm_set_freq:set PWM frequency
33+
(2)pwm_get_freq:get PWM frequency
34+
2.Read/write flash with protection
35+
(1)system_param_save_with_protect:write data into flash with backup protection
36+
(2)system_param_load:read data which saved into flash with backup protection
37+
3.system_get_rst_info:get information about current startup,it is a normal startup or watch dog reset
38+
4.at_response:set AT response
39+
5.at_register_response_func:register a callback for user-define AT response.
40+
6.Update document "2C_ESP8266__Programming Guide" to add description of interrupt definition in ets_sys.h
41+
42+
AT_v0.25 Release Note:
43+
Note: For AT firmware to support FOTA, flash size need to be 1024KB or more than that.
44+
Optimization:
45+
1.Add parameter about UDP local port in command "AT+SAVETRANSLINK"
46+
47+
Added AT command:
48+
1.AT+CIPDINFO:set configuration whether show remote IP and remote port with “+IPD” or not
49+
50+
51+
152
esp_iot_sdk_v1.1.0_15_05_27_p1 Release Note
253
-------------------------------------------
354

tools/sdk/include/ets_sys.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ inline uint32_t ETS_INTR_PENDING(void)
7474
#define ETS_FRC_TIMER1_INTR_ATTACH(func, arg) \
7575
ets_isr_attach(ETS_FRC_TIMER1_INUM, (int_handler_t)(func), (void *)(arg))
7676

77+
#define ETS_FRC_TIMER1_NMI_INTR_ATTACH(func) \
78+
NmiTimSetFunc(func)
79+
7780
#define ETS_GPIO_INTR_ATTACH(func, arg) \
7881
ets_isr_attach(ETS_GPIO_INUM, (int_handler_t)(func), (void *)(arg))
7982

tools/sdk/include/smartconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ typedef void (*sc_callback_t)(sc_status status, void *pdata);
2424
const char *smartconfig_get_version(void);
2525
bool smartconfig_start(sc_type type, sc_callback_t cb, ...);
2626
bool smartconfig_stop(void);
27+
bool esptouch_set_timeout(uint8 time_s); //15s~255s, offset:45s
2728

2829
#endif

tools/sdk/include/user_interface.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323
#endif
2424

2525
enum rst_reason {
26-
DEFAULT_RST_FLAG = 0,
27-
WDT_RST_FLAG = 1,
28-
EXCEPTION_RST_FLAG = 2,
29-
SOFT_RST_FLAG = 3,
30-
DEEP_SLEEP_AWAKE_FLAG = 4
26+
REASON_DEFAULT_RST = 0,
27+
REASON_WDT_RST = 1,
28+
REASON_EXCEPTION_RST = 2,
29+
REASON_SOFT_WDT_RST = 3,
30+
REASON_SOFT_RESTART = 4,
31+
REASON_DEEP_SLEEP_AWAKE = 5
3132
};
3233

3334
struct rst_info {
@@ -40,6 +41,8 @@ struct rst_info {
4041
uint32 depc;
4142
};
4243

44+
struct rst_info* system_get_rst_info(void);
45+
4346
#define UPGRADE_FW_BIN1 0x00
4447
#define UPGRADE_FW_BIN2 0x01
4548

@@ -129,6 +132,9 @@ void system_phy_set_max_tpw(uint8 max_tpw);
129132
void system_phy_set_tpw_via_vdd33(uint16 vdd33);
130133
void system_phy_set_rfoption(uint8 option);
131134

135+
bool system_param_save_with_protect(uint16 start_sec, void *param, uint16 len);
136+
bool system_param_load(uint16 start_sec, uint16 offset, void *param, uint16 len);
137+
132138
#define NULL_MODE 0x00
133139
#define STATION_MODE 0x01
134140
#define SOFTAP_MODE 0x02

tools/sdk/lib/libjson.a

104 Bytes
Binary file not shown.

tools/sdk/lib/liblwip.a

-48 Bytes
Binary file not shown.

tools/sdk/lib/libmain.a

-8.07 KB
Binary file not shown.

tools/sdk/lib/libnet80211.a

4.01 KB
Binary file not shown.

tools/sdk/lib/libpp.a

2.03 KB
Binary file not shown.

0 commit comments

Comments
 (0)