Skip to content

Commit 8bca8d5

Browse files
committed
Update IDF libs to 969f1bb (skip BT commits)
This update also increases BT stack size and enables reboot on exception
1 parent 856823e commit 8bca8d5

Some content is hidden

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

60 files changed

+947
-13
lines changed

‎tools/sdk/bin/bootloader.bin‎

-704 Bytes
Binary file not shown.

‎tools/sdk/bin/bootloader_qio.bin‎

-704 Bytes
Binary file not shown.

‎tools/sdk/include/app_trace/esp_ota_ops.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ esp_err_t esp_ota_set_boot_partition(const esp_partition_t* partition);
129129
* If esp_ota_set_boot_partition() has not been called, the result is
130130
* equivalent to esp_ota_get_running_partition().
131131
*
132+
* Note that there is no guarantee the returned partition is a valid app. Use esp_image_load(ESP_IMAGE_VERIFY, ...) to verify if the
133+
* partition contains a bootable image.
134+
*
132135
* @return Pointer to info for partition structure, or NULL if no partition is found or flash read operation failed. Returned pointer is valid for the lifetime of the application.
133136
*/
134137
constesp_partition_t*esp_ota_get_boot_partition(void);
@@ -142,6 +145,9 @@ const esp_partition_t* esp_ota_get_boot_partition(void);
142145
* esp_ota_set_boot_partition(). Only the app whose code is currently
143146
* running will have its partition information returned.
144147
*
148+
* The partition returned by this function may also differ from esp_ota_get_boot_partition() if the configured boot
149+
* partition is somehow invalid, and the bootloader fell back to a different app partition at boot.
150+
*
145151
* @return Pointer to info for partition structure, or NULL if no partition is found or flash read operation failed. Returned pointer is valid for the lifetime of the application.
146152
*/
147153
constesp_partition_t*esp_ota_get_running_partition(void);

‎tools/sdk/include/app_update/esp_ota_ops.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ esp_err_t esp_ota_set_boot_partition(const esp_partition_t* partition);
129129
* If esp_ota_set_boot_partition() has not been called, the result is
130130
* equivalent to esp_ota_get_running_partition().
131131
*
132+
* Note that there is no guarantee the returned partition is a valid app. Use esp_image_load(ESP_IMAGE_VERIFY, ...) to verify if the
133+
* partition contains a bootable image.
134+
*
132135
* @return Pointer to info for partition structure, or NULL if no partition is found or flash read operation failed. Returned pointer is valid for the lifetime of the application.
133136
*/
134137
constesp_partition_t*esp_ota_get_boot_partition(void);
@@ -142,6 +145,9 @@ const esp_partition_t* esp_ota_get_boot_partition(void);
142145
* esp_ota_set_boot_partition(). Only the app whose code is currently
143146
* running will have its partition information returned.
144147
*
148+
* The partition returned by this function may also differ from esp_ota_get_boot_partition() if the configured boot
149+
* partition is somehow invalid, and the bootloader fell back to a different app partition at boot.
150+
*
145151
* @return Pointer to info for partition structure, or NULL if no partition is found or flash read operation failed. Returned pointer is valid for the lifetime of the application.
146152
*/
147153
constesp_partition_t*esp_ota_get_running_partition(void);

‎tools/sdk/include/bootloader_support/esp_flash_partitions.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/* Pre-partition table fixed flash offsets */
2222
#defineESP_BOOTLOADER_DIGEST_OFFSET 0x0
2323
#defineESP_BOOTLOADER_OFFSET 0x1000 /* Offset of bootloader image. Has matching value in bootloader KConfig.projbuild file. */
24+
#defineESP_BOOTLOADER_SIZE (ESP_PARTITION_TABLE_OFFSET - ESP_BOOTLOADER_OFFSET)
2425
#defineESP_PARTITION_TABLE_OFFSET 0x8000 /* Offset of partition table. Has matching value in partition_table Kconfig.projbuild file. */
2526

2627
#defineESP_PARTITION_TABLE_MAX_LEN 0xC00 /* Maximum length of partition table data */

‎tools/sdk/include/bootloader_support/esp_image_format.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ esp_err_t esp_image_load(esp_image_load_mode_t mode, const esp_partition_pos_t *
142142
*/
143143
esp_err_tesp_image_verify_bootloader(uint32_t*length);
144144

145-
146145
typedefstruct{
147146
uint32_tdrom_addr;
148147
uint32_tdrom_load_addr;

‎tools/sdk/include/config/sdkconfig.h‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#defineCONFIG_SW_COEXIST_ENABLE 1
1616
#defineCONFIG_ESPTOOLPY_FLASHSIZE_4MB 1
1717
#defineCONFIG_IPC_TASK_STACK_SIZE 1024
18-
#defineCONFIG_ESPTOOLPY_FLASHFREQ "80m"
18+
#defineCONFIG_ESPTOOLPY_FLASHFREQ "40m"
1919
#defineCONFIG_NEWLIB_STDOUT_ADDCR 1
2020
#defineCONFIG_UDP_RECVMBOX_SIZE 6
2121
#defineCONFIG_TASK_WDT_CHECK_IDLE_TASK 1
@@ -26,9 +26,11 @@
2626
#defineCONFIG_EMAC_L2_TO_L3_RX_BUF_MODE 1
2727
#defineCONFIG_INT_WDT 1
2828
#defineCONFIG_ARDUHAL_LOG_DEFAULT_LEVEL 1
29+
#defineCONFIG_ESPTOOLPY_FLASHFREQ_40M 1
2930
#defineCONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
3031
#defineCONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM 10
3132
#defineCONFIG_BT_RESERVE_DRAM 0x10000
33+
#defineCONFIG_ESP32_PANIC_PRINT_REBOOT 1
3234
#defineCONFIG_CONSOLE_UART_BAUDRATE 115200
3335
#defineCONFIG_LWIP_MAX_SOCKETS 10
3436
#defineCONFIG_EMAC_TASK_PRIORITY 20
@@ -38,13 +40,15 @@
3840
#defineCONFIG_ULP_COPROC_RESERVE_MEM 512
3941
#defineCONFIG_ESPTOOLPY_BAUD 921600
4042
#defineCONFIG_INT_WDT_CHECK_CPU1 1
43+
#defineCONFIG_FLASHMODE_DIO 1
4144
#defineCONFIG_ESPTOOLPY_AFTER_RESET 1
4245
#defineCONFIG_OPTIMIZATION_ASSERTIONS_ENABLED 1
4346
#defineCONFIG_TOOLPREFIX "xtensa-esp32-elf-"
4447
#defineCONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
4548
#defineCONFIG_FATFS_LFN_STACK 1
4649
#defineCONFIG_ESP32_WIFI_AMPDU_ENABLED 1
4750
#defineCONFIG_CONSOLE_UART_NUM 0
51+
#defineCONFIG_ESP32_APPTRACE_LOCK_ENABLE 1
4852
#defineCONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC 1
4953
#defineCONFIG_LWIP_THREAD_LOCAL_STORAGE_INDEX 0
5054
#defineCONFIG_TCP_OVERSIZE_MSS 1
@@ -63,13 +67,12 @@
6367
#defineCONFIG_MAIN_TASK_STACK_SIZE 4096
6468
#defineCONFIG_TASK_WDT_TIMEOUT_S 5
6569
#defineCONFIG_INT_WDT_TIMEOUT_MS 300
66-
#defineCONFIG_ESPTOOLPY_FLASHMODE "dout"
67-
#defineCONFIG_BTC_TASK_STACK_SIZE2048
70+
#defineCONFIG_ESPTOOLPY_FLASHMODE "dio"
71+
#defineCONFIG_BTC_TASK_STACK_SIZE8192
6872
#defineCONFIG_BLUEDROID_ENABLED 1
6973
#defineCONFIG_ESPTOOLPY_BEFORE "default_reset"
7074
#defineCONFIG_LOG_DEFAULT_LEVEL 1
7175
#defineCONFIG_TIMER_QUEUE_LENGTH 10
72-
#defineCONFIG_FLASHMODE_DOUT 1
7376
#defineCONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM 0
7477
#defineCONFIG_ESP32_PHY_MAX_WIFI_TX_POWER 20
7578
#defineCONFIG_ESP32_RTC_CLK_CAL_CYCLES 1024
@@ -87,7 +90,6 @@
8790
#defineCONFIG_PARTITION_TABLE_SINGLE_APP 1
8891
#defineCONFIG_ESP32_WIFI_RX_BA_WIN 6
8992
#defineCONFIG_WIFI_ENABLED 1
90-
#defineCONFIG_ESPTOOLPY_FLASHFREQ_80M 1
9193
#defineCONFIG_SYSTEM_EVENT_TASK_STACK_SIZE 2048
9294
#defineCONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY 2000
9395
#defineCONFIG_BROWNOUT_DET_LVL 0
@@ -113,6 +115,7 @@
113115
#defineCONFIG_ESPTOOLPY_AFTER "hard_reset"
114116
#defineCONFIG_LWIP_SO_REUSE 1
115117
#defineCONFIG_DMA_TX_BUF_NUM 10
118+
#defineCONFIG_WL_SECTOR_SIZE 4096
116119
#defineCONFIG_TIMER_TASK_PRIORITY 1
117120
#defineCONFIG_BT_ENABLED 1
118121
#defineCONFIG_MONITOR_BAUD 115200
@@ -126,6 +129,7 @@
126129
#defineCONFIG_CLASSIC_BT_ENABLED 1
127130
#defineCONFIG_FREERTOS_WATCHPOINT_END_OF_STACK 1
128131
#defineCONFIG_OPENSSL_ASSERT_DO_NOTHING 1
132+
#defineCONFIG_WL_SECTOR_SIZE_4096 1
129133
#defineCONFIG_OPTIMIZATION_LEVEL_DEBUG 1
130134
#defineCONFIG_SYSTEM_EVENT_QUEUE_SIZE 32
131135
#defineCONFIG_BT_ACL_CONNECTIONS 4
@@ -138,5 +142,4 @@
138142
#defineCONFIG_LWIP_SO_RCVBUF 1
139143
#defineCONFIG_MONITOR_BAUD_OTHER_VAL 115200
140144
#defineCONFIG_ESPTOOLPY_PORT "/dev/cu.usbserial-DO00EAB0"
141-
#defineCONFIG_ESP32_PANIC_PRINT_HALT 1
142145
#defineCONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR 1

‎tools/sdk/include/driver/driver/gpio.h‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@ typedef enum{
219219
GPIO_FLOATING, /*!< Pad floating */
220220
} gpio_pull_mode_t;
221221

222+
typedefenum{
223+
GPIO_DRIVE_CAP_0=0, /*!< Pad drive capability: weak */
224+
GPIO_DRIVE_CAP_1=1, /*!< Pad drive capability: stronger */
225+
GPIO_DRIVE_CAP_2=2, /*!< Pad drive capability: default value */
226+
GPIO_DRIVE_CAP_DEFAULT=2, /*!< Pad drive capability: default value */
227+
GPIO_DRIVE_CAP_3=3, /*!< Pad drive capability: strongest */
228+
GPIO_DRIVE_CAP_MAX,
229+
} gpio_drive_cap_t;
222230

223231
typedefvoid (*gpio_isr_t)(void*);
224232
typedefintr_handle_tgpio_isr_handle_t;
@@ -481,6 +489,29 @@ esp_err_t gpio_isr_handler_add(gpio_num_t gpio_num, gpio_isr_t isr_handler, void
481489
*/
482490
esp_err_tgpio_isr_handler_remove(gpio_num_tgpio_num);
483491

492+
/**
493+
* @brief Set GPIO pad drive capability
494+
*
495+
* @param gpio_num GPIO number, only support output GPIOs
496+
* @param strength Drive capability of the pad
497+
*
498+
* @return
499+
* - ESP_OK Success
500+
* - ESP_ERR_INVALID_ARG Parameter error
501+
*/
502+
esp_err_tgpio_set_drive_capability(gpio_num_tgpio_num, gpio_drive_cap_tstrength);
503+
504+
/**
505+
* @brief Get GPIO pad drive capability
506+
*
507+
* @param gpio_num GPIO number, only support output GPIOs
508+
* @param strength Pointer to accept drive capability of the pad
509+
*
510+
* @return
511+
* - ESP_OK Success
512+
* - ESP_ERR_INVALID_ARG Parameter error
513+
*/
514+
esp_err_tgpio_get_drive_capability(gpio_num_tgpio_num, gpio_drive_cap_t*strength);
484515

485516
#ifdef__cplusplus
486517
}

‎tools/sdk/include/driver/driver/rtc_io.h‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ typedef struct{
4040
uint32_tslpie; /*!< Mask of input enable in sleep mode */
4141
uint32_thold; /*!< Mask of hold enable */
4242
uint32_thold_force;/*!< Mask of hold_force bit for RTC IO in RTC_CNTL_HOLD_FORCE_REG */
43+
uint32_tdrv_v; /*!< Mask of drive capability */
44+
uint32_tdrv_s; /*!< Offset of drive capability */
4345
intrtc_num; /*!< RTC IO number, or -1 if not an RTC GPIO */
4446
} rtc_gpio_desc_t;
4547

@@ -232,6 +234,29 @@ esp_err_t rtc_gpio_hold_dis(gpio_num_t gpio_num);
232234
*/
233235
voidrtc_gpio_force_hold_dis_all();
234236

237+
/**
238+
* @brief Set RTC GPIO pad drive capability
239+
*
240+
* @param gpio_num GPIO number, only support output GPIOs
241+
* @param strength Drive capability of the pad
242+
*
243+
* @return
244+
* - ESP_OK Success
245+
* - ESP_ERR_INVALID_ARG Parameter error
246+
*/
247+
esp_err_trtc_gpio_set_drive_capability(gpio_num_tgpio_num, gpio_drive_cap_tstrength);
248+
249+
/**
250+
* @brief Get RTC GPIO pad drive capability
251+
*
252+
* @param gpio_num GPIO number, only support output GPIOs
253+
* @param strength Pointer to accept drive capability of the pad
254+
*
255+
* @return
256+
* - ESP_OK Success
257+
* - ESP_ERR_INVALID_ARG Parameter error
258+
*/
259+
esp_err_trtc_gpio_get_drive_capability(gpio_num_tgpio_num, gpio_drive_cap_t*strength);
235260

236261
#ifdef__cplusplus
237262
}

‎tools/sdk/include/driver/driver/sdmmc_host.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,17 @@ esp_err_t sdmmc_host_set_card_clk(int slot, uint32_t freq_khz);
142142
* can call sdmmc_host_do_transaction as long as other sdmmc_host_*
143143
* functions are not called.
144144
*
145+
* @attention Data buffer passed in cmdinfo->data must be in DMA capable memory
146+
*
145147
* @param slot slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1)
146148
* @param cmdinfo pointer to structure describing command and data to transfer
147149
* @return
148150
* - ESP_OK on success
149151
* - ESP_ERR_TIMEOUT if response or data transfer has timed out
150152
* - ESP_ERR_INVALID_CRC if response or data transfer CRC check has failed
151153
* - ESP_ERR_INVALID_RESPONSE if the card has sent an invalid response
154+
* - ESP_ERR_INVALID_SIZE if the size of data transfer is not valid in SD protocol
155+
* - ESP_ERR_INVALID_ARG if the data buffer is not in DMA capable memory
152156
*/
153157
esp_err_tsdmmc_host_do_transaction(intslot, sdmmc_command_t*cmdinfo);
154158

0 commit comments

Comments
(0)