Commit Graph

1890 Commits

Author SHA1 Message Date
Zim Kalinowski
700eee91ca Merge branch 'bugfix/prefetch_invalid_v3.3' into 'release/v3.3'
soc: add dummy bytes to ensure instr prefetch always valid (v3.3)

See merge request espressif/esp-idf!12997
2021-07-19 01:42:17 +00:00
Mahavir Jain
e2015eb371 Merge branch 'bugfix/heap_trace_invalid_addr_v3.3' into 'release/v3.3'
heap: fix backtrace termination (v3.3)

See merge request espressif/esp-idf!13899
2021-07-12 12:23:00 +00:00
Marius Vikhammer
5b91a8173e soc: add dummy bytes to ensure instr prefetch always valid
The CPU might prefetch instructions, which means it in some cases
will try to fetch instruction located after the last instruction in
flash.text.

Add dummy bytes to ensure fetching these wont result in an error,
 e.g. MMU exceptions
2021-07-09 14:40:24 +08:00
ChenJianxing
671ab9223c esp_wifi: fix amsdu & fragment vulnerabilities 2021-06-22 20:48:37 +08:00
Ivan Grokhotkov
19636db724 test: add a (non-automated) case for backtraces with ROM functions 2021-06-08 17:28:00 +10:00
Wang Meng Yang
c9cf530c51 Merge branch 'bugfix/invalid_feat_page_exec_v3.3' into 'release/v3.3'
bt controller: Fixed handling for invalid feature page.

See merge request espressif/esp-idf!13569
2021-06-07 01:35:22 +00:00
baohongde
bb824d7a4b bugfix/fix crash when lmp flooding 2021-06-02 17:34:45 +08:00
Angus Gratton
22487a65ac paritition_table: Verify the partition table md5sum when loading the app
Additionally, always enable the partition MD5 check if flash encryption is on in
Release mode. This ensures the partition table ciphertext has not been modified
(CVE-2021-27926).

The exception is pre-V3.1 ESP-IDF bootloaders and partition tables, which
don't have support for the MD5 entry.
2021-06-02 16:32:31 +10:00
Jiang Jiang Jian
aacc7e07a6 Merge branch 'bugfix/fix_set_channel_error_after_wifi_stop_v3.3' into 'release/v3.3'
esp_wifi: Fix setting channel error after WiFi stop (backport v3.3)

See merge request espressif/esp-idf!13453
2021-05-25 14:29:07 +00:00
xiehang
1a47ecbfac esp_wifi: Fix setting channel error after WiFi stop 2021-05-06 14:06:29 +08:00
houwenxiang
8fcca01384 driver(uart): fix uart module reset issue (release V3.3)
On ESP32, due to fifo reset issue, UART2 will work incorrectly if reset the fifo of UART1(TX fifo and RX fifo). The software can workaround the RX fifo reset issue,

    while the TX fifo reset issue can not. When UART2 is used and UART1 is used as the log output port, a software reset can reproduce this issue. So we should reset the UART memory

    before the software reset to solve this problem.
2021-04-27 10:12:59 +00:00
Jiang Jiang Jian
cf79bfbc5f Merge branch 'bugfix/fix_wifi_interface_use_v3.3' into 'release/v3.3'
esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA  (backport v3.3)

See merge request espressif/esp-idf!12055
2021-04-22 05:57:04 +00:00
Jiang Jiang Jian
22502bbd38 Merge branch 'bugfix/fix_tx_issue_after_esp_restart_v3.3' into 'release/v3.3'
components/bt: Shutdown Bluetooth before esp_restart.(V3.3)

See merge request espressif/esp-idf!11758
2021-04-22 05:52:18 +00:00
Jiang Jiang Jian
bc625858ae Merge branch 'bugfix/esp_pm_dump_critical_v3.3' into 'release/v3.3'
esp_pm: esp_pm_dump_locks: don't print from a critical section, and fix formatting (backport v3.3)

See merge request espressif/esp-idf!12017
2021-04-22 05:47:12 +00:00
Sachin Parekh
3c7f439d5b bootloader: Add fault injection resistance to Secure Boot bootloader verification 2021-03-31 17:54:45 +05:30
Angus Gratton
08ce445ab6 Merge branch 'feature/twdt_prints_backtrace_v3.3' into 'release/v3.3'
Add Task Watchdog backtrace printing (v3.3)

See merge request espressif/esp-idf!12624
2021-03-31 05:17:23 +00:00
Mahavir Jain
7c86027531 Merge branch 'bugfix/rtc_clk_cal_cycles_add_default_vals_for_all_sources_v3.3' into 'release/v3.3'
esp32xx: Fix default values for all RTC sources in RTC_CLK_CAL_CYCLES option (v3.3)

See merge request espressif/esp-idf!12421
2021-03-26 06:42:07 +00:00
xiehang
1975d39d44 esp_wifi: Modify ESP_IF_WIFI_AP to WIFI_IF_AP 2021-03-25 10:53:28 +08:00
xiehang
ee2b8a65a0 esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA 2021-03-25 10:51:36 +08:00
He Yin Ling
03810c4a06 versions: Update version to 3.3.5 2021-03-25 10:23:16 +08:00
shenjun
73117b8c94 esp_wifi_mesh: fix error issue when both mesh and ble are enabled 2021-03-15 14:30:34 +08:00
xiehang
cd90dfa38b Revert "Refactor wifi_interface_t"
This reverts commit ae24692785.

Closes: https://github.com/espressif/arduino-esp32/issues/4905
2021-03-08 17:02:22 +08:00
baohongde
2ad908f71e components/bt: Shutdown Bluetooth before esp_restart. 2021-03-05 21:54:20 +08:00
Darian Leung
a1fd207aee Add Task Watchdog backtrace printing
This commit makes the Task Watchdog print the backtrace of both
cores when it times out.
2021-03-04 19:01:48 +11:00
Darian Leung
1786fc9ed2 esp32: Refactor backtrace and add esp_backtrace_print()
This commit refactors backtracing within the panic handler so that a common
function esp_backtrace_get_next_frame() is used iteratively to traverse a
callstack.

A esp_backtrace_print() function has also be added that allows the printing
of a backtrace at runtime. The esp_backtrace_print() function allows unity to
print the backtrace of failed test cases and jump back to the main test menu
without the need reset the chip. esp_backtrace_print() can also be used as a
debugging function by users.
2021-03-04 19:01:48 +11:00
ChenJianxing
88898e2f96 esp_wifi: fix CSA and BAR crash issue 2021-02-27 17:09:57 +08:00
KonstantinKondrashov
1e4552533d esp32xx: Fix default values for all RTC sources in RTC_CLK_CAL_CYCLES option
Closes: https://github.com/espressif/esp-idf/issues/6037
2021-02-19 20:02:49 +08:00
zhangyanjiao
a3740c97c9 fix the bug that espnow recv fail 2021-01-21 15:07:57 +08:00
Ivan Grokhotkov
5080a23ac3 esp_pm: fix formatting issues in esp_pm_dump_locks
- line was truncated because 64 characters were not sufficient
- length passed to snprintf should be full buffer length, not -1
- make the width of lock name field fixed
- fix alignment of lock type column
2021-01-15 12:46:46 +01:00
Ivan Grokhotkov
827bb925b7 esp_pm: esp_pm_dump_locks: don't print from a critical section
Reported in https://github.com/espressif/esp-idf/issues/1917
2021-01-15 12:45:45 +01:00
xiehang
d3a27596a1 CI: Fix test_phy_rtc_cache_task stack overflow 2021-01-13 19:48:47 +08:00
xiehang
426736c769 bugfix: fix some wifi bugs
1. fix max tx power to 20dBm
2. fix the issue that the esp_wifi_sta_get_ap_info can't get country
2021-01-11 19:21:18 +08:00
xiehang
ae24692785 esp_wifi: Update WiFi lib
1. Add check CSA state before CSA timer process
2. Change wifi scan duration from 120ms to 100ms
3. Using deport reg instead of ahb
4. Check TID in ieee80211_recv_bar()
5. Revert to report specific reason code when receiving deauth during 4-way-handshark
6. Fix the bug that tx ampdu parameter is not from peer device
7. Refactor wifi_interface_t
8. Faster WiFi station connect improvement, avoid 100ms passive scan
9. Add FCS failed packets filter
10.Update esp32 phy lib to v4660
11.Fix csa timer issue
12.Fix country code last byte to space instead of NULL
13.Fix softap cannot forward A-MSDU
14.Fix max tx power to 20dBm
15.Fix the issue that the esp_wifi_sta_get_ap_info can't get country
2021-01-11 19:21:13 +08:00
xiehang
3df5b89c91 esp_wifi: ESP32 phy add [sections:phy_iram] 2021-01-11 15:32:46 +08:00
xiehang
3a56cfc9b3 esp_wifi: optimize phy version log 2021-01-11 15:32:37 +08:00
xiehang
60291300a2 Revert "esp_wifi: Fix handling of multiple AP credentials in WPS"
This reverts commit de0d1fffcd.
2021-01-06 19:30:56 +08:00
Angus Gratton
f61f54ee67 Merge branch 'feature/dis_uart_dl_mode_v3.3' into 'release/v3.3'
feature: Disable UART download mode (v3.3)

See merge request espressif/esp-idf!10767
2021-01-04 15:29:14 +08:00
xiehang
56416dddda esp_wifi: Updata WiFi lib
1. Fix handling of multiple AP credentials in WPS
2. Fix esp_wifi log levels
2020-12-23 15:48:06 +08:00
xiehang
de0d1fffcd esp_wifi: Fix handling of multiple AP credentials in WPS
WPS can send multiple AP credentials, while existing implementation
will only use the first credentials which could be for the 5G band.
Fix this by passing these credentials to the App and attempting
to connect using each of those. Older Apps will remain compatible
without breaking WPS, but the issue will remain.
2020-12-23 15:05:28 +08:00
Jiang Jiang Jian
3e6dd18075 Merge branch 'bugfix/revert_tx_optimization_v3.3' into 'release/v3.3'
esp_wifi: revert tx optimization(v3.3)

See merge request espressif/esp-idf!11688
2020-12-21 23:19:08 +08:00
zhangyanjiao
d5f9d1f748 Revert "esp_wifi: optimize WiFi TX performance"
This reverts commit 7b245e59c4.
2020-12-21 15:53:19 +08:00
Michael (XIAO Xufeng)
ed420aacc0 Merge branch 'bugfix/WEL_DISABLE_V3.3' into 'release/v3.3'
spi_flash: ensure wel is diabled when flash is not being operated

See merge request espressif/esp-idf!11653
2020-12-21 15:48:51 +08:00
Angus Gratton
a461605003 efuse: Add ESP32 V3 'disable Download Mode' functionality 2020-12-17 17:44:21 +11:00
Xia Xiaotian
3cf6f36765 esp_wifi: decouple Wi-Fi and bluetooth with coexist to reduce binary file size 2020-12-17 14:21:59 +08:00
Cao Sen Miao
6d63c59ddb spi_flash: ensure sel is diabled when flash is not being operated 2020-12-17 10:58:49 +08:00
baohongde
2711f35552 components/bt: Fix waking up fail while sleeping 2020-12-11 11:28:12 +08:00
baohongde
809a1ff74c components/coex: Some bugfix about ble dynamic prio
Rewrite ble dynamic prio to fix ble disconn in conn_param_update/channel_map_update
Rewrite ble dynamic prio in connection establishment
Fix ble dynamic prio with latency
Fix status bit set error when conn fail
2020-12-11 11:27:35 +08:00
wangcheng
83ee0eef9e Fix BT controller dead issue when clkn overflow 2020-12-11 11:27:35 +08:00
xiehang
65a1e1269f esp_wifi: Update wifi lib
1. Optimize WiFi log
2. Optimize 4way handshake failure time
3. Fix eapol frames encryption during reauth
4. Set softap beacon DTIM count according to TSF timer
5. Remove wifi tx buffer limits
6. Remove coexist warnings in ESP_WIFI_MESH
7. Update some APIs descriptions, tables format and typos
8. Fix wifi tx all
2020-12-10 02:55:22 +00:00
xiehang
7b245e59c4 esp_wifi: optimize WiFi TX performance 2020-12-10 02:55:22 +00:00