Commit Graph

26146 Commits

Author SHA1 Message Date
xiongweichao
29b718bdf5 Fixed memory leak when SPP initialization failed 2022-12-19 11:32:09 +08:00
xiongweichao
3f5aaf11db Added esp_spp_vfs_unregister() to free memory allocated by esp_spp_vfs_register() 2022-12-19 11:32:01 +08:00
Kapil Gupta
51dfbafce2 esp_wifi: Add changes to skip SAE handshake during WPS connection 2022-12-19 09:00:24 +05:30
Jiang Jiang Jian
c881f2dd6f Merge branch 'bugfix/flush_pmk_for_akm_change_v5.0' into 'release/v5.0'
esp_wifi: Flush PMK caching if bss akm has changed(backport v5.0)

See merge request espressif/esp-idf!21646
2022-12-19 10:47:29 +08:00
Jiang Jiang Jian
10bb4c8279 Merge branch 'bugfix/update_esp_rom_gpio_header_v5.0' into 'release/v5.0'
esp_rom: update rom gpio.h (backport v5.0)

See merge request espressif/esp-idf!21621
2022-12-19 10:47:24 +08:00
Jiang Jiang Jian
31a58dbb4e Merge branch 'bugfix/a2dp_error_code_v5.0' into 'release/v5.0'
bt: Update A2DP version to v1.4(v5.0)

See merge request espressif/esp-idf!21622
2022-12-19 10:46:58 +08:00
Shreyas Sheth
e566e0b597 esp_wifi:BDSA related patch updates 2022-12-19 02:14:26 +05:30
David Cermak
d2791b32fd esp_netif: Post IP event for PPP netifs unconditionally
IP update notification for "point to point" interfaces is performed
via the same callback function as for any other interfaces (dhcp_cb,
although it's not DHCP related). In P2P interfaces we have to assure
that we always get a notification, so we can set the interface up.
This was omitted when getting the same IP address for the second
time, causing the PPPoS interface (in esp-modem applications) failing
to reconnect if disconnected.

Closes https://github.com/espressif/esp-idf/issues/10308
Closes https://github.com/espressif/esp-protocols/issues/188
2022-12-16 18:32:55 +01:00
Chip Weinberger
12f8e55d7c
[Panic] also print to secondary USB Serial/JTAG Console 2022-12-16 14:40:00 +01:00
morris
6d22959461 doc: recommend turn on psram xip feature for bounbe buffer mode 2022-12-16 17:48:28 +08:00
Liu Zhongwei
07d65333c3 rgb_lcd: support multi-fb with bounce buffer 2022-12-16 17:48:28 +08:00
morris
e207c60805 Merge branch 'bugfix/no_more_public_adc2_dma_on_c3_s3_v5.0' into 'release/v5.0'
adc: no longer support adc2 continuous mode on esp32c3 and esp32s3 (v5.0)

See merge request espressif/esp-idf!21645
2022-12-16 17:46:31 +08:00
Mahavir Jain
88c3e0b4d4
docs: Fix Secure DL mode documentation about flash read being unsupported
Simple flash read command is not supported if Secure DL mode is enabled on the target.
Remove reference of this from the relevant docs part.

Related: https://github.com/espressif/esptool/issues/810
Related: ESPTOOL-567
Closes IDF-6468
2022-12-16 11:51:52 +05:30
Island
8866d09830 Merge branch 'bugfix/change_the_level_of_nimble_log_forv5.0' into 'release/v5.0'
ble_mesh:example:change the level of nimble host log(v5.0)

See merge request espressif/esp-idf!21628
2022-12-16 14:12:51 +08:00
morris
ac5898c848 Merge branch 'bugfix/fix_mspi_timing_tuning_psram_timing_issue_v5.0' into 'release/v5.0'
mspi_tuning: fix psram timing tuning bug (v5.0)

See merge request espressif/esp-idf!21624
2022-12-16 14:05:59 +08:00
Armando
bb074904b4 adc: no longer support adc2 oneshot mode on esp32c3
Due to HW limitation, we don't support this anymore. On c3, ADC2 under oneshot mode is not stable.

However, you can enable CONFIG_ADC_ONESHOT_FORCE_USE_ADC2_ON_C3 to force use
ADC2.

Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-s3_errata_en.pdf
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2022-12-16 12:07:38 +08:00
Armando
1c373cf293 adc: no longer support adc2 continuous mode on esp32c3 and esp32s3
Due to HW limitation, we don't support this anymore. On s3 and c3, ADC2 under continuous  mode is not stable.

However, you can enable CONFIG_ADC_CONTINUOUS_FORCE_USE_ADC2_ON_C3_S3 to force use
ADC2.

Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-s3_errata_en.pdf
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2022-12-16 12:07:38 +08:00
Armando
6fd80903de adc: added a soc macro indicating digital controller supported unit 2022-12-16 12:07:38 +08:00
Kapil Gupta
39ed5dc39d esp_wifi: Flush PMK caching if bss akm has changed 2022-12-16 08:33:28 +05:30
Yuan Hong Hui
eff97476eb ble_mesh:example:change the level of nimble host log 2022-12-15 17:57:12 +08:00
Armando
2369fa4d66 mspi_tuning: fix psram timing tuning bug
Prior to this commit, when calling:
- spi_timing_enter_mspi_low_speed_mode()
- spi_timing_enter_mspi_high_speed_mode()

psram timing is not tuned. This will lead to a stall during early
startup. This bug is on S3, for 80MHz DDR PSRAM

This commit will add psram timing tuning, in these two functions.
2022-12-15 17:04:23 +08:00
xiongweichao
71bd180095 bt: Update HFP version to v1.8 2022-12-15 16:57:56 +08:00
xiongweichao
e5794669de bt: Update A2DP version to v1.4 2022-12-15 16:57:51 +08:00
xiongweichao
9bd1484386 bt:Fixed the use of invalid configuration when the peer device configures the stream, and returned an incorrect error code 2022-12-15 16:57:46 +08:00
jiangguangming
5f7d8bfd6b esp_rom: update rom gpio.h 2022-12-15 16:27:57 +08:00
Rahul Tank
1623ad0a25 Nimble: Add helper macros to set interval min / max for periodic adv 2022-12-15 13:41:24 +05:30
Jiang Jiang Jian
5278cc7de0 Merge branch 'bugfix/fix_failure_of_wifi_channel_configuration_v5.0' into 'release/v5.0'
phy: only set phy_init_flag at power domain off, when all modems deinit

See merge request espressif/esp-idf!21610
2022-12-15 13:52:30 +08:00
liuning
8ba9f8a6cf ci: fix esp_phy_modem_deinit issue 2022-12-15 10:48:04 +08:00
liuning
7d16868e32 phy: only set phy_init_flag at power domain off, when all modems deinit 2022-12-15 10:45:09 +08:00
Marius Vikhammer
0fa3443cea cxx: fixed stack smash test case failing due to changed output
__stack_chk_fail no longer prints "abort() was called" message,
changed test case to reflect this.
2022-12-14 12:37:23 +01:00
Guillaume Souchere
87a738962e esp_system: fix placement of __stack_chk_fail from flash to RAM
When stack check is enabled, certain functions (sometimes placed in RAM)
are being decorated with stack guards and a call to __stask_chk_fail() in
case ofr stack corruption. For this reason, __stack_chk_fail() must be
placed in RAM too.

Add stack check config in heap tests on all targets to find eventual flash to RAM
calls due to stack checks when running callgraph_check.py
2022-12-14 12:37:23 +01:00
Guillaume Souchere
72e7cbee88 heap: Remove size check in multi_heap.c when registering a new heap
The tlsf now checks for size validity when creating a new heap.

The check previously done in multi_heap_register_impl() is no longer
valid since the tlsf_size() is not known at this time (as the metadata
size is linked ot the size of the memory region passed as parameter
when calling tlsf_create_with_pool())

The tlsf_create_with_pool() will return a null pointer if the size
of the memory is not big enough to hold the metadata overhead and
at least a small block.

Update the test according to the changes in TLSF API
2022-12-14 12:37:23 +01:00
Guillaume Souchere
47dc520538 heap: Update host tests after incorporation of the new TLSF implementation 2022-12-14 12:37:23 +01:00
Guillaume Souchere
6c926ab7b0 heap: Update the component to incorporate the new TLSF implementation
- remove tlsf_platform.h from esp-idf since the fl_index is now calculated
  based on the size of the requested heap
- update CMakeLists.txt accordingly
2022-12-14 12:37:23 +01:00
Guillaume Souchere
be74fd1e8c heap: fix linker issues and remove spi flash dependencies 2022-12-14 12:37:23 +01:00
Guillaume Souchere
35260d4325 feat: remove tlsf_fls and tlsf_ffs from linker as they are inlined. 2022-12-14 12:37:23 +01:00
Guillaume Souchere
c47ea5d2bb tools: update list of references to not include symbold used by __assert_func calls
On xtensa architecture, the call to __assert_func uses a reference to __func__ that can
sometimes be placed in flash. Since the __asert_func can be called from functions in IRAM
the check_callgraph script can report an error when checking for invalid calls from IRAM
to flash sections. However, the __asert_func prevents this scenario at runtime so the
check_callgraph script reports a 'flas positive' situation. For this reasson, all references
to __func__$x found prior to a call to __assert_func are droped in the parsing of the rtl files.
2022-12-14 12:37:23 +01:00
Guillaume Souchere
e92250e6a2 heap: add check for usage of flash content from iram
this commits:
- adds build-time test to check that no call to flash regions are done from IRAM functions

- resolves problems related to IRAM function using content in flash memory

- update heap_caps_alloc_failed to use a default function name in DRAM
  when necessary instead of creating a function name variable in DRAM for
  each call of heap_caps_alloc_failed. This allows to save some extra bytes
  in RAM.
2022-12-14 12:37:16 +01:00
Roland Dobai
9ae796b36b Merge branch 'fix/tools_gdbgui_requirement_v5.0' into 'release/v5.0'
Tools: gdbgui is not supported on Python 3.11 (v5.0)

See merge request espressif/esp-idf!21598
2022-12-14 19:28:53 +08:00
Mahavir Jain
d8db7d7cc4 Merge branch 'feature/esp_https_ota_events_v5.0' into 'release/v5.0'
esp_https_ota: Added support for esp_events (v5.0)

See merge request espressif/esp-idf!21109
2022-12-14 17:11:50 +08:00
Roland Dobai
34a1a1b098 Tools: gdbgui is not supported on Python 3.11
This is a follow-up of a816dfbfc3 with
additional check.

Related to https://github.com/espressif/esp-idf/issues/10116
2022-12-14 09:50:11 +01:00
Island
eb08eb6578 Merge branch 'feature/esp32c2_optimize_npl_element_count_v5.0' into 'release/v5.0'
Feature/esp32c2 optimize npl element count v5.0

See merge request espressif/esp-idf!21563
2022-12-14 15:13:42 +08:00
Krzysztof Budzynski
fe0d9a5cf4 Merge branch 'docs/provide_CN_translation_for_peripherals_migration_guides_v5.0' into 'release/v5.0'
docs: provide CN translation for peripherals in migration guides (v5.0)

See merge request espressif/esp-idf!20292
2022-12-14 12:44:43 +08:00
Zhang Xiao Yan
8881fd2f9c docs: provide CN translation for peripherals in migration guides (v5.0) 2022-12-14 12:44:43 +08:00
Jiang Jiang Jian
232a4aee15 Merge branch 'feature/report_acl_conn_cmp_stat_to_app_v5.0' into 'release/v5.0'
feature/report ACL link related events to application (v5.0)

See merge request espressif/esp-idf!21524
2022-12-14 10:45:15 +08:00
Jiang Jiang Jian
88a82c89c6 Merge branch 'feature/nimble_support_ble_max_conn_num_v5.0' into 'release/v5.0'
Nimble:  Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3 (v5.0)

See merge request espressif/esp-idf!21550
2022-12-14 10:44:50 +08:00
Jiang Jiang Jian
625483193a Merge branch 'doc/update_nimble_mesh_example_information_v5.0' into 'release/v5.0'
Nimble: Update Mesh example documentation (v5.0)

See merge request espressif/esp-idf!21578
2022-12-14 10:44:11 +08:00
zwl
e8555efe5b Renamed BAH 2022-12-13 18:05:00 +08:00
zwl
756dbc3f94 Fixed some occasional ble issues on ESP32H2BETA2 2022-12-13 17:50:14 +08:00
zwl
5cab9686bb Optimized the number of npl on ESP32C2 2022-12-13 17:50:00 +08:00