Skip to content

Commit 90c641e

Browse files
committed
Version 2.1.0(116b762)
### System 1. Fix and update the license; 2. Add definitions of ROM functions; 3. Add efuse mac crc, save efuse mac into the system parameter area of flash, as a backup mac; 4. Implement `uart_div_modify`, which can support a 32-bit DivLatchValue in the SDK instead of the ROM one, and also remove `uart_div_modify` from the ld file; 5. Reduce iRAM usage by transferring some functions to flash; - add weak function `void user_spi_flash_dio_to_qio_pre_init(void)`. If the dio to qio flash mode is not used, users can add an empty `user_spi_flash_dio_to_qio_pre_init` on the application side to reduce iRAM usage; 6. Fix WDT in system_restart; 7. Fix Write & Read issue in SPI overlap mode; 8. Support 8MB & 16MB spi flash; 9. Update boot v1.7; - Support 8MB & 16MB spi flash; - Try boot the first bin for 3 times. If it fails, then boot the backup bin; 10. Fix http packet error, BBP301; 11. Support long periods of deep sleep; 12. Fix NMI handle crash on unaligned memory access, BBP309; ### Lwip 1. Add set and get dns server APIs: - espconn_dns_setserver - espconn_dns_getserver 2. Fix 2038 overflow bug in sntp_get_current_timestamp; 3. Fix MTU negotiate bug; ### AT 1. Add new commands, AT+UART? and AT+UART_DEF?; 2. Add new command, AT+SYSRAM?; 3. Add new commands, AT+SYSIO series; 4. Add new command, AT+CWHOSTNAME; 5. Add new command, AT+SYSADC?; 6. Add new commands, AT+CIPSNTPCFG and AT+CIPSNTPTIME; 7. Add new commands, AT+CIPDNS_CUR and AT+CIPDNS_DEF; 8. Support a maximum of 8 stations; 9. Modify keepalive count to 3 times; 10. Fix scan hidden ssid issue in AT+CWLAP; 11. Fix the issue of the UART stop bit being 0 when queried for the first time; 12. Fix MAC addr conflict in AP+STA mode; 13. Add new commands, AT+RFAUTOTRACE; ### WiFi 1. Optimize the RF frequency calibration workflow, having the frequency trace disabled by default; - users can call `system_phy_freq_trace_enable` in `user_rf_pre_init` to enable it; 2. Update libphy.a to version 1134_0; 3. Allow sending a broadcast ESP-NOW packet, but make sure that the packet is unencrypted; 4. Fix soft queue error; 5. Fix EVENT_STAMODE_AUTHMODE_CHANGE event mode info; 6. Fix lmac assert; 7. Fix bug in sniffer mode; 8. Fix arp loss continously issue; 9. Fix bug in WiFi event; - auth mode changed event cannot be throw when station is in the process of scanning; - error old auth mode and new auth mode; - op mode change process cannot be blocked, so add an event to notify the caller that op mode is changed; 10. Fix the bug in mic failure handler; 11. Fix the bug which causes failure of connection to an AP with shared WEP; 12. Fix the bug which causes failure of connection to an AP with hidden ssid; 13. Fix softAP deauth; 14. Fix reconnect policy when trying to connect to an AP that does not exist; 15. Fix scan issue; 16. Fix extra bytes in UDP broadcast packet, BBP310;
1 parent 06b117d commit 90c641e

File tree

155 files changed

+777
-387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+777
-387
lines changed

License

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ESPERSSIF MIT License
1+
ESPRESSIF MIT License
22

33
Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
44

Makefile

+26-10
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,26 @@ else
116116
addr = 0x101000
117117
endif
118118
else
119-
size_map = 0
120-
flash = 512
121-
ifeq ($(app), 2)
122-
addr = 0x41000
119+
ifeq ($(SPI_SIZE_MAP), 8)
120+
size_map = 8
121+
flash = 8192
122+
ifeq ($(app), 2)
123+
addr = 0x101000
124+
endif
125+
else
126+
ifeq ($(SPI_SIZE_MAP), 9)
127+
size_map = 9
128+
flash = 16384
129+
ifeq ($(app), 2)
130+
addr = 0x101000
131+
endif
132+
else
133+
size_map = 0
134+
flash = 512
135+
ifeq ($(app), 2)
136+
addr = 0x41000
137+
endif
138+
endif
123139
endif
124140
endif
125141
endif
@@ -132,7 +148,7 @@ LD_FILE = $(LDDIR)/eagle.app.v6.ld
132148

133149
ifneq ($(boot), none)
134150
ifneq ($(app),0)
135-
ifeq ($(size_map), 6)
151+
ifneq ($(findstring $(size_map), 6 8 9),)
136152
LD_FILE = $(LDDIR)/eagle.app.v6.$(boot).2048.ld
137153
else
138154
ifeq ($(size_map), 5)
@@ -151,11 +167,11 @@ ifneq ($(app),0)
151167
LD_FILE = $(LDDIR)/eagle.app.v6.$(boot).512.app$(app).ld
152168
endif
153169
endif
154-
endif
155-
endif
156-
endif
157-
endif
158-
BIN_NAME = user$(app).$(flash).$(boot).$(size_map)
170+
endif
171+
endif
172+
endif
173+
endif
174+
BIN_NAME = user$(app).$(flash).$(boot).$(size_map)
159175
endif
160176
else
161177
app = 0

bin/at/1024+1024/user1.2048.new.5.bin

7.67 KB
Binary file not shown.

bin/at/1024+1024/user2.2048.new.5.bin

7.67 KB
Binary file not shown.

bin/at/512+512/user1.1024.new.2.bin

7.67 KB
Binary file not shown.

bin/at/512+512/user2.1024.new.2.bin

7.67 KB
Binary file not shown.

bin/at/noboot/eagle.flash.bin

-40.2 KB
Binary file not shown.

bin/at/noboot/eagle.irom0text.bin

-362 KB
Binary file not shown.
7.67 KB
Binary file not shown.
7.67 KB
Binary file not shown.
7.67 KB
Binary file not shown.
7.67 KB
Binary file not shown.

bin/at_sdio/noboot/eagle.flash.bin

-41.6 KB
Binary file not shown.
-363 KB
Binary file not shown.

bin/boot_v1.7.bin

3.98 KB
Binary file not shown.

driver_lib/driver/gpio16.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/driver/hw_timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/driver/i2c_master.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/driver/key.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/driver/sdio_slv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/driver/spi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/driver/spi_interface.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/driver/spi_overlap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/driver/uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/gpio16.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/i2c_master.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/key.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/sdio_slv.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/slc_register.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//Generated at 2012-10-23 19:55:03
22
/*
3-
* ESPRSSIF MIT License
3+
* ESPRESSIF MIT License
44
*
55
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
66
*

driver_lib/include/driver/spi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/spi_interface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/spi_overlap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/spi_register.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/uart.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

driver_lib/include/driver/uart_register.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/driver/i2c_master.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/driver/key.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*
@@ -31,7 +31,7 @@
3131

3232
#include "driver/key.h"
3333

34-
LOCAL void key_intr_handler(struct keys_param *keys);
34+
LOCAL void key_intr_handler(void *arg);
3535

3636
/******************************************************************************
3737
* FunctionName : key_init_single
@@ -144,10 +144,11 @@ key_50ms_cb(struct single_key_param *single_key)
144144
* Returns : none
145145
*******************************************************************************/
146146
LOCAL void
147-
key_intr_handler(struct keys_param *keys)
147+
key_intr_handler(void *arg)
148148
{
149149
uint8 i;
150150
uint32 gpio_status = GPIO_REG_READ(GPIO_STATUS_ADDRESS);
151+
struct keys_param *keys = (struct keys_param *)arg;
151152

152153
for (i = 0; i < keys->key_num; i++) {
153154
if (gpio_status & BIT(keys->single_key[i]->gpio_id)) {

examples/IoT_Demo/gen_misc.sh

100644100755
+16-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ echo " 3=2048KB( 512KB+ 512KB)"
106106
echo " 4=4096KB( 512KB+ 512KB)"
107107
echo " 5=2048KB(1024KB+1024KB)"
108108
echo " 6=4096KB(1024KB+1024KB)"
109-
echo "enter (0/2/3/4/5/6, default 0):"
109+
echo " 7=4096KB(2048KB+2048KB) not support ,just for compatible with nodeMCU board"
110+
echo " 8=8192KB(1024KB+1024KB)"
111+
echo " 9=16384KB(1024KB+1024KB)"
112+
echo "enter (0/2/3/4/5/6/7/8/9, default 0):"
110113
read input
111114

112115
if [ -z "$input" ]; then
@@ -133,14 +136,24 @@ elif [ $input == 6 ]; then
133136
spi_size_map=6
134137
echo "spi size: 4096KB"
135138
echo "spi ota map: 1024KB + 1024KB"
139+
elif [ $input == 7 ]; then
140+
spi_size_map=7
141+
echo"not support ,just for compatible with nodeMCU board"
142+
exit
143+
elif [ $input == 8 ]; then
144+
spi_size_map=8
145+
echo "spi size: 8192KB"
146+
echo "spi ota map: 1024KB + 1024KB"
147+
elif [ $input == 9 ]; then
148+
spi_size_map=9
149+
echo "spi size: 16384KB"
150+
echo "spi ota map: 1024KB + 1024KB"
136151
else
137152
spi_size_map=0
138153
echo "spi size: 512KB"
139154
echo "spi ota map: 256KB + 256KB"
140155
fi
141156

142-
echo ""
143-
144157
touch user/user_main.c
145158

146159
echo ""

examples/IoT_Demo/include/driver/i2c_master.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/driver/key.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/ssl/cert.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/ssl/private_key.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_devicefind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_esp_platform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_esp_platform_timer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_iot_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_json.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_light.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_light_adj.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_plug.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_sensor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/include/user_webserver.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

examples/IoT_Demo/user/user_devicefind.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ESPRSSIF MIT License
2+
* ESPRESSIF MIT License
33
*
44
* Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
55
*

0 commit comments

Comments
 (0)