Skip to content

Commit f33bcf6

Browse files
author
me-no-dev
committed
IDF release/v3.2 fcc1516fa
1 parent e0b6b35 commit f33bcf6

File tree

111 files changed

+1569
-1064
lines changed

Some content is hidden

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

111 files changed

+1569
-1064
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ compiler.S.flags=-c -g3 -x assembler-with-cpp -MMD -mlongcalls
3535

3636
compiler.c.elf.cmd=xtensa-esp32-elf-gcc
3737
compiler.c.elf.flags=-nostdlib "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" -T esp32_out.ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception
38-
compiler.c.elf.libs=-lgcc -lesp32 -lphy -lesp_http_client -lmbedtls -lrtc -lesp_http_server -lbtdm_app -lspiffs -lbootloader_support -lmdns -lnvs_flash -lfatfs -lpp -lnet80211 -ljsmn -lface_detection -llibsodium -lvfs -ldl_lib -llog -lfreertos -lcxx -lsmartconfig_ack -lxtensa-debug-module -lheap -ltcpip_adapter -lmqtt -lulp -lfd -lfb_gfx -lnghttp -lprotocomm -lsmartconfig -lm -lethernet -limage_util -lc_nano -lsoc -ltcp_transport -lc -lmicro-ecc -lface_recognition -ljson -lwpa_supplicant -lmesh -lesp_https_ota -lwpa2 -lexpat -llwip -lwear_levelling -lapp_update -ldriver -lbt -lespnow -lcoap -lasio -lnewlib -lconsole -lapp_trace -lesp32-camera -lhal -lprotobuf-c -lsdmmc -lcore -lpthread -lcoexist -lfreemodbus -lspi_flash -lesp-tls -lwpa -lwifi_provisioning -lwps -lesp_adc_cal -lesp_event -lopenssl -lesp_ringbuf -lfr -lstdc++
38+
compiler.c.elf.libs=-lgcc -lm -lfatfs -lfreemodbus -lxtensa-debug-module -llog -lheap -lesp32-camera -lesp32 -lexpat -lsoc -lcoap -lwpa_supplicant -lwpa -lconsole -lnvs_flash -lasio -lprotobuf-c -lfd -lsdmmc -lwear_levelling -lmesh -limage_util -lface_recognition -ltcpip_adapter -lcoexist -lspiffs -lwpa2 -lbtdm_app -lc -lprotocomm -lesp_http_client -lopenssl -lethernet -lespnow -lmqtt -ljson -llwip -lesp-tls -lvfs -lrtc -lmicro-ecc -lesp_http_server -lulp -llibsodium -lapp_update -lfreertos -lfb_gfx -lesp_event -lpp -lwps -lsmartconfig -lnet80211 -lod -lfr -lcore -ldl_lib -lphy -lmdns -lsmartconfig_ack -lnghttp -lwifi_provisioning -lmbedtls -lspi_flash -lesp_https_ota -lapp_trace -lnewlib -lface_detection -lpthread -lhal -lcxx -lc_nano -ltcp_transport -lbt -lesp_ringbuf -lbootloader_support -ldriver -ljsmn -lesp_adc_cal -lstdc++
3939

4040
compiler.as.cmd=xtensa-esp32-elf-as
4141

tools/esptool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"Check the README for installation instructions." % (sys.VERSION, sys.executable))
6161
raise
6262

63-
__version__ = "2.8-dev"
63+
__version__ = "2.8"
6464

6565
MAX_UINT32 = 0xffffffff
6666
MAX_UINT24 = 0xffffff
@@ -1904,7 +1904,8 @@ def split_byte(n):
19041904

19051905
chip_id = fields[4]
19061906
if chip_id != self.ROM_LOADER.IMAGE_CHIP_ID:
1907-
print("Unexpected chip id in image. Expected %d but value was %d. Is this image for a different chip model?" % (self.ROM_LOADER.IMAGE_CHIP_ID, chip_id))
1907+
print(("Unexpected chip id in image. Expected %d but value was %d. " +
1908+
"Is this image for a different chip model?") % (self.ROM_LOADER.IMAGE_CHIP_ID, chip_id))
19081909

19091910
# reserved fields in the middle should all be zero
19101911
if any(f for f in fields[6:-1] if f != 0):
@@ -1916,7 +1917,6 @@ def split_byte(n):
19161917
else:
19171918
raise RuntimeError("Invalid value for append_digest field (0x%02x). Should be 0 or 1.", append_digest)
19181919

1919-
19201920
def save_extended_header(self, save_file):
19211921
def join_byte(ln,hn):
19221922
return (ln & 0x0F) + ((hn & 0x0F) << 4)

tools/platformio-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
],
166166

167167
LIBS=[
168-
"-lgcc", "-lesp32", "-lphy", "-lesp_http_client", "-lmbedtls", "-lrtc", "-lesp_http_server", "-lbtdm_app", "-lspiffs", "-lbootloader_support", "-lmdns", "-lnvs_flash", "-lfatfs", "-lpp", "-lnet80211", "-ljsmn", "-lface_detection", "-llibsodium", "-lvfs", "-ldl_lib", "-llog", "-lfreertos", "-lcxx", "-lsmartconfig_ack", "-lxtensa-debug-module", "-lheap", "-ltcpip_adapter", "-lmqtt", "-lulp", "-lfd", "-lfb_gfx", "-lnghttp", "-lprotocomm", "-lsmartconfig", "-lm", "-lethernet", "-limage_util", "-lc_nano", "-lsoc", "-ltcp_transport", "-lc", "-lmicro-ecc", "-lface_recognition", "-ljson", "-lwpa_supplicant", "-lmesh", "-lesp_https_ota", "-lwpa2", "-lexpat", "-llwip", "-lwear_levelling", "-lapp_update", "-ldriver", "-lbt", "-lespnow", "-lcoap", "-lasio", "-lnewlib", "-lconsole", "-lapp_trace", "-lesp32-camera", "-lhal", "-lprotobuf-c", "-lsdmmc", "-lcore", "-lpthread", "-lcoexist", "-lfreemodbus", "-lspi_flash", "-lesp-tls", "-lwpa", "-lwifi_provisioning", "-lwps", "-lesp_adc_cal", "-lesp_event", "-lopenssl", "-lesp_ringbuf", "-lfr", "-lstdc++"
168+
"-lgcc", "-lm", "-lfatfs", "-lfreemodbus", "-lxtensa-debug-module", "-llog", "-lheap", "-lesp32-camera", "-lesp32", "-lexpat", "-lsoc", "-lcoap", "-lwpa_supplicant", "-lwpa", "-lconsole", "-lnvs_flash", "-lasio", "-lprotobuf-c", "-lfd", "-lsdmmc", "-lwear_levelling", "-lmesh", "-limage_util", "-lface_recognition", "-ltcpip_adapter", "-lcoexist", "-lspiffs", "-lwpa2", "-lbtdm_app", "-lc", "-lprotocomm", "-lesp_http_client", "-lopenssl", "-lethernet", "-lespnow", "-lmqtt", "-ljson", "-llwip", "-lesp-tls", "-lvfs", "-lrtc", "-lmicro-ecc", "-lesp_http_server", "-lulp", "-llibsodium", "-lapp_update", "-lfreertos", "-lfb_gfx", "-lesp_event", "-lpp", "-lwps", "-lsmartconfig", "-lnet80211", "-lod", "-lfr", "-lcore", "-ldl_lib", "-lphy", "-lmdns", "-lsmartconfig_ack", "-lnghttp", "-lwifi_provisioning", "-lmbedtls", "-lspi_flash", "-lesp_https_ota", "-lapp_trace", "-lnewlib", "-lface_detection", "-lpthread", "-lhal", "-lcxx", "-lc_nano", "-ltcp_transport", "-lbt", "-lesp_ringbuf", "-lbootloader_support", "-ldriver", "-ljsmn", "-lesp_adc_cal", "-lstdc++"
169169
],
170170

171171
LIBSOURCE_DIRS=[

tools/sdk/bin/bootloader_dio_40m.bin

240 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_dio_80m.bin

240 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_dout_40m.bin

240 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_dout_80m.bin

240 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_qio_40m.bin

224 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_qio_80m.bin

224 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_qout_40m.bin

224 Bytes
Binary file not shown.

tools/sdk/bin/bootloader_qout_80m.bin

224 Bytes
Binary file not shown.

tools/sdk/include/bootloader_support/bootloader_common.h

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ typedef enum {
2323
GPIO_NOT_HOLD = 0 /*!< If the GPIO input is not low */
2424
} esp_comm_gpio_hold_t;
2525

26+
typedef enum {
27+
ESP_IMAGE_BOOTLOADER,
28+
ESP_IMAGE_APPLICATION
29+
} esp_image_type;
30+
2631
/**
2732
* @brief Calculate crc for the OTA data partition.
2833
*
@@ -103,23 +108,16 @@ uint8_t bootloader_common_get_chip_revision(void);
103108
/**
104109
* @brief Check if the image (bootloader and application) has valid chip ID and revision
105110
*
106-
* @param img_hdr: image header
111+
* @param[in] img_hdr: image header
112+
* @param[in] type: image type, bootloader or application
107113
* @return
108114
* - ESP_OK: image and chip are matched well
109115
* - ESP_FAIL: image doesn't match to the chip
110116
*/
111-
esp_err_t bootloader_common_check_chip_validity(const esp_image_header_t* img_hdr);
117+
esp_err_t bootloader_common_check_chip_validity(const esp_image_header_t* img_hdr, esp_image_type type);
112118

113119

114120
/**
115121
* @brief Configure VDDSDIO, call this API to rise VDDSDIO to 1.9V when VDDSDIO regulator is enabled as 1.8V mode.
116122
*/
117123
void bootloader_common_vddsdio_configure();
118-
119-
/**
120-
* @brief Set the flash CS setup and hold time.
121-
*
122-
* CS setup time is recomemded to be 1.5T, and CS hold time is recommended to be 2.5T.
123-
* cs_setup = 1, cs_setup_time = 0; cs_hold = 1, cs_hold_time = 1
124-
*/
125-
void bootloader_common_set_flash_cs_timing();
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#pragma once
16+
17+
#include "esp_image_format.h"
18+
19+
#ifdef __cplusplus
20+
extern "C" {
21+
#endif
22+
23+
/**
24+
* @brief Update the flash id in g_rom_flashchip(global esp_rom_spiflash_chip_t structure).
25+
*
26+
* @return None
27+
*/
28+
void bootloader_flash_update_id();
29+
30+
/**
31+
* @brief Set the flash CS setup and hold time.
32+
*
33+
* @note CS setup time is recomemded to be 1.5T, and CS hold time is recommended to be 2.5T.
34+
* cs_setup = 1, cs_setup_time = 0; cs_hold = 1, cs_hold_time = 1.
35+
*
36+
* @return None
37+
*/
38+
void bootloader_flash_cs_timing_config();
39+
40+
/**
41+
* @brief Configure SPI flash clock.
42+
*
43+
* @note This function only set clock frequency for SPI0.
44+
*
45+
* @param pfhdr Pointer to App image header, from where to fetch flash settings.
46+
*
47+
* @return None
48+
*/
49+
void bootloader_flash_clock_config(const esp_image_header_t* pfhdr);
50+
51+
/**
52+
* @brief Configure SPI flash gpio, include the IO matrix and drive strength configuration.
53+
*
54+
* @param pfhdr Pointer to App image header, from where to fetch flash settings.
55+
*
56+
* @return None
57+
*/
58+
void bootloader_flash_gpio_config(const esp_image_header_t* pfhdr);
59+
60+
/**
61+
* @brief Configure SPI flash read dummy based on different mode and frequency.
62+
*
63+
* @param pfhdr Pointer to App image header, from where to fetch flash settings.
64+
*
65+
* @return None
66+
*/
67+
void bootloader_flash_dummy_config(const esp_image_header_t* pfhdr);
68+
69+
#ifdef __cplusplus
70+
}
71+
#endif

tools/sdk/include/bt/esp_spp_api.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef enum {
3030
ESP_SPP_NO_RESOURCE /*!< No more set pm control block */
3131
} esp_spp_status_t;
3232

33-
/* Security Setting Mask */
33+
/* Security Setting Mask, Only support ESP_SPP_SEC_AUTHORIZE.*/
3434
#define ESP_SPP_SEC_NONE 0x0000 /*!< No security. relate to BTA_SEC_NONE in bta/bta_api.h */
3535
#define ESP_SPP_SEC_AUTHORIZE 0x0001 /*!< Authorization required (only needed for out going connection ) relate to BTA_SEC_AUTHORIZE in bta/bta_api.h*/
3636
#define ESP_SPP_SEC_AUTHENTICATE 0x0012 /*!< Authentication required. relate to BTA_SEC_AUTHENTICATE in bta/bta_api.h*/
@@ -229,7 +229,7 @@ esp_err_t esp_spp_start_discovery(esp_bd_addr_t bd_addr);
229229
* When the connection is established or failed,
230230
* the callback is called with ESP_SPP_OPEN_EVT.
231231
*
232-
* @param[in] sec_mask: Security Setting Mask .
232+
* @param[in] sec_mask: Security Setting Mask. Only support ESP_SPP_SEC_AUTHORIZE.
233233
* @param[in] role: Master or slave.
234234
* @param[in] remote_scn: Remote device bluetooth device SCN.
235235
* @param[in] peer_bd_addr: Remote device bluetooth device address.
@@ -260,7 +260,7 @@ esp_err_t esp_spp_disconnect(uint32_t handle);
260260
* When the connection is established, the callback is called
261261
* with ESP_SPP_SRV_OPEN_EVT.
262262
*
263-
* @param[in] sec_mask: Security Setting Mask .
263+
* @param[in] sec_mask: Security Setting Mask. Only support ESP_SPP_SEC_AUTHORIZE.
264264
* @param[in] role: Master or slave.
265265
* @param[in] local_scn: The specific channel you want to get.
266266
* If channel is 0, means get any channel.

tools/sdk/include/config/sdkconfig.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
#define CONFIG_ESP32_WIFI_NVS_ENABLED 1
174174
#define CONFIG_MDNS_MAX_SERVICES 10
175175
#define CONFIG_ULP_COPROC_ENABLED 1
176+
#define CONFIG_LSSH_SPARSE_MN_5 1
176177
#define CONFIG_HFP_AUDIO_DATA_PATH_PCM 1
177178
#define CONFIG_EMAC_CHECK_LINK_PERIOD_MS 2000
178179
#define CONFIG_BTDM_LPCLK_SEL_MAIN_XTAL 1
@@ -360,5 +361,5 @@
360361
#define CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR 1
361362
#define CONFIG_ESP32_WIFI_IRAM_OPT 1
362363
#define CONFIG_FATFS_API_ENCODING_ANSI_OEM 1
363-
#define CONFIG_ARDUINO_IDF_COMMIT "90af68bd3"
364+
#define CONFIG_ARDUINO_IDF_COMMIT "fcc1516fa"
364365
#define CONFIG_ARDUINO_IDF_BRANCH "release/v3.2"

0 commit comments

Comments
 (0)