Commit Graph

18789 Commits

Author SHA1 Message Date
Armando
6a1bfa29b0 SPI_BUS_LOCK: fix a concurrency issue
define: lock_bits = (lock->status & LOCK_MASK) >> LOCK_SHIFT;  This `lock_bits` is the Bit 29-20 of the lock->status

1. spi_hdl_1:
   acquire_end_core():
   uint32_t status = lock_status_clear(lock, dev_handle->mask & LOCK_MASK);
   Becuase this is the first `spi_hdl_1`, so after this , lock_bits == 0`b0. status == 0

2. spi_hdl_2:
   acquire_core:
   uint32_t status = lock_status_fetch_set(lock, dev_handle->mask & LOCK_MASK);
   Then here status is 0`b0, but lock_bits == 0`b10. Because this is the `spi_hdl_2`

3. spi_hdl_2:
   `acquire_core` return true, because status == 0. `spi_bus_lock_acquire_start(spi_hdl_2)` then won't block.

4. spi_hdl_2:
   spi_device_polling_end(spi_hdl_2).

5. spi_hdl_1:
   acquire_end_core:
   status is 0, so it cleas the lock->acquiring_dev

6. spi_hdl_2:
   spi_device_polling_end:
   assert(handle == get_acquiring_dev(host)); Fail

Closes https://github.com/espressif/esp-idf/issues/8179
2022-09-14 12:13:24 +08:00
Zim Kalinowski
73509d93a5 Merge branch 'bugfix/spiram_abort_allocation_failure_v4.3' into 'release/v4.3'
SPIRAM: 'Abort on allocation failure' should not trigger when there is available SPI ram (backport v4.3)

See merge request espressif/esp-idf!19550
2022-09-13 16:28:43 +08:00
Zim Kalinowski
867c622136 Merge branch 'bugfix/fix_disassembler_interpreting_padding_v4.3' into 'release/v4.3'
(Xtensa) Build: add .xt.prop and .xt.lit to the compiled ELF file (backport v4.3)

See merge request espressif/esp-idf!19612
2022-09-13 16:28:26 +08:00
Ivan Grokhotkov
5b2bfa0574 Merge branch 'bugfix/ci_check_executable_windows_v4.3' into 'release/v4.3'
ci: fix check_executables issue on Windows (v4.3)

See merge request espressif/esp-idf!20094
2022-09-13 14:57:03 +08:00
morris
7d2e9c45e2 Merge branch 'ci/ignore_adc_dma_single_read_test_v4.3' into 'release/v4.3'
adc: ignore ADC DMA single read test on esp32s2 (v4.3)

See merge request espressif/esp-idf!19726
2022-09-13 14:34:49 +08:00
Ivan Grokhotkov
ff98b2cf80 Merge branch 'update/version_4_3_4' into 'release/v4.3'
Update version to 4.3.4

See merge request espressif/esp-idf!20103
2022-09-12 22:37:17 +08:00
Ivan Grokhotkov
63091bdf8d versions: Update version to 4.3.4 2022-09-12 10:59:15 +02:00
Michael (XIAO Xufeng)
4919358d6b ci: put file sorter to the end of the pre-commit checking
So that the sorter will be done at the end of the checking flow, we don't need to run pre-commit hooks again if another hook also take effect.
2022-09-11 02:55:56 +08:00
Michael (XIAO Xufeng)
7ff41e406b ci: fix check_executables issue on Windows 2022-09-11 02:54:57 +08:00
Armando
e1a5315ff7 adc: ignore ADC DMA single read test on esp32s2
This test is only on esp32s2, and using verification adc APIs.
This commit keeps the code, but don't check it on ci
2022-09-09 16:03:10 +08:00
Mahavir Jain
ad857b5f2b Merge branch 'fix/fix_esp_rsa_sign_alt_modifying_input_params_v4.3' into 'release/v4.3'
esp_rsa_sign_alt: Fix esp_init_ds_data_ctx API to not modify user defined data... (v4.3)

See merge request espressif/esp-idf!19715
2022-09-08 13:56:58 +08:00
Mahavir Jain
b4d7495e0d Merge branch 'fix/esp_https_client_compile_warning_v4.3' into 'release/v4.3'
esp_https_ota: Fix build warning when CONFIG_OTA_ALLOW_HTTP is set (v4.3)

See merge request espressif/esp-idf!19981
2022-09-08 13:56:36 +08:00
Anton Maklakov
1dbab6dfc4 Merge branch 'ci/fix_nightly_run_build_jobs_v4.3' into 'release/v4.3'
ci: build all when has env var NIGHTLY_RUN (v4.3)

See merge request espressif/esp-idf!19702
2022-09-08 11:47:18 +08:00
Jiang Jiang Jian
90ef6426a8 Merge branch 'bugfix/ble_disconnect_enable_light_sleep_and_bb_pd_v4.3' into 'release/v4.3'
bt: Fixed bluetooth disconnection issue when light sleep and baseband power down are enabled (v4.3)

See merge request espressif/esp-idf!19804
2022-09-08 10:55:37 +08:00
Jiang Jiang Jian
cfdc0b9fce Merge branch 'bugfix/fix_rtc_clock_freq_value_macro_v4.3' into 'release/v4.3'
rtc_clk: Fix wrong RC_SLOW clock frequency value on ESP32C3 (backport v4.3)

See merge request espressif/esp-idf!19934
2022-09-08 10:41:05 +08:00
Aditya Patwardhan
ead1587caf esp_https_ota: Warn users when CONFIG_OTA_ALLOW_HTTP is set 2022-09-06 13:54:22 +05:30
Axel Lin
460df92e85 esp_https_ota: Fix build warning when CONFIG_OTA_ALLOW_HTTP is set
Fix below build warning when CONFIG_OTA_ALLOW_HTTP is set:
esp_https_ota.c:165:13: warning: 'is_server_verification_enabled' defined but not used [-Wunused-function]

While at it, also simplify the is_server_verification_enabled logic.

Fixes: 48987ad9df ("esp_https_ota: Enable option of using global_ca_store and x509_crt_bundle")
Signed-off-by: Axel Lin <axel.lin@gmail.com>

Closes https://github.com/espressif/esp-idf/pull/6882

Signed-off-by: Aditya Patwardhan <aditya.patwardhan@espressif.com>
2022-09-06 13:54:22 +05:30
Song Ruo Jing
3ce98867a0 rtc_clk: Fix wrong RC_SLOW clock frequency value on ESP32C3 2022-09-02 21:06:24 +08:00
Ivan Grokhotkov
5b81524e63 Merge branch 'bugfix/temp_fix_esp_event_test' into 'release/v4.3'
esp_event: lowered performance threshold temporarily for esp_event test

See merge request espressif/esp-idf!19672
2022-08-31 16:42:37 +08:00
xiongweichao
395f0eb5c1 Fix bluetooth disconnection issue when light sleep and baseband power down are enabled 2022-08-26 16:17:14 +08:00
Aditya Patwardhan
861c3f5025 esp_rsa_sign_alt: Fix esp_init_ds_data_ctx API to not modify user defined data when it is given directory from flash 2022-08-23 13:32:12 +05:30
Fu Hanxi
d7eb0d9d71 ci: build all when has env var NIGHTLY_RUN 2022-08-22 18:53:27 +08:00
Chip Weinberger
8792b1de1e SPIRAM: 'Abort on allocation failure' should not trigger when there is available SPI ram
(cherry picked from commit 8dcdb2f363fd3fa00bd77e4bd75e7c73d6c7d0fb)
2022-08-22 02:45:10 +00:00
Omar Chebib
f5ad8ac423 (Xtensa) Build: add .xt.prop and .xt.lit to the compiled ELF file
Adding prop and lit sections to the ELF will let the debugger and the disassembler
have more info about data bytes present in the middle of the Xtensa
instructions, usually used for padding.
2022-08-22 02:43:50 +00:00
Jiang Jiang Jian
6075806400 Merge branch 'bugfix/fix_country_policy_issue_v4.3' into 'release/v4.3'
esp_wifi: fix not update phy according to country code.

See merge request espressif/esp-idf!19655
2022-08-21 19:41:07 +08:00
muhaidong
189bdb2bf8 esp_wifi: fix not update phy according to country code.
1. Fixed not update phy according to country code.
2. Fixed crashed when esp_wifi_set_ant_gpio() called
3. Fixed a bug when ftm used with ps enabled
4. Fixed a potential issue to allocate PSRAM to wifi stack where internal RAM is required
5. Fixed potential fail to scan AP after receiving disassoc/deauth from AP on esp32s2
y
2022-08-21 16:01:34 +08:00
Jiang Jiang Jian
36decb6662 Merge branch 'feature/sae_sta_h2e_v4.3' into 'release/v4.3'
esp_wifi: WPA3 SAE H2E support for station (backport v4.3)

See merge request espressif/esp-idf!18661
2022-08-20 23:46:41 +08:00
Zim Kalinowski
662b6c9ad3 Merge branch 'bugfix/i2c_incorrect_speed_v4.3' into 'release/v4.3'
I2C: Fix SCL period timings on ESP targets (backport v4.3)

See merge request espressif/esp-idf!18272
2022-08-20 03:51:44 +08:00
Jakob Hasse
937633ad79 fix (esp_event): lowered performance threshold for esp_event test
The test in question is "performance test - no dedicated task".
Its performance dropped significantly during a WiFi library commit,
although there is no obvious reason. This needs to be investigated
and until then, we temporarily lower the performance threshold to
let the test pass.
2022-08-19 12:02:42 +02:00
Gauri Patankar
e055f5ced7 esp_wifi: WPA3 SAE H2E support for station
Mandate sta threshold wpa3 for ssid after receiving transition disable bit from AP
2022-08-19 15:09:14 +05:30
Jiang Jiang Jian
c2735be0c8 Merge branch 'bugfix/fix_i2c_issues_v4.3' into 'release/v4.3'
I2C: Fix task wait too long on an event & timeout WDT triggered (backport v4.3)

See merge request espressif/esp-idf!18770
2022-08-19 14:01:14 +08:00
Jiang Jiang Jian
d4d70c3fcd Merge branch 'bugfix/nvs_part_ptr_wrong_init_4.3' into 'release/v4.3'
bugfix (nvs_flash): Fix nvs_flash_init_partition_ptr (backport v4.3)

See merge request espressif/esp-idf!18674
2022-08-19 13:59:12 +08:00
Jiang Jiang Jian
4ed1729262 Merge branch 'refactor/flash_qio_overidable_v4.3' into 'release/v4.3'
spi_flash: refact that flash qio can be overidable(backport v4.3)

See merge request espressif/esp-idf!18037
2022-08-19 13:58:26 +08:00
Jiang Jiang Jian
29978c0f17 Merge branch 'bugfix/hfp_examples_not_work_with_default_sdkconfig_v4.3' into 'release/v4.3'
bugfix/set default number of sco connection to 1 (v4.3)

See merge request espressif/esp-idf!19590
2022-08-18 21:40:35 +08:00
Jiang Jiang Jian
c207d09250 Merge branch 'bugfix/combined_softap_pmf_fixes_v4.3' into 'release/v4.3'
Combined bugfixes for SoftAP and PMF (Backport v4.3)

See merge request espressif/esp-idf!19118
2022-08-18 17:54:13 +08:00
Omar Chebib
9faeca3d1c I2C: Fix SCL period timings on ESP targets
The output frequency is now more accurate as the SCL period timings have been fixed.
This fix applies for ESP32, ESP32S3, ESP32C3 and ESP32H2
2022-08-18 02:45:36 +00:00
Omar Chebib
4d7f007645 I2C: Fix a bug making the I2C task wait too long on an event
The I2C ISR will now notify the task waiting on an event. Thus, the task can stop waiting on the event queue as soon as possible.
2022-08-18 02:37:43 +00:00
Chen Yi Qun
b6bbb5e0a2 I2C: add conf_update for esp32c3 i2c 2022-08-18 02:37:43 +00:00
Cao Sen Miao
19205b0696 I2C: Fix i2c write fake timeout and WDT triggered 2022-08-18 02:37:43 +00:00
Nachiket Kukade
5e3ade893a esp_wifi: Update wifi libs
Update wifi libs with below fixes -
1. Improved error handling in SoftAP Rx path, fixed LoRa IE length
2. Handle low memory scenario, re-enabling PMF Capable flag in STA PMF
3. Release wifi lock in offchannel operation
2022-08-17 15:41:13 +05:30
Anton Maklakov
843b870b20 Merge branch 'ci/support_nightly_build_keyword_in_ttfw_v4.3' into 'release/v4.3'
ci: support keyword `nightly_run` in ttfw_idf decorator (v4.3)

See merge request espressif/esp-idf!19133
2022-08-17 12:50:30 +08:00
jincheng
49fba45156 Fixed the failure of 'connect audio' operation in HFP examples with default SDK configuration
Due to the lack of synchronized connections, the hf_client can not create audio_connection to
hf_ag. Set default number of synchronized connection to 1.

Closes https://github.com/espressif/esp-idf/issues/9537
2022-08-17 10:15:11 +08:00
Roland Dobai
d96dde38f9 Merge branch 'feature/oocd_ver_upgrade_v4.3' into 'release/v4.3'
tools: Updates OpenOCD version to 'v0.11.0-esp32-20220706' (v4.3)

See merge request espressif/esp-idf!19491
2022-08-16 23:20:12 +08:00
Roland Dobai
b3bdd6afc3 Merge branch 'fix/install.ps1.v4.4_v4.3' into 'release/v4.3'
Tools: Remove undefined variable from install.ps1 (v4.3)

See merge request espressif/esp-idf!19584
2022-08-16 22:19:54 +08:00
Alexey Gerenkov
def78db543 tools: Updates OpenOCD version to 'v0.11.0-esp32-20220706' 2022-08-16 11:07:06 +00:00
Roland Dobai
5d1a51db65 Tools: Remove undefined variable from install.ps1
Closes https://github.com/espressif/esp-idf/issues/9556
2022-08-16 12:20:11 +02:00
Jiang Jiang Jian
2828e8fe2f Merge branch 'bugfix/wifi_bt_mac_bb_pd_light_sleep_v4.3' into 'release/v4.3'
backport v4.3: deep sleep does not need cpu and wifi/bt mac retention

See merge request espressif/esp-idf!19511
2022-08-16 17:09:25 +08:00
Aleksei Apaseev
dbd6519948 ci: allow scheduled pipelines 2022-08-15 10:43:11 +00:00
Fu Hanxi
d94dbdd1be ci: support keyword nightly_run in ttfw_idf decorator 2022-08-15 10:43:11 +00:00
Jiang Jiang Jian
19de572d45 Merge branch 'bugfix/bt_invalid_workqueue_num_v4.3' into 'release/v4.3'
Bluetooth: fixed the invalid workqueue number for BTU thread in Bluedroid(backport v4.3)

See merge request espressif/esp-idf!19509
2022-08-12 19:50:07 +08:00