Commit Graph

10345 Commits

Author SHA1 Message Date
Angus Gratton
fccab8f4ef riscv: Add new arch-level component
Changes come from internal branch commit a6723fc
2020-11-12 09:33:18 +11:00
David Čermák
fa1899b071 Merge branch 'bugfix/mdns_src_addr_cpy' into 'master'
mdns: Fix wrong mdns source address if lwIP IPv6 zoning disabled

Closes IDFGH-4196

See merge request espressif/esp-idf!11145
2020-11-12 00:15:41 +08:00
David Čermák
807a9b111d Merge branch 'bugfix/mqtt_outbox_timeout_default' into 'master'
MQTT: Restore default MQTT_OUTBOX_EXPIRED_TIMEOUT_MS to 30 sec

Closes IDFGH-4221

See merge request espressif/esp-idf!11181
2020-11-12 00:09:09 +08:00
David Cermak
7ac97616c1 mdns: Fix wrong mdns source address if lwIP IPv6 zones disabled
The struct definition of ip6_addr_t in lwip and esp_ip6_addr_t
differs since zone could be possibly disabled in lwip. Using memcpy to copy the
address will cause wrong source address. Copy the entries manually
instead.

Merges https://github.com/espressif/esp-idf/pull/6055
2020-11-11 11:56:44 +00:00
Angus Gratton
66fb5a29bb Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
Angus Gratton
e82eac4354 cmake: Apply cmakelint fixes 2020-11-11 07:36:35 +00:00
Angus Gratton
a7ae0ee1fa nvs_partition_generator: Strip trailing whitespace in "hex2bin" input files 2020-11-11 07:36:35 +00:00
Angus Gratton
60ba7e4ae2 test_nvs_host: Fail on any non-zero exit code when running external tools
Check for != -1 was not picking up Python errors as WEXITSTATUS evaluates to 254 (at least on Linux)
2020-11-11 07:36:35 +00:00
Angus Gratton
ad4a10d7c1 Merge branch 'bugfix/efuse_change_burn_order_for_s2_s3' into 'master'
efuse: Fix the order of writing in batch mode

See merge request espressif/esp-idf!11067
2020-11-11 14:49:20 +08:00
Jiang Jiang Jian
5f49ad24a9 Merge branch 'bugfix/fix_assert_in_passkey_reply' into 'master'
Bugfix/fix assert in passkey reply

Closes BT-1090

See merge request espressif/esp-idf!10962
2020-11-11 11:35:35 +08:00
Jiang Jiang Jian
b9ca112d56 Merge branch 'bugfix/fix_crash_caused_by_calling_deinit_directly' into 'master'
Fix crash caused by calling a2dp_deinit directly

Closes BT-1129

See merge request espressif/esp-idf!11129
2020-11-11 11:35:03 +08:00
Jiang Jiang Jian
48a9b685e5 Merge branch 'bugfix/wpa3_pmkcache_expiry_workaround' into 'master'
wpa_supplicant: Increase PMK Lifetime to a very high value

See merge request espressif/esp-idf!11168
2020-11-11 11:29:29 +08:00
Jiang Jiang Jian
37a262f209 Merge branch 'bugfix/wifi_fix_beacon_dtim_count_error' into 'master'
Wi-Fi: set softap beacon DTIM count according to TSF timer

See merge request espressif/esp-idf!11172
2020-11-11 11:27:00 +08:00
Island
a885a13582 Merge branch 'bugfix/ble_mesh_wrong_func_declaration' into 'master'
ble_mesh: stack: Fix wrong declaration of node bind AppKey func

See merge request espressif/esp-idf!11175
2020-11-11 10:59:57 +08:00
Angus Gratton
8c8634d683 Merge branch 'feature/esp_timer_task_uses_freertos_notification' into 'master'
esp_timer: Use Task Notification instead of semaphore

See merge request espressif/esp-idf!10991
2020-11-11 10:50:20 +08:00
Michael (XIAO Xufeng)
ee40f02afc esp_flash: use divider rather than hard-coded freq in init code 2020-11-10 19:09:17 +08:00
Michael (XIAO Xufeng)
6c2b6c9340 esp_flash: decrease performance threshld
To reflect the influence of yield during write
2020-11-10 19:05:29 +08:00
Michael (XIAO Xufeng)
7ddfcfb8d2 esp_flash_test: improve unit test
From now on, we have two tags for esp_flash tests:

- [esp_flash] for main flash chip only tests
- [esp_flash_3] for tests with external flash chips

To Run all tests, type `[esp_flash`; to run tests for main flash chip
only, type `[esp_flash].
2020-11-10 19:05:28 +08:00
Michael (XIAO Xufeng)
8ae09194ac esp_flash: refactor to support various type of yield
There is a periodically yield in the esp_flash driver, to ensure the
cache will not be disabled for too long on ESP32.

On ESP32-S2 and later, we need to support more different kind of yield:

1. polling conditions, including timeout, SW read request, etc.
2. wait for events, including HW done/error/auto-suspend, timeout
semaphore, etc.

The check_yield() and yield() is separated into two parts, because we
may need to insert suspend, etc. between them.
2020-11-10 19:05:22 +08:00
Nachiket Kukade
89a25e41c8 wpa_supplicant: Increase PMK Lifetime to a very high value
For WPA3 connection nearing PMK lifetime expiry, PMK Cache
needs a re-authentication or the cache will expire. After
current expiry of 12 hours Station ends up sending a deauth
to the AP. An SAE re-authentication also cannot occur without
a disconnection with current implementation. So increase the
PMK lifetime to 100 days for now.
2020-11-10 10:17:48 +00:00
Xia Xiaotian
199414cd7e Wi-Fi: set softap beacon DTIM count according to TSF timer 2020-11-10 09:10:45 +00:00
weitianhua
ed2654bdf3 Remove dummy assert when receive passkey requst 2020-11-10 15:58:24 +08:00
David Čermák
971cbbb7f3 Merge branch 'bugfix/lwip_add_slaac_note' into 'master'
lw-IP: Added description to Kconfig option on IPv6 SLAAC

Closes IDFGH-4219 and IDFGH-4217

See merge request espressif/esp-idf!11148
2020-11-10 15:43:38 +08:00
weitianhua
08eace5a26 Fix crash cause by calling a2dp deinit when connected 2020-11-10 07:25:57 +00:00
Jiang Jiang Jian
f1171d9e1b Merge branch 'bugfix/fix_coex_ble_disconnect_issues_1105' into 'master'
bluetooth: Fix ble disconnect issue in coex mode

Closes BT-1134

See merge request espressif/esp-idf!11128
2020-11-10 15:17:06 +08:00
lly
e543dc9a3b ble_mesh: stack: Fix wrong declaration of node bind AppKey func 2020-11-10 14:05:19 +08:00
gengyuchao
5aecf71021 Fix two bugs:
1.Fix supervision timeout in LLC DISC busy statue can not disconnect issue.
 2.Solve the problem that the ble terminate ack packet may lose with a high probability in coex mode.
2020-11-10 03:02:57 +00:00
Angus Gratton
479acb2210 esptool: Update to v3.0 release version 2020-11-10 02:36:18 +00:00
nx518
9207c6ca8e lwip: Added description to Kconfig option on IPv6 SLAAC
Closes https://github.com/espressif/esp-idf/issues/6076
Merges https://github.com/espressif/esp-idf/pull/6078
2020-11-09 22:10:32 +00:00
Angus Gratton
0032971311 Merge branch 'bugfix/ulp_wakeup_trigger' into 'master'
ulp risc_v: fix bug about bit for wakeup trigger

Closes IDF-2298

See merge request espressif/esp-idf!11106
2020-11-09 14:57:36 +08:00
Michael (XIAO Xufeng)
2e90bf6b15 Merge branch 'bugfix/spi_slave_remove_debug_code' into 'master'
spi_slave: remove debug code

Closes IDFGH-4161

See merge request espressif/esp-idf!10975
2020-11-09 12:26:22 +08:00
Angus Gratton
3882c2b8ed Merge branch 'feature/bringup_esp32s3_fpga_update_rmt_driver' into 'master'
rmt: support esp32s3

Closes IDF-1773

See merge request espressif/esp-idf!10292
2020-11-07 07:15:53 +08:00
Felipe Neves
ac6ce5ddbd docs: added some fast-seek documentation to the fatfs.rst 2020-11-06 13:18:16 -03:00
Axel Lin
db276595cf MQTT: Restore default MQTT_OUTBOX_EXPIRED_TIMEOUT_MS to 30 sec
The OUTBOX_EXPIRED_TIMEOUT_MS was 30*1000 in original esp-mqtt code.
Don't change the default OUTBOX_EXPIRED_TIMEOUT_MS without good reason,
which may has impact on memory usage for existing applications.

Fixes: 0ea20bed43 ("MQTT: add configurable msg expired timeout")
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2020-11-06 20:42:38 +08:00
Jiang Jiang Jian
c7a8025d45 Merge branch 'high/fix_ble_scan_irq_by_timer' into 'master'
components/bt: fix hci timeout, add timer to monitor scan evt.

See merge request espressif/esp-idf!11105
2020-11-06 17:12:14 +08:00
Angus Gratton
79e68ffaae esp32s2: Disable ADC calibration routine if running on FPGA 2020-11-06 07:25:35 +00:00
KonstantinKondrashov
48c498bdca esp32s2/fpga: Fix a clock configure in bootloader 2020-11-06 07:25:35 +00:00
KonstantinKondrashov
f2c9c1e4ab efuse: Fix the order of writing in batch mode for esp32s2 and s3 2020-11-06 07:25:35 +00:00
Jeroen Domburg
5bbd61d013 Merge branch 'bugfix/fix_crash_psram_not_found' into 'master'
Psram: Do not initialize spiram cache if no chip is found

See merge request espressif/esp-idf!11093
2020-11-06 15:11:48 +08:00
KonstantinKondrashov
e0d0200aed esp_timer: Use Task Notification instead of semaphore 2020-11-06 06:43:22 +00:00
wangcheng
e5af56db41 components/bt: fix hci timeout, add timer to monitor scan evt. 2020-11-06 14:04:17 +08:00
Mahavir Jain
ea57c10a3c Merge branch 'fix/protocomm_simple_ble' into 'master'
Protocomm/simple_ble: Fix gatt table map size to number of handles received

Closes IDF-2250

See merge request espressif/esp-idf!10769
2020-11-06 13:18:50 +08:00
Jiang Jiang Jian
c2ad450e21 Merge branch 'bugfix/fix_TCP_timer_interval' into 'master'
lw-ip: fix TCP timer interval

See merge request espressif/esp-idf!11033
2020-11-06 11:04:33 +08:00
Jeroen Domburg
4b444316ab Psram: Do not initialize spiram cache if no chip is found.
Closes https://github.com/espressif/esp-idf/issues/6063
2020-11-06 02:32:39 +00:00
Felipe Neves
93ffc009ef vfs: restrict the fast seek for read-only files
Since the files under fast-seek cannot be expanded with further writes, it does not
make sense to enable fast-seek which may fail in write-mode files
2020-11-05 17:01:50 -03:00
Felipe Neves
32e760adfb fat_vfs: added fast seek capable file operation 2020-11-05 17:01:50 -03:00
Felipe Neves
8815a3dfa0 fatfs: expose FF_USE_FASTSEEK option 2020-11-05 17:01:50 -03:00
Jiang Jiang Jian
a88989fee8 Merge branch 'bugfix/fix_clkn_overflow_issue' into 'master'
Fix BT controller dead issue caused by clk overflow

See merge request espressif/esp-idf!11012
2020-11-05 23:08:46 +08:00
ronghulin
ffd23623b7 bugfix: fix TCP timer interval 2020-11-05 15:00:51 +00:00
Michael (XIAO Xufeng)
d7ce8a537f Merge branch 'feature/bringup_esp32s3_fpga_rtc_sleep' into 'master'
feature (rtc): update rtc related code(rtc_sleep rtc_init) to support esp32s3

See merge request espressif/esp-idf!10404
2020-11-05 19:19:36 +08:00
morris
1be923acb4 rmt: rename always_on to aware_dfs 2020-11-05 19:00:55 +08:00
morris
ff976867b3 rmt: split TX and RX in LL driver
Split TX and RX function in LL driver.
Channel number is encoded in driver layer.
Added channel signal list in periph.c
2020-11-05 19:00:55 +08:00
chenjianqiang
9465af0066 rmt: support esp32s3 2020-11-05 19:00:55 +08:00
Prasad Alatkar
13433d10fc Protocomm/simple_ble: Make gatt table map size equal to number of handles received
- Fixes memcpy failure observed while adding 2 or more endpoints in
  wifi_provisioning.

 Closes IDF-2250
2020-11-05 08:53:13 +00:00
fuzhibo
b29f075660 rtc: compile the regi2c_ctrl.c code to iram 2020-11-05 16:17:12 +08:00
Angus Gratton
99fae0f0b5 Merge branch 'bugfix/lwip_afl_test_build' into 'master'
test_compile_fuzzers: Fix include paths for host build

See merge request espressif/esp-idf!11118
2020-11-05 15:58:31 +08:00
Angus Gratton
98a0cc783f test_compile_fuzzers: Fix include paths for host build
Regression in 988be69466, need to add
esp_hw_support component include dir here.
2020-11-05 16:30:07 +11:00
Jiang Jiang Jian
76a7b76e3d Merge branch 'feature/wifi_update_wifi_lib_to_support_esp32s3' into 'master'
Wi-Fi: update wifi lib to merge esp32s3 code

See merge request espressif/esp-idf!11107
2020-11-05 11:25:58 +08:00
Xia Xiaotian
aca8d9621d Wi-Fi: update wifi lib to support esp32s3 2020-11-04 21:23:50 +08:00
Island
90472a0a8c Merge branch 'feat/ble_mesh_node_local_data_func' into 'master'
ble_mesh: stack: Add node local netkey/appkey func

Closes BLEMESH-255

See merge request espressif/esp-idf!10334
2020-11-04 19:39:32 +08:00
Anton Maklakov
b5b2738644 Merge branch 'test/ci_fuzzer_precheck' into 'master'
CI: Add a test to pre-check fuzzer tests compilation before weekly run

See merge request espressif/esp-idf!10332
2020-11-04 12:22:53 +08:00
lly
549dc2a411 ble_mesh: stack: Add node local netkey/appkey func 2020-11-04 03:25:02 +00:00
Cao Sen Miao
bd2d70ca0b ulp risc_v: fix bug about bit for wakeup trigger 2020-11-04 10:47:40 +08:00
fuzhibo
93c7cf094e rtc: update rtc related code(rtc_sleep rtc_init) to support esp32s3 2020-11-04 02:43:41 +00:00
morris
bc8b56cef7 timergroup: refactor unit test to better support future chip 2020-11-03 18:16:50 +08:00
morris
e4c8ec6174 timergroup: move interrupt index into peripheral description file
1. Added timer_group_periph.c file, describing module global signals
   (e.g. interrupt index)
2. Added more caps in soc_caps.h
2020-11-03 18:16:50 +08:00
israel
24d88fb78c AP_STAIPASSIGNED now passes the IP through 'event_data'
Signed-off-by: xueyunfei <xueyunfei@espressif.com>
2020-11-02 16:17:12 +08:00
Jiang Jiang Jian
5ad2ec79fd Merge branch 'bugfix/fix_reject_using_rtc_gpio' into 'master'
fix reject lightsleep when using rtc gpio to wakeup

See merge request espressif/esp-idf!11027
2020-11-02 16:13:33 +08:00
Island
a2394dee0a Merge branch 'bugfix/fix_node_test_func_not_set_role' into 'master'
ble_mesh: test: Fix node test function not update role flag

See merge request espressif/esp-idf!11039
2020-10-30 21:05:16 +08:00
Mahavir Jain
46148d1ef3 Merge branch 'bugfix/wifi_provisioning_lock' into 'master'
wifi_provisioning: release lock on scan start failure

Closes IDFGH-4157

See merge request espressif/esp-idf!11059
2020-10-30 19:38:44 +08:00
Michael (XIAO Xufeng)
35faecea1d Merge branch 'feature/support_sigma_delta_on_s3' into 'master'
sigma_delta: add periph signal list and support esp32-s3

See merge request espressif/esp-idf!10945
2020-10-30 17:22:02 +08:00
Bruno Binet
adabe5a76e wifi_provisioning: release lock on scan start failure
Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>

Merges: https://github.com/espressif/esp-idf/pull/6019
2020-10-30 13:16:56 +05:30
Michael (XIAO Xufeng)
23584e094f Merge branch 'feature/esp_flash_32b_addr' into 'master'
esp_flash: support high capacity flash chips (32-bit address)

See merge request espressif/esp-idf!9475
2020-10-30 15:22:44 +08:00
Ivan Grokhotkov
754e73b39a Merge branch 'bugfix/rtc_clk_cal_cycles_add_default_vals_for_all_sources' into 'master'
esp32xx: Fix default values for all RTC sources in RTC_CLK_CAL_CYCLES option

Closes IDFGH-4176

See merge request espressif/esp-idf!11011
2020-10-30 03:33:40 +08:00
Michael (XIAO Xufeng)
3c402f83a8 esp_flash_test: decrease some performance threshold by 6%
Due to the 32-bit flash feature, some performance value are decreased by 6%
2020-10-30 01:11:43 +08:00
Michael (XIAO Xufeng)
d48c4e1da7 spi_flash_test: workaround for broken ROM API after new API calls. 2020-10-29 18:21:44 +08:00
Michael (XIAO Xufeng)
8337f0afa2 spi_flash: fix LL of esp32s3 and add 32-bit support 2020-10-29 18:21:42 +08:00
Michael (XIAO Xufeng)
b4c3718e39 flash_test: test 32bit address region if chip size meet 2020-10-29 18:21:27 +08:00
Michael (XIAO Xufeng)
3bacf35310 esp_flash: support high capacity flash chips (32-bit address) 2020-10-29 18:20:11 +08:00
lly
1f61b67ec3 ble_mesh: test: Fix node test function not update role flag 2020-10-29 15:48:06 +08:00
morris
17808b3ff8 sigma_delta: add periph signal list and support esp32-s3 2020-10-29 11:06:28 +08:00
weitianhua
1de3b17192 Fix BT controller dead issue caused by clk overflow 2020-10-29 10:49:30 +08:00
ninh
19fd0f5634 fix reject lightsleep when using rtc gpio to wakeup 2020-10-29 02:47:58 +00:00
Angus Gratton
8f3393afdf Merge branch 'refactor/create_esp_hw_support' into 'master'
Create esp_hw_support

Closes IDF-2161

See merge request espressif/esp-idf!10513
2020-10-29 07:51:46 +08:00
Renz Bagaporo
6b0a5af73e soc: move implementations to esp_hw_support 2020-10-28 22:38:50 +08:00
Jiang Jiang Jian
6bed9ec70c Merge branch 'bugfix/fix_ag_outging_callback_not_triggered' into 'master'
Bugfix/Fix Ag Example Outgoing Callback Not Triggered

Closes BTCI-50

See merge request espressif/esp-idf!10828
2020-10-28 19:57:02 +08:00
KonstantinKondrashov
e9978f7623 esp32xx: Fix default values for all RTC sources in RTC_CLK_CAL_CYCLES option
Closes: https://github.com/espressif/esp-idf/issues/6037
2020-10-28 16:25:07 +08:00
wangcheng
6d7c9907c3 components/bt: fixed memory damage caused by bluetooth memory release 2020-10-28 06:59:03 +00:00
wangcheng
8cf0c1c3b8 components/bt: fix assert(10, 9), when the AFPM happens 2020-10-28 06:59:03 +00:00
Jiang Jiang Jian
a54e92f00b Merge branch 'mesh/bugfix_1023' into 'master'
esp_wifi_mesh: update wifi mesh libs

See merge request espressif/esp-idf!10970
2020-10-28 14:22:47 +08:00
Island
0a61f04f3f Merge branch 'bugfix/bluedroid_gatt_clcb_use_afer_free_issue' into 'master'
component/bt: Fix gatt clcb use-after-free issue

See merge request espressif/esp-idf!10989
2020-10-28 14:01:07 +08:00
Michael (XIAO Xufeng)
9cc81f7698 Merge branch 'fix/spi_master_use_data_flag' into 'master'
spi_master: fix the error log when use tx/rx_data with larger data

See merge request espressif/esp-idf!11005
2020-10-28 11:13:39 +08:00
shenjun
ea0603897d esp_wifi_mesh: update wifi mesh libs
1. Fix FIX-ROOT does not reconnect to router when disconnect reason is too many
2. Add API esp_mesh_print_scan_result
3. Modify not to reset mesh_xonseq of self and children when flush_upstream_packets
4. Fix not switch to a parent candidate which has the same layer and assoc as current parent
5. Fix not arm parent monitor when a parent candidate is cleared without sending an event to mesh layer
6. Fix the new voted root does not reconnect to router if rssi is weak
2020-10-28 02:58:44 +00:00
lly
5f146455f3 component/bt: Fix gatt clcb use-after-free issue 2020-10-28 02:42:28 +00:00
Renz Bagaporo
79887fdc6c soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
Renz Bagaporo
988be69466 esp_hw_support: create component 2020-10-28 07:21:29 +08:00
Michael (XIAO Xufeng)
12249dcb09 spi_master: fix the error log when use tx/rx_data with larger data 2020-10-27 23:34:03 +08:00
morris
9de6cba434 ci: add more build test for esp32-s3 2020-10-27 17:22:17 +08:00
morris
d084ef4473 gdma: fix wrong m2m mode wrong config 2020-10-27 16:53:19 +08:00
Jiang Jiang Jian
84a312c0a0 Merge branch 'bugfix/update_toolchain_5.2.0_psram_final' into 'master'
esp_wifi: Update WiFi toolchain to 1.22.0-97-gc752ad5

See merge request espressif/esp-idf!10635
2020-10-27 14:48:23 +08:00