Darian Leung
3318fac02f
twai: Add errata workaround for listen only mode
...
This commit adds a workaround for the TWAI listen only mode errata which is
present on the ESP32, ESP32-S2, ESP32-S3, and ESP32-C3. twai_get_status_info()
has also been updated to account for the fact that TEC/REC are frozen in
listen only mode.
Errata Description:
When the TWAI controller is put into listen only mode, it should not influence
the TWAI bus in any way (i.e., should never send a dominant bit). However,
on the targets listed above, the TWAI controller will send dominant bits in an
error frame (i.e., active error frame), even if the controller is set to listen
only mode.
Workaround:
We can force the TWAI controller into the error passive state on startup (by
setting the REC to >= 128). Since the TEC/REC are frozen in listen only mode,
the TWAI controller will remain error passive and only send recessive bits
(i.e., passive error frames), thus will not influence the TWAI bus.
Closes https://github.com/espressif/esp-idf/issues/9157
2023-02-24 19:26:22 +08:00
Mahavir Jain
53c66a6dae
Merge branch 'fix/heap-get-allocated-size_v5.0' into 'release/v5.0'
...
heap: Fix erroneous value returned by heap_caps_get_allocated_size() when poisoning is enabled (backport v5.0)
See merge request espressif/esp-idf!22187
2023-02-24 11:05:41 +08:00
yuanjianmin
c120f5777e
tcp_transport: Add authorization header for websocket client
2023-02-22 16:19:41 +04:00
David Čermák
4c606d3381
Merge branch 'feature/websocket-client-errorhandlin_v5.0' into 'release/v5.0'
...
[ws_transport]-Added `esp_transport_ws_get_upgrade_request_status` API (v5.0)
See merge request espressif/esp-idf!22360
2023-02-22 19:46:47 +08:00
Guillaume Souchere
2ea046c091
heap: Fix erroneous value returned by heap_caps_get_allocated_size() when poisoning is enabled
...
When light (or comprehensive) poisoning is enabled, the size requested by the user for allocation
is extended by a few bytes to store the canary header and footer. heap_caps_get_allocated_size() should
return the original size asked by the user (without the additional canary bytes).
test_malloc.c extended with a new test assuring that heap_caps_get_allocated_size() returns the proper size
regardless of the degree of poisoning.
2023-02-22 11:42:02 +01:00
Ivan Grokhotkov
498dc8d09d
Merge branch 'bugfix/nvs_cxx_example_v5.0' into 'release/v5.0'
...
nvs_flash: fixed wrong error check after open_nvs_handle in example (v5.0)
See merge request espressif/esp-idf!22303
2023-02-22 16:39:13 +08:00
morris
6b08f05282
Merge branch 'bugfix/rmt_buffer_allocation_v5.0' into 'release/v5.0'
...
legacy rmt driver: fix wrong buffer allocation (v5.0)
See merge request espressif/esp-idf!22429
2023-02-22 10:23:38 +08:00
Wang Meng Yang
3d80d4b795
Merge branch 'bugfix/sdp_event_status_overwritten_by_handle_v5.0' into 'release/v5.0'
...
bt: Fixed SDP BTA_SDP_REMOVE_RECORD_USER_EVT event status overridden by handle
See merge request espressif/esp-idf!22213
2023-02-21 18:21:33 +08:00
Wang Meng Yang
8439e6184c
Merge branch 'bugfix/build_err_with_ssr_enabled_v5.0' into 'release/v5.0'
...
bt: Fixed build errors when sniff subrating is enabled (v5.0)
See merge request espressif/esp-idf!22350
2023-02-21 18:20:06 +08:00
Wang Meng Yang
11c65947d8
Merge branch 'bugfix/access_nullptr_when_ble_disconn_v5.0' into 'release/v5.0'
...
Bugfix/Fixed crash caused by accessing nullptr in `btm_acl_disconnected` (v5.0)
See merge request espressif/esp-idf!21879
2023-02-21 18:18:48 +08:00
isha.pardikar@espressif.com
049cffcb2a
BluFi : Fixed hdr getting free twice
...
Closes IDFGH-9378
2023-02-21 11:44:12 +05:30
Steinbart Andreas (HAU-EDS)
481cca3490
[ws_transport] - Added esp_transport_ws_get_upgrade_request_status
API
2023-02-20 14:12:48 +00:00
Ivan Grokhotkov
82458fd31d
Merge branch 'bugfix/extram_stack_coredump_v5.0' into 'release/v5.0'
...
coredump: add support for stacks in external RAM (backport v5.0)
See merge request espressif/esp-idf!22410
2023-02-20 20:32:19 +08:00
Ivan Grokhotkov
86a75d1d73
Merge branch 'feature/gdbstub_esp32c2_v5.0' into 'release/v5.0'
...
gdb stub: re-enable for ESP32-C2 (v5.0)
See merge request espressif/esp-idf!21770
2023-02-20 17:13:37 +08:00
Marius Vikhammer
18bda1be31
Merge branch 'feature/re-enable-heap-test-c2_v5.0' into 'release/v5.0'
...
heap: re-enable temporarily disabled test on esp32c2 (backport v5.0)
See merge request espressif/esp-idf!21873
2023-02-20 15:34:16 +08:00
Marius Vikhammer
fc3f49d589
Merge branch 'docs/freertos_doc_organization_v5.0' into 'release/v5.0'
...
Docs: Update FreeRTOS documentation organization for IDF and Amazon SMP FreeRTOS (v5.0)
See merge request espressif/esp-idf!22395
2023-02-20 15:26:23 +08:00
Marius Vikhammer
5b718a81a0
Merge branch 'feat/verbose-alloc-failure-abort_v5.0' into 'release/v5.0'
...
heap: print size and caps when malloc fails before calling system abort (backport v5.0)
See merge request espressif/esp-idf!22343
2023-02-20 15:17:51 +08:00
Marius Vikhammer
47bc882caa
Merge branch 'feature/re-enable-intr-alloc-test-c2_v5.0' into 'release/v5.0'
...
esp-hw-support: Re-enable intr_alloc tests on esp32c2 target (backport v5.0)
See merge request espressif/esp-idf!21874
2023-02-20 15:16:36 +08:00
Marius Vikhammer
bca7446a53
Merge branch 'bugfix/ulp_riscv_i2c_example_crashes_on_s2_v5.0' into 'release/v5.0'
...
ulp-riscv: ULP RISC-V I2C example gets stuck on esp32s2 (v5.0)
See merge request espressif/esp-idf!21860
2023-02-20 15:14:56 +08:00
morris
b731bd6a60
rmt: fix rmt buffer allocation issue
2023-02-20 15:12:30 +08:00
Marius Vikhammer
d33d3d7884
Merge branch 'feature/re-enable-newlib-test-c2_v5.0' into 'release/v5.0'
...
newlib: Remove tests using RTC related features from the esp32c2 test set (backport v5.0)
See merge request espressif/esp-idf!21878
2023-02-20 15:11:16 +08:00
Jakob Hasse
1a98df0c93
bugfix(nvs_flash): fixed wrong error check after open_nvs_handle
...
Closes https://github.com/espressif/esp-idf/issues/10240
2023-02-20 14:20:18 +08:00
morris
f58f8116de
Merge branch 'feature/adc_calibration_c2_v5.0' into 'release/v5.0'
...
esp_adc: support adc calibration on esp32c2 (v5.0)
See merge request espressif/esp-idf!22382
2023-02-20 14:13:23 +08:00
Marius Vikhammer
41bf6dab0d
Merge branch 'bugfix/newlib_tz_env_mutex_v5.0' into 'release/v5.0'
...
newlib: Use correct recursive mutex for env and regular mutex for tz (v5.0)
See merge request espressif/esp-idf!22293
2023-02-20 13:04:17 +08:00
Aditya Patwardhan
962d716456
Merge branch 'bugfix/secure_boot_v2_part_size_check_v5.0' into 'release/v5.0'
...
gen_esp32part: allow secure boot v2 based app partition size 4K aligned (v5.0)
See merge request espressif/esp-idf!22284
2023-02-20 12:19:38 +08:00
Armando (Dou Yiwen)
1990335623
Merge branch 'bugfix/fix_adc_channel_h_not_aligned_to_ng_driver_issue_v5.0' into 'release/v5.0'
...
adc: make adc_channel.h macros work with ng driver (v5.0)
See merge request espressif/esp-idf!22020
2023-02-20 11:08:42 +08:00
Armando
d101d9c100
esp_adc: update license
2023-02-20 10:34:34 +08:00
Armando
0f49c8677b
include inttypes.h
2023-02-20 10:34:34 +08:00
Armando
45776dc0cc
esp_adc: add esp32c2 adc high/low test threshold and expected val
2023-02-20 10:34:34 +08:00
Armando
ed98062c66
esp_adc: refacotr tests for all supported attenuations
2023-02-20 10:34:34 +08:00
Armando
a03ca90d4a
esp_adc: replace hardcoded calibration version to a macro
...
On esp32c3 and esp32s3, we support calibration version 1. This commit
replace it with ESP_EFUSE_ADC_CALIB_VER to avoid hardcode.
2023-02-20 10:34:34 +08:00
Armando
fe0643ca40
esp_adc: support adc calibration on esp32c2
2023-02-20 10:34:34 +08:00
Armando
70d62f5c85
efuse: added adc calibration efuse fields on esp32c2
2023-02-20 10:34:34 +08:00
Armando
d9992320c8
efuse: remove PVT_LOW field on esp32c2
...
PVT_LOW doesn't exist on ESP32C2
2023-02-20 10:34:33 +08:00
zlq
bd7bcbb03b
1.add ldo parameters in efuse table; 2.set ldo dbias based on pvt-efuse; 3.add pll cali stop function; 4. add efuse_ocode
2023-02-20 10:33:25 +08:00
Mahavir Jain
b289b7a1f1
Merge branch 'feature/mbedtls-3.3.0_v5.0' into 'release/v5.0'
...
mbedtls: Update to v3.3.0 (v5.0)
See merge request espressif/esp-idf!22121
2023-02-19 14:41:06 +08:00
Mahavir Jain
a823a4907f
Merge branch 'bugfix/fix_return_value_in_httpd_socket_apis_v5.0' into 'release/v5.0'
...
esp_http_server: fix return values for `httpd_socket_send()` and `httpd_socket_recv()` APIs (v5.0)
See merge request espressif/esp-idf!22307
2023-02-19 12:10:36 +08:00
Mahavir Jain
c71f9a3e1e
Merge branch 'fix/stack-dram-memory-protection_v5.0' into 'release/v5.0'
...
heap: Modify the memory type of the memory used as startup stack when memory protection is enabled (backport v5.0)
See merge request espressif/esp-idf!22170
2023-02-19 11:57:54 +08:00
Mahavir Jain
ca7045d904
protocomm: Fix test-app build for esp32c2 & esp32c6
...
- AES context has a breaking change, rather than storing
round keys directly, it stores the offset at which the keys
are present in the context buffer
2023-02-19 03:53:02 +00:00
Laukik Hase
db99f311fc
mbedtls: Fix build with dynamic buffers feature
2023-02-19 03:53:02 +00:00
Laukik Hase
6384299167
wpa_supplicant: Update deprecated API (mbedtls_pkcs5_pbkdf2_hmac
)
...
- The newer alternative does not require HMAC context for its
operation
2023-02-19 03:53:02 +00:00
Laukik Hase
8b5ab6820f
mbedtls: Update config options as per v3.3.0 release
2023-02-19 03:53:02 +00:00
Laukik Hase
88aa45ff17
mbedtls: Update to v3.3.0
2023-02-19 03:53:02 +00:00
Mahavir Jain
e532de9aa5
partition_table: add tests for checking secure boot part size
2023-02-19 03:50:03 +00:00
Mahavir Jain
33568182d4
gen_esp32part: allow secure boot v2 based app partition size 4K aligned
...
For Secure Boot v2 case, unsigned image is first padded to next 64K
aligned boundary and then a signature block of 4K gets appended. Thus
an app partition whose size is 4K aligned should be allowed here.
For Secure Boot v1 case, app partition size must be 64K aligned as the
signature block lies at the very end of 64K boundary.
Relevant:
57b601ab7f
2023-02-19 03:50:03 +00:00
Mahavir Jain
dcae357500
Merge branch 'fix/hardware_ecc_port_v5.0' into 'release/v5.0'
...
mbedtls/ecp: Fix incorrect ECP parameter value
See merge request espressif/esp-idf!22112
2023-02-19 11:49:14 +08:00
Mahavir Jain
395b682aa3
Merge branch 'fix/mbedtls_port_sanity_checks_and_return_values_v5.0' into 'release/v5.0'
...
mbedtls/port: refactor sanity checks and their return values (v5.0)
See merge request espressif/esp-idf!22127
2023-02-19 11:47:47 +08:00
morris
ce0316df99
lcd: support PLL240M as i80 clock source on esp32s3
2023-02-18 15:14:12 +08:00
morris
f603aa7d76
Merge branch 'bugfix/i2s_update_regs_before_start_v5.0' into 'release/v5.0'
...
i2s: fixed rx update stuck bug (v5.0)
See merge request espressif/esp-idf!21776
2023-02-18 15:07:05 +08:00
morris
db8b56c9ac
Merge branch 'bugfix/fix_micro_error_SPI_HOST_MAX_v5.0' into 'release/v5.0'
...
spi: fix micro SPI_HOST_MAX error (v5.0)
See merge request espressif/esp-idf!22147
2023-02-18 15:06:35 +08:00