Commit Graph

18917 Commits

Author SHA1 Message Date
wuzhenghui
75d15e8b80 bugfix: remove redundant SOC_PM_SUPPORT_XTAL_PD wrapping
Closes https://github.com/espressif/esp-idf/issues/10681
2023-02-07 20:25:59 +08:00
Armando
98892a3288 esp_mm: correct mmap reserved irom and drom size
Prior to this commit, we don't consider the offset of the irom vaddr
start.

If the offset + size is bigger than the MMU page size, for example:
MMU page size: 0x10000
irom vaddr: 0x4200_0800, so offset = 0x800
irom size: 0xF900
offset + size = 0x10100

Under this condition, the 0x4200_0000 ~ 0x4202_0000, two MMU pages are
used.

With this commit, when reserving the irom and drom, we take the offset
into consideration as well.
2023-02-07 20:23:53 +08:00
Armando
06e7c02da7 esp_mm: h2 support 2023-02-07 20:23:53 +08:00
Armando
4c878eeb0a sections_ld: add description to .flash.rodata_noload
This commit also move _rodata_reserved_end symbol right at the entry of
the .flash.rodata_noload.
2023-02-07 20:23:52 +08:00
Armando
d233f3535d flash_mmap: migrate to use esp_mmap driver 2023-02-07 20:23:52 +08:00
Armando
e76c52d4df cache: fix s2 dcache size 0 issue when psram disabled 2023-02-07 20:23:52 +08:00
Armando
d6844051fc esp_mm: new virtual memory mapping apis via mmu 2023-02-07 20:23:52 +08:00
Armando
1fc55af6af cache: invalidate addr hal api 2023-02-07 20:23:52 +08:00
Armando
16398c2d06 mmu: move mem_caps macro to hal/mmu_types.h as an enum type 2023-02-07 20:23:52 +08:00
Armando
8ba67dfc38 mmu: rename api to esp_mmu_reserve_block_with_caps
esp_mmu_get_largest_free_block() ->
esp_mmu_get_max_consecutive_free_block()

esp_mmu_find_vaddr_range() -> esp_mmu_reserve_block_with_caps()
2023-02-07 20:23:51 +08:00
Armando
af15b6d885 mmu: simplify mmu vaddr region macro on esp32c2
ESP32C2 mmu vaddr region macros, and related mask macros in
ext_mem_defs.h depends on mmu page size.
2023-02-07 20:23:51 +08:00
Jiang Jiang Jian
248c15475f Merge branch 'feature/implement_esp32h2_regi2c_api' into 'master'
esp32h2: implement regi2c apis

See merge request espressif/esp-idf!22250
2023-02-07 20:22:52 +08:00
Roland Dobai
4bd5ebb4a1 Merge branch 'tools/monitor_move' into 'master'
Tools(idf_monitor): Move idf_monitor to separate repo

Closes IDF-4109

See merge request espressif/esp-idf!22050
2023-02-07 19:47:46 +08:00
Jing Li
409804f673 Merge branch 'feature/support_feature_depend_on_rtc_fast_mem_for_esp32c2' into 'master'
esp32c2: support feature(rtc time) depend on rtc fast mem

Closes IDF-3901, IDF-4239, IDF-5053, IDF-5060, and IDF-5131

See merge request espressif/esp-idf!19067
2023-02-07 15:16:01 +08:00
wuzhenghui
a0983627f5 bugfix: fix returning before disabling blocks 2023-02-07 15:08:05 +08:00
Jiang Jiang Jian
f4c14a6bf4 Merge branch 'bugfix/lwip_sntp_cpp_fix' into 'master'
esp_sntp: Fix c++ compile issue in esp_sntp.h (GitHub PR)

Closes IDFGH-9212 and IDFGH-9239

See merge request espressif/esp-idf!22159
2023-02-07 14:36:39 +08:00
Kevin (Lao Kaiyao)
421e5e6416 Merge branch 'refactor/pack_driver_source_files' into 'master'
components/driver: pack peripherals

See merge request espressif/esp-idf!22173
2023-02-07 10:20:57 +08:00
Ivan Grokhotkov
e10ff6b4e3
newlib: remove leftover file from the binary distribution 2023-02-06 22:23:48 +01:00
Mahavir Jain
dc7f47aaeb Merge branch 'docs/esp32c6_enable_flash_encryption_documentation' into 'master'
esp32c6: update documentation for flash encryption

Closes IDF-5358

See merge request espressif/esp-idf!22229
2023-02-06 23:47:28 +08:00
wuzhenghui
ee4214ebf1 rom caps: add ESP_ROM_WITHOUT_REGI2C rom caps 2023-02-06 21:45:22 +08:00
fuzhibo@espressif.com
f1e0151e63 fix(regi2c): support regi2c APIs for esp32h2 2023-02-06 21:44:16 +08:00
wuzhenghui
146b9b047b soc: add modem regs and force enable i2c_ana_mst clock 2023-02-06 21:43:26 +08:00
Rahul Tank
67f88aeb87 Merge branch 'bugfix/handle_large_controller_buffer_size' into 'master'
Nimble: Fragmentation support in case of larger controller buffer size

See merge request espressif/esp-idf!21200
2023-02-06 18:43:25 +08:00
Wan Lei
a49164b5ec Merge branch 'bugfix/spi_clk_rc_fast_enable_disable' into 'master'
spi_master: fix clock source RC_FAST usage

See merge request espressif/esp-idf!22160
2023-02-06 18:25:23 +08:00
Adam Múdry
679d9731b3 Merge branch 'feature/fatfs_15_update' into 'master'
fatfs: Update to version 0.15

Closes IDF-6391

See merge request espressif/esp-idf!21330
2023-02-06 17:47:05 +08:00
Yuan Jian Min
f6b0d04638 Merge branch 'feature/add_ws_auth' into 'master'
tcp_transport: Add authorization header for websocket client

Closes FCS-1126

See merge request espressif/esp-idf!22202
2023-02-06 16:29:29 +08:00
Jiang Guang Ming
7d25e3853c Merge branch 'bugfix/update_esp_rom_newlib_time_c6_h2' into 'master'
update esp rom newlib-time on c2 c6 and h2

See merge request espressif/esp-idf!22142
2023-02-06 15:36:04 +08:00
wanlei
6ec9802eb7 spi_master: fix clock source RC_FAST usage 2023-02-06 12:41:17 +08:00
Jiang Jiang Jian
5754e298ce Merge branch 'bugfix/default_wpa2_causing_pmk_recal' into 'master'
esp_wifi: Fix for default wpa2 casing pmk recalculation.

Closes IDFGH-8782

See merge request espressif/esp-idf!21527
2023-02-06 11:57:15 +08:00
Song Ruo Jing
b72d759290 uart: Add support for esp32h2 2023-02-06 00:48:04 +08:00
Mahavir Jain
aac4af589e Merge branch 'feature/esp32c6_enable_rsa_support' into 'master'
mbedtls: enable RSA support for esp32c6

Closes IDF-5359

See merge request espressif/esp-idf!22155
2023-02-05 13:35:17 +08:00
Sean Cross
79d37515df lwip: fix dhcp_server path
The path for dhcp_server.c has changed from esp32/ to esp32xx/

This fixes the build when CONFIG_LWIP_DHCP_RESTORE_LAST_IP is enabled.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-02-03 22:55:09 +08:00
morris
4c9942bacc Merge branch 'feature/mcpwm_support_h2' into 'master'
mcpwm: support esp32h2

Closes IDF-6237 and IDF-6668

See merge request espressif/esp-idf!21931
2023-02-03 20:30:02 +08:00
Aditya Patwardhan
b06a029677 esp32c6: update documentation for flash encryption 2023-02-03 16:01:06 +05:30
Peter Dragun
3e3533f918 feat(idf_monitor): move idf_monitor to separate repo 2023-02-03 11:20:15 +01:00
cjin
9985371b8a BLE: fixed hci event fail on bluedroid host 2023-02-03 17:57:33 +08:00
Ondrej Kosta
51ea57f5b8 esp_eth: improved L2 test stability 2023-02-03 10:48:39 +01:00
Ondrej Kosta
256d457969 esp_eth: possible start/stop issue fixed
ESP32 EMAC could hang when stopped/started multiple times at 10Mbps speed mode
2023-02-03 10:48:39 +01:00
aditi_lonkar
51c16d41b8 esp_wifi: Fix for default wpa2 authmode casing pmk recalculation.
Closes https://github.com/espressif/esp-idf/issues/10214
2023-02-03 12:49:54 +05:30
Jiang Jiang Jian
eb55a21fc8 Merge branch 'bugfix/minor_syntax_changes' into 'master'
wpa_supplicant  : Fixing collection of issues encountered during QuickTrack testing.

See merge request espressif/esp-idf!22097
2023-02-03 14:44:00 +08:00
harshal.patil
6206c1e213 mbedtls: enable RSA support for esp32c6 2023-02-03 11:46:42 +05:30
Jiang Jiang Jian
5c885a05ff Merge branch 'bugfix/ps_bufferable_mmpdu' into 'master'
esp_wifi: softap: buffer deauth, disassoc and action frames for station in sleep mode and SA query procedure improvements

See merge request espressif/esp-idf!20602
2023-02-03 13:48:06 +08:00
Rahul Tank
78baa6c98c Nimble: Modified code to have fragmentation of packet equal to MAX PKT SIZE in case
controller supports larger buffer size
2023-02-03 10:20:49 +05:30
Chen Jian Hua
732df630cd Merge branch 'feature/add_params_in_gatt_conn_evt' into 'master'
Bluedroid: add params for GATT connect event

Closes BLEQABR23-1

See merge request espressif/esp-idf!22183
2023-02-03 10:29:36 +08:00
Sarvesh Bodakhe
299e32ce68 esp_wifi: softap: buffer deauth, disassoc, action frames for connected station in sleep mode
1) improve deauth/disassoc handling
2) improve SA-query procedure handling
2023-02-03 00:10:00 +05:30
jingli
af9c6e3175 esp32c2/rtc: fix 8md256 as rtc slow clk not work properly during deep sleep 2023-02-02 20:41:11 +08:00
jingli
13b5e625a7 UT/esp32c2: reenable pm and sleep related UT 2023-02-02 20:26:08 +08:00
jingli
2e4f0c7926 UT/esp32c2: reenable rtc clk calibration compensation UT 2023-02-02 20:26:08 +08:00
jingli
f8cc2ec86d esp32c2: support rtc time feature depend on rtc memory, since c2 does not have rtc memory 2023-02-02 20:25:59 +08:00
Jiang Jiang Jian
fb1902773f Merge branch 'bugfix/sdp_event_status_overwritten_by_handle' into 'master'
bt: Fixed SDP BTA_SDP_REMOVE_RECORD_USER_EVT event status overridden by handle

Closes IDFGH-9219

See merge request espressif/esp-idf!22153
2023-02-02 19:54:45 +08:00
morris
15b9352f60 mcpwm: support esp32h2 2023-02-02 19:05:31 +08:00
laokaiyao
f27cd67c00 driver: pack peripherals 2023-02-02 18:19:58 +08:00
yuanjianmin
fecf4768f0 tcp_transport: Add authorization header for websocket client 2023-02-02 17:35:44 +08:00
morris
753eab91ee Merge branch 'feature/usj_support_h2' into 'master'
USJ console support on esp32h2

Closes IDF-6239

See merge request espressif/esp-idf!22156
2023-02-02 17:07:19 +08:00
Island
c8de3e54c7 Merge branch 'bugfix/esp32c6_ble_adv_issues' into 'master'
Bugfix/esp32c6 ble adv issues

Closes EBLE50Y23-19

See merge request espressif/esp-idf!22179
2023-02-02 16:37:05 +08:00
Jiang Jiang Jian
ec8a702a8f Merge branch 'bugfix/optimize_abnormal_beacon_log' into 'master'
esp_wifi:bugfix for optimize abnormal beacon log

Closes IDFGH-7742

See merge request espressif/esp-idf!21565
2023-02-02 16:29:18 +08:00
Kevin (Lao Kaiyao)
6cef87fea3 Merge branch 'feature/support_i2c_on_h2' into 'master'
i2c: support i2c on esp32h2

Closes IDF-6233 and IDF-6689

See merge request espressif/esp-idf!21982
2023-02-02 15:18:37 +08:00
David Čermák
5ada761a7b Merge branch 'update/esp_netif_test_cleanup' into 'master'
esp_netif/tests: Consolidate test_apps/unit_test

Closes IDF-5579 and IDF-5047

See merge request espressif/esp-idf!21929
2023-02-02 13:49:43 +08:00
Mahavir Jain
cba1095508 Merge branch 'fix/heap-get-allocated-size' into 'master'
heap: Fix erroneous value returned by heap_caps_get_allocated_size() when poisoning is enabled

Closes IDF-3917

See merge request espressif/esp-idf!22176
2023-02-02 12:44:25 +08:00
Jiang Jiang Jian
25a56d13d7 Merge branch 'bugfix/fix_potential_null_pointer_dereference' into 'master'
Fix potential null pointer dereference

Closes IDF-6493

See merge request espressif/esp-idf!21662
2023-02-02 11:22:17 +08:00
xueyunfei
11c579f4ae esp_wifi:bugfix for optimize abnormal beacon log 2023-02-02 11:13:50 +08:00
Wu Zheng Hui
04987ac201 Merge branch 'feature/add_ram_loadable_app_support' into 'master'
feature: add ram loadable app support

See merge request espressif/esp-idf!19465
2023-02-02 10:28:13 +08:00
Jiang Jiang Jian
2707c95a5f Merge branch 'bugfix/max_connection_limit' into 'master'
esp_wifi: Improvements in station and softAP for connection management

Closes WIFI-4869

See merge request espressif/esp-idf!21641
2023-02-02 03:12:33 +08:00
Jiang Guang Ming
851c10aded Merge branch 'bugfix/fix_typo_naming_of_flash_multi' into 'master'
ci: fix typos tag naming of all flash_multi

See merge request espressif/esp-idf!22181
2023-02-01 23:46:34 +08:00
David Cermak
7ae58e223d esp_netif/tests: Consolidate test_apps/unit_test
* Remove duplicated test cases
* Migrated remaining unit tests to test_apps
2023-02-01 14:17:09 +01:00
Darian
c10414ae58 Merge branch 'feature/freertos_tidy_up_linker_script' into 'master'
FreeRTOS: Update function placements rules and tidy up linker fragment files

Closes IDF-6195

See merge request espressif/esp-idf!21394
2023-02-01 20:50:07 +08:00
Rahul Tank
9916eb688a Merge branch 'bugfix/add_return_type_nimble_port_init' into 'master'
Nimble: Added return value (success / failure ) to nimble_port_init  / nimble_port_deinit

See merge request espressif/esp-idf!21718
2023-02-01 19:45:44 +08:00
wuzhenghui
db61945537 bugfix: dual core chip haven't started the pro cpu in the bootloader, so no workaround is needed 2023-02-01 17:57:28 +08:00
wuzhenghui
c0d2fcded7 refactor: move bootloader_init_spi_flash to bootloader_flash_config_{target}.c 2023-02-01 17:57:28 +08:00
wuzhenghui
0cbb4227b2 feature: add build framework support 2023-02-01 17:57:25 +08:00
wuzhenghui
44df5b31af feature: add ram loadable app support 2023-02-01 17:57:22 +08:00
AlbertWDev
18a1b4c9b9 bt: fix SDP event status overwritten by handle 2023-02-01 10:53:42 +01:00
Guillaume Souchere
ba1d7f8d1c 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-01 10:04:38 +01:00
jgujarathi
88ea8c5fed wpa_supplicant : Prevent h2e config overwrite
Current esp_wifi_get_config doesn't return correct value of h2e config which will cause h2e config to be overwritten in Station connected handler.

Add one preventative condition to take care of this.
2023-02-01 14:04:23 +05:30
Darian Leung
903ac5dff9 freertos(IDF): Update IDF FreeRTOS linker fragment file
This commit updates the linker fragment file for IDF FreeRTOS.

- Linker fragment file's formatting was updated
- Placement rules of functions is now clearly specified inside the linker
  fragment file.
- Some extra functions are now placed in flash in accordance to the new
  placement rules.
2023-02-01 15:15:51 +08:00
Darian Leung
321254a776 freertos(SMP): Update SMP FreeRTOS linker fragment file
This commit updates the linker fragment file for Amazon SMP FreeRTOS.

- Linker fragment file's formatting was updated
- Placement rules of functions is now clearly specified inside the linker
  fragment file.
- Some extra functions are now placed in flash in accordance to the new
  placement rules.
2023-02-01 15:15:51 +08:00
Darian Leung
0574e63e6f freertos: Add linker fragments for common functions
This commit adds a separate linker fragment file "linker_common.lf" for the
functions in "port_common.c". The placement rules are now clearly specified
inside the linker fragment file.
2023-02-01 15:09:46 +08:00
Sarvesh Bodakhe
a24062d080 esp_wifi: improvements in station and softAP for connection management
1) station: send deauth while going from assoc to init, if reason is assoc timeout
2) softAP pmf: do not drop open deauth/disassoc if keys are not generated
3) softAP pmf: improvements in SA query handling
2023-02-01 12:22:46 +05:30
jgujarathi
c565724f3a wpa_supplicant : fix invalid de-init of last_scan_res_used
During the wifi deinit last_scan_res_used is not set to 0 which will cause it be used directly after reinit.

Added changes which will set it to 0 during init and deinit.
2023-02-01 12:17:42 +05:30
jgujarathi
417fc6d404 wpa_supplicant : Correct scan results for GCMP RSN
Fixed a typo which was causing scan results for GCMP not showing correctly
2023-02-01 12:12:29 +05:30
David Čermák
57c4508eb3 Merge branch 'bugfix/lwip_sntp_fix' into 'master'
sntp: Fix esp_sntp_...() API potential races

Closes IDFGH-9223

See merge request espressif/esp-idf!22126
2023-02-01 14:39:28 +08:00
Jiang Jiang Jian
14167e0172 Merge branch 'feature/support_esp32c6_phy_update_0111' into 'master'
phy: update esp32c6 phy lib

See merge request espressif/esp-idf!22169
2023-02-01 14:16:46 +08:00
Wu Zheng Hui
33ae2e1073 Merge branch 'feature/bringup_esp32c6_light_sleep_pd_cpu' into 'master'
esp32c6: support light_sleep (Stage 1: support CPU power down)

See merge request espressif/esp-idf!21985
2023-02-01 14:11:15 +08:00
Harshit Malpani
a176bff402 Merge branch 'bugfix/fix_return_value_in_httpd_socket_apis' into 'master'
esp_http_server: fix return values for `httpd_socket_send()` and `httpd_socket_recv()` APIs

Closes IDFGH-9275

See merge request espressif/esp-idf!22168
2023-02-01 14:00:51 +08:00
chenjianhua
4b44305103 bluedroid: add params in GATT connect event 2023-02-01 12:08:33 +08:00
laokaiyao
330149f3a6 i2c: support i2c on esp32h2 2023-02-01 11:23:11 +08:00
zwl
423c43f3e3 Fixed hci uart tx long data error 2023-02-01 09:41:04 +08:00
jiangguangming
b0fa18d290 ci: fix typos tag naming of all flash_multi 2023-02-01 08:46:48 +08:00
David Cermak
e8ee09d817 lwip/sntp: Fix esp_sntp_ API races
Some of the esp_sntp_...() APIs that wrap lwip's SNTP
module use tcpip_callback() to execute the lwip functionality
in the correct state (either with locked TCP/IP core,
or within the TCP/IP thread).
tcpip_callback() however doesn't wait for completion of the callback,
which doesn't prevent from using the stack variables after destroy
if used as a parameter.
Introduced in a71fa82.
Fixed by using of tcpip_api_call() instead of the tcpip_callback().

Closes https://github.com/espressif/esp-idf/issues/10611
2023-01-31 18:25:35 +01:00
gauri patankar
d14d001e44 wpa_supplicant:Fix potential null pointer dereference 2023-01-31 21:54:43 +05:30
wuzhenghui
7a4d38eac1 example: bringup light sleep example for esp32c6 2023-01-31 22:12:58 +08:00
wuzhenghui
cd9d914ba0 codeclean: clean esp32c6 rtc_sleep related code 2023-01-31 22:12:58 +08:00
Li Shuai
68594abe05 sleep: light sleep supported for esp32c6 2023-01-31 22:12:58 +08:00
wuzhenghui
a5467f42a0 codeclean: only S series chip VDDSDIO is configurable 2023-01-31 22:12:58 +08:00
Li Shuai
9b99fc9033 cpu retention: software cpu retention support for esp32c6
cpu retention: add riscv core sleep critical and non-critical register layout structure definition

cpu retention: add assembly subroutine for cpu critical register backup and restore

cpu retention: add cpu core critical register context backup and restore support

cpu retention: add cpu core non-critical register context backup and restore support

cpu retention: add interrupt priority register context backup and restore support

cpu retention: add cache config register context backup and restore support

cpu retention: add plic interrupt register context backup and restore support

cpu retention: add clint interrupt register context backup and restore support

cpu retention: wait icache state idle before pmu enter sleep
2023-01-31 22:12:54 +08:00
Li Shuai
1c39d64f95 cpu retention: refactor cpu retention and add cpu retention versions option in soc caps 2023-01-31 22:12:50 +08:00
Li Shuai
02f5df3b3e Power Management: added protection to the configuration of each power domain 2023-01-31 22:12:27 +08:00
Li Shuai
0f6cda1dd3 Power Management: support DFS 2023-01-31 22:12:27 +08:00
Li Shuai
2b5618606b pmu: clean modem clock pmu related code 2023-01-31 22:12:27 +08:00
cje
0fb408cc68 pmu active state ICG map initialize and modify i2c master force enable to enable 2023-01-31 22:12:27 +08:00
Li Shuai
c0ddaa5920 lp_timer: add hal-layer codes for esp32c6 2023-01-31 22:12:27 +08:00
Li Shuai
1eb08db0df lp_timer: lp_timer register address mapping structure redefinition 2023-01-31 22:12:27 +08:00
Li Shuai
59cf87fe7d pmu: sleep initialization and sleep start support for esp32c6
Initialize the pmu sleep machine constant when pmu is initialized, and calculate
the pmu sleep time adjustment value and hardware configuration value according
to the machine constant during system sleep.

Calibrate fast OSC before each sleep and use the calibration value to calculate
PMU hardware wait cycles when use the fast OSC as the work clock.
2023-01-31 22:12:27 +08:00
Li Shuai
6c1f58f135 pmu: add hal layer codes for esp32c6 2023-01-31 22:12:27 +08:00
Li Shuai
34d0464662 pmu: pmu register address mapping structure redefinition 2023-01-31 22:12:22 +08:00
Li Shuai
4e2a32d9b3 soc_cap: add SOC_PM_SUPPORT_VDDSDIO_PD soc_caps
soc_cap: add SOC_PM_CPU_RETENTION_BY_SW/REGDMA

soc caps: add SOC_PMU_SUPPORTED
2023-01-31 22:12:18 +08:00
David Čermák
dba0718f47 Merge branch 'feature/lwip_linux' into 'master'
lwip: Add support for linux target

Closes IDF-5707, IDF-5647, and IDF-6003

See merge request espressif/esp-idf!19302
2023-01-31 22:01:50 +08:00
Jiang Jiang Jian
20f5f641ef Merge branch 'bugfix/restore_debug_print' into 'master'
wpa_supplicant: Restore DEBUG_PRINT in supplicant

See merge request espressif/esp-idf!22131
2023-01-31 21:29:56 +08:00
zwl
3a5373a5d0 Fixed the issue that Offest Base in SyncInfo was zero on ESP32-C6 2023-01-31 20:34:04 +08:00
morris
fd2b9d98d7 Merge branch 'bugfix/gdma_m2m_share_consumer_id' into 'master'
gdma: prevent mutli-channels connect to the same peripheral

Closes IDFGH-9182

See merge request espressif/esp-idf!22100
2023-01-31 19:48:24 +08:00
Jiang Jiang Jian
6d7282eebd Merge branch 'feature/bringup_esp32c6_chip_wifi_rebase_master_2' into 'master'
esp_wifi: add txop limit support, sync header

See merge request espressif/esp-idf!21913
2023-01-31 19:41:50 +08:00
morris
3151f9c8f1 usj: bringup on esp32h2 2023-01-31 16:21:47 +08:00
Wan Lei
e6ed62d18a Merge branch 'feature/spi_isr_pin_to_core' into 'master'
spi: add feature to assign core_id of spi isr registered

Closes IDF-6371

See merge request espressif/esp-idf!21597
2023-01-31 15:57:33 +08:00
George Joseph
c8f0ec7fa4 esp_sntp: Fix c++ compile issue in esp_sntp.h
Added a cast to esp_sntp_operatingmode_t in sntp_setoperatingmode()'s
call to esp_sntp_setoperatingmode(operating_mode).  Althouogh C
doesn't require the cast, C++ does.  Otherwise you get...

error: invalid conversion from 'u8_t' {aka 'unsigned char'}
    to 'esp_sntp_operatingmode_t'
2023-01-31 07:54:30 +00:00
David Cermak
332e4902b4 lwip: Rename esp32 port layer to esp32xx
As it reflects all chips from esp32-xx family, not only esp32
2023-01-31 08:43:50 +01:00
David Cermak
fa97004faf lwip: Support for linux target
Implement linux port layer and reuse the original FreeRTOS layer
that's compiled and used on linux target as well, by means of FreeRTOS
simulator.
2023-01-31 08:43:45 +01:00
morris
dbca74f1ef gdma: prevent mutli-channels connect to the same peripheral
1. add check in the gdma driver, to prevent multiple channels connecting
   to the same peripheral
2. memory copy DMA ID will occupy the peripheral's DMA ID on some ESP
   targets (e.g. esp32c3/s3). We should search for a free one when
install async memcpy driver.

Closes https://github.com/espressif/esp-idf/issues/10575
2023-01-31 15:18:19 +08:00
Rahul Tank
826495a145 Nimble: Added return value (success / failure ) to nimble_port_init 2023-01-31 12:01:02 +05:30
Harshit Malpani
e1e46e5dae
esp_http_server: fix return values for httpd_socket_send() and httpd_socket_recv() APIs
Closes https://github.com/espressif/esp-idf/issues/10658
2023-01-31 11:29:49 +05:30
morris
b7799ec84d rom: patch uart function to switch buffer 2023-01-31 13:11:32 +08:00
cjin
13ccf8e906 phy: update esp32c6 phy lib
phy_init: phy_version 101,061a19e,Jan 11 2023,18:48:18
2023-01-31 12:29:22 +08:00
Song Ruo Jing
0d07f85916 Merge branch 'feature/esp32h2_ledc_support' into 'master'
ledc: Add support for ESP32H2

Closes IDF-6235 and IDF-6698

See merge request espressif/esp-idf!22120
2023-01-31 12:26:30 +08:00
Mahavir Jain
b44b88902e Merge branch 'fix/stack-dram-memory-protection' into 'master'
heap: Modify the memory type of the memory used as startup stack when memory protection is enabled

Closes IDF-6743

See merge request espressif/esp-idf!22130
2023-01-31 12:14:52 +08:00
Xu Si Yu
897b9700c4 Merge branch 'bugfix/fix_bug_of_c6_i154' into 'master'
ieee802154: update i154 lib to fix the bug of esp32c6

See merge request espressif/esp-idf!22151
2023-01-31 10:15:24 +08:00
Adam Múdry
e6fcaa4f9f fatfs: Update to version 0.15
Updated FATFS to 0.15 from 0.14b and patched for ESP devices
2023-01-30 13:14:54 +00:00
Song Ruo Jing
ad55230b0a ledc: Add support for esp32h2; Refactor ledc driver clock source selection related code
LEDC examples and test cases are supported on ESP32H2.
   Switch to use general clock IDs for ledc_clk_cfg_t enum values.
   Deprecate LEDC_USE_RTC8M_CLK.
2023-01-30 19:19:34 +08:00
Steve Jothen
7ca5fa87c0 Use correct recursive mutex for env and regular mutex for tz 2023-01-30 10:59:53 +01:00
Chip Weinberger
91ab4b5513 [AES] Timeout: return error dont abort 2023-01-30 01:37:00 -08:00
morris
a15830bcfc Merge branch 'bugfix/correct_default_apb_frequency' into 'master'
soc: fix wrong APB_CLK_FREQ value on esp32c6

Closes IDF-6343

See merge request espressif/esp-idf!22080
2023-01-30 17:12:55 +08:00
wanlei
713dc06661 spi: add feature to modify core_id of spi isr regstered 2023-01-30 16:14:02 +08:00
Xu Si Yu
7a2948f42a ieee802154: update i154 lib to fix the bug of esp32c6 2023-01-30 15:30:59 +08:00
Mahavir Jain
9374ebe529
esp32h2: add support for AES peripheral
Closes IDF-6280
2023-01-30 10:09:14 +05:30
Mahavir Jain
8203d40fc3
esp32h2: add support for SHA peripheral
Closes IDF-6275
2023-01-30 10:08:58 +05:30
wanglei
7cd87163a3 esp_rom: remove unsupported ld files (wifi related) for esp32h2 2023-01-30 11:28:26 +08:00
Wu Zheng Hui
e8773d12f2 Merge branch 'bugfix/switch_ahb_frequency_with_cpu_frequency' into 'master'
bugfix: make ahb freq consistent with cpu freq

See merge request espressif/esp-idf!21936
2023-01-29 19:00:19 +08:00
Jakob Hasse
a8b830ca92 Merge branch 'contrib/github_pr_10509' into 'master'
Make macro defined event base variables immutable (GitHub PR)

Closes IDFGH-9106

See merge request espressif/esp-idf!22032
2023-01-29 17:04:04 +08:00
jiangguangming
5edbd290a0 esp_rom: remove esp32h2.rom.rvfp.ld 2023-01-29 16:40:35 +08:00
jiangguangming
4731d4322e esp_rom: remove newlib-time.ld from ROM built with 64-bit time_t 2023-01-29 16:37:13 +08:00
Marius Vikhammer
43c899b2bd Merge branch 'bugfix/remove_undefined_rom_funcs' into 'master'
esp_rom:  cleanup unsupported functions

See merge request espressif/esp-idf!22041
2023-01-29 11:47:39 +08:00
morris
774a05399b soc: fix wrong APB_CLK_FREQ value on esp32c6 2023-01-28 06:33:23 +00:00
Alexey Lapshin
236fa5e669 Merge branch 'feature/upgrade-systemview-to-3_32' into 'master'
app_trace: sys_view: upgrade to version 3.42

Closes IDF-4646

See merge request espressif/esp-idf!21306
2023-01-28 11:24:13 +08:00
Lou Tianhao
a07c736d71 bugfix: make ahb freq consistent with cpu freq 2023-01-28 10:48:51 +08:00
Alexey Lapshin
18e5627a86 sys_view: upgrade to version 3.42 2023-01-27 22:22:33 +07:00
Abhik Roy
9cf70e0c98 Merge branch 'lwip/restrict_dhcp_server_client_together' into 'master'
esp-lwip: Restrict configuring DHCP server and client together

See merge request espressif/esp-idf!22137
2023-01-27 22:36:30 +08:00
Mahavir Jain
68a3bb295e Merge branch 'contrib/github_pr_10378' into 'master'
Stop WiFi provisioning in the esp_event thread instead of creating new thread (GitHub PR)

Closes IDFGH-8966

See merge request espressif/esp-idf!22104
2023-01-27 21:23:39 +08:00
Abhik Roy
b44f9d6b6f Merge branch 'lwip/esp_netif_def_iface' into 'master'
esp-lwip: Added API to return default esp-netif.

See merge request espressif/esp-idf!22124
2023-01-27 21:07:27 +08:00
Barabas Raffai
005196d86d
Clean up wifi provisioning in the esp_event thread
Signed-off-by: Laukik Hase <laukik.hase@espressif.com>
2023-01-27 15:39:08 +05:30
Abhik Roy
d762f9a1a5 esp-lwip: Added check in esp_netif_new() to restrict configuring DHCP
server and client together.
2023-01-26 20:59:04 +05:30
Guillaume Souchere
6382f28998 heap: Modify the memory type of the memory used as startup stack when memory protection is enabled
If memory protection is enabled on esp32c3 and esp32s3, we don't want to the heap component to see
the startup stack memory as D/IRAM but as DRAM only. Introduce a new type to make this possible in
the same fashion the regular D/IRAM regions are handled.
2023-01-26 10:52:34 +01:00
Guillaume Souchere
a26ecafa0d Merge branch 'fix/malloc_cap_exec_on_esp32c6' into 'master'
heap: Fix allocation issue when trying to allocate in IRAM on esp32c6

Closes IDF-6306

See merge request espressif/esp-idf!22077
2023-01-26 17:45:23 +08:00
Zim Kalinowski
47570993b4 Merge branch 'feature/heap-replace-bzero-call-with-memset' into 'master'
heap: replace usage of bzero() with memset() across the component

Closes IDFGH-3073

See merge request espressif/esp-idf!22125
2023-01-25 20:49:18 +08:00
gauri patankar
85de6f3f9a wpa_supplicant: Restore DEBUG_PRINT in supplicant 2023-01-25 16:57:44 +05:30
Kapil Gupta
de42b2912c Merge branch 'bugfix/update_wps_api_documentation' into 'master'
wpa_supplicant: Update WPS API documentation

Closes IDFGH-8996

See merge request espressif/esp-idf!21714
2023-01-25 18:52:51 +08:00
Guillaume Souchere
fb9a7f36d4 heap: replace usage of bzero() with memset() across the component
See https://github.com/espressif/esp-idf/issues/5095
2023-01-25 09:28:56 +01:00
Abhik Roy
7e81518a57 esp-lwip: Added API to expose default esp-netif. 2023-01-25 12:03:02 +05:30
Guillaume Souchere
11f99ef649 heap: Add memory protection activation test
Check that when trying to allocate in IRAM with the system memory protection enabled,
null pointer is returned, or that an address in IRAM is returned if the memory protection
is disabled.
2023-01-25 07:20:57 +01:00
Mahavir Jain
d825753387 Merge branch 'fix/mbedtls_null_pointer_dereference' into 'master'
mbedtls: fix null pointer dereference of variable iv_off

See merge request espressif/esp-idf!22122
2023-01-25 13:37:34 +08:00
KonstantinKondrashov
73d756d073 bootloader_support(esp32c2): Fix esp_secure_boot_cfg_verify_release_mode API
When FE and SB keys are set then:
- 128 low bits are read protected
- 128 hi bits are readable
2023-01-24 18:16:19 +08:00
harshal.patil
75899755b7 mbedtls: fix null pointer dereference of variable iv_off
iv_off gets dereferenced before being check for NULL
2023-01-24 12:20:00 +05:30
Alexey Lapshin
dd40877ab2 sys_view: upgrade to version 3.32 2023-01-24 00:26:58 +07:00
Guillaume Souchere
a5d6f62e7e heap: Prevent alloc from IRAM to call dram_alloc_to_iram() on esp32c6 target
Since DRAM and IRAM are superposed on esp32c6 it is not necessary to convert a freshly allocated
DRAM addr to its IRAM equivalent when MALLOC_CAP_EXEC is passed to heap_caps_malloc(). Instead,
proceed with a default allocation since the address returned by multi_heap_malloc() already belongs
to the IRAM region.

Applies for esp32c6 and every boards with superposed DRAM and IRAM addresses.
2023-01-23 07:42:20 +01:00
laokaiyao
3b450fb865 refactor soc CMakeLists 2023-01-20 22:07:50 +08:00
Mahavir Jain
e7ca2f2622 Merge branch 'feature/esp32c6_enable_hmac_and_ds_support' into 'master'
Feature/esp32c6 enable hmac and ds support

Closes IDF-5355 and IDF-5360

See merge request espressif/esp-idf!21761
2023-01-20 20:30:54 +08:00
Mahavir Jain
7943a920d3 Merge branch 'fix/protocomm_kconfig_flag' into 'master'
protocomm: Fix Kconfig flag dependency on wifi_provisioning component

Closes IDFGH-7925

See merge request espressif/esp-idf!22083
2023-01-20 17:10:31 +08:00
Ondrej Kosta
46c00b2478 Merge branch 'contrib/github_pr_10554' into 'master'
Verify w5500 chip properly (GitHub PR)

Closes IDFGH-9158

See merge request espressif/esp-idf!22073
2023-01-20 15:41:50 +08:00
Jiang Guang Ming
fe3e54eb70 Merge branch 'bugfix/esp_rom_wdt_linker_issue' into 'master'
esp_rom: fix esp_rom_wdt linker issue

See merge request espressif/esp-idf!22099
2023-01-20 14:59:03 +08:00
Martin Vychodil
a2b0068478 Merge branch 'bugfix/linux_build_errors' into 'master'
fix(linux): fix build errors without --skip-setting-flags

See merge request espressif/esp-idf!22063
2023-01-20 14:46:36 +08:00
Laukik Hase
7759079362
protocomm: Fix Kconfig dependency on wifi_provisioning component config
- `protocomm` depends on a config option `CONFIG_WIFI_PROV_BLE_FORCE_ENCRYPTION`
  from `wifi_provisioning`; however, a lower layer component (`protocomm`) should
  not have any `#ifdef` guard dependent on an upper layer component (`wifi_provisioning`).
- Added a new `ble_link_encryption` flag in `protocomm_ble_config_t` to manage the same

Closes https://github.com/espressif/esp-idf/issues/9443
2023-01-20 11:01:01 +05:30
jiangguangming
a14c2c298c esp_rom: fix esp_rom_wdt linker issue 2023-01-20 13:03:02 +08:00
Marius Vikhammer
e2d3f7c54c Merge branch 'feature/c6_wdt' into 'master'
wdt: add support for WDTs on C6

Closes IDF-5935 and IDF-5340

See merge request espressif/esp-idf!21038
2023-01-20 10:36:42 +08:00
Mahavir Jain
91c25b519c Merge branch 'fix/hardware_ecc_port' into 'master'
mbedtls/ecp: Fix incorrect ECP parameter value

Closes IDF-6706

See merge request espressif/esp-idf!22046
2023-01-19 22:14:46 +08:00
Darian
ac1c550c52 Merge branch 'bugfix/rmt_tx_synchronization_tests' into 'master'
driver(RMT): Fix RMT TX multi channel test

See merge request espressif/esp-idf!22051
2023-01-19 19:19:40 +08:00
Ondrej
5fdb49698a esp_eth: fixed copyright for W5500 2023-01-19 07:56:22 +00:00
Alexey Lapshin
0f97a24892 sdio_slave: fix strict aliasing violation for sdio_ringbuf_recv()
This happened because of passing sdio_slave_hal_send_desc_t** to function
sdio_ringbuf_recv() which is declared to have char** as input parameter
2023-01-19 13:21:27 +07:00
Marius Vikhammer
5e9e8c396f wdt: add support for WDTs on C6 2023-01-19 12:58:26 +08:00
Aditya Patwardhan
4084ab38a1
esp32c6/soc: Enable DS and HMAC capabilities for esp32c6 in soc_caps.h 2023-01-19 09:53:34 +05:30
Aditya Patwardhan
4831edc624
esp32c6/hal: Added support for HMAC and DS on esp32c6
* Update DS test_apps for esp32c6 SoC
2023-01-19 09:53:34 +05:30
Kevin (Lao Kaiyao)
668e125dd4 Merge branch 'feature/support_i2s_on_h2' into 'master'
i2s: support i2s on esp32h2

Closes IDF-6219 and IDF-6700

See merge request espressif/esp-idf!21948
2023-01-19 10:47:33 +08:00
Marius Vikhammer
0eda9b9215 esp-rom: remove unsupported ROM functions 2023-01-19 10:09:09 +08:00
Armando (Dou Yiwen)
8f82c5cdee Merge branch 'feature/adc_oneshot_api_calibrated_result' into 'master'
esp_adc: added an all-in-one API to get calibrated voltage

Closes IDF-6651

See merge request espressif/esp-idf!22055
2023-01-19 10:01:03 +08:00
Alexey Lapshin
af83cd60e1 Revert "sdio_slave: workaround the sdio_slave crash issue with release config + GCC11"
This reverts commit 19add3fb05.
2023-01-19 00:04:06 +07:00
Wan Lei
e7c520e849 Merge branch 'feature/add_spi_ckl_source_selectable' into 'master'
spi_master: add feature spi periph clk source selectable

Closes IDF-6289

See merge request espressif/esp-idf!21324
2023-01-19 00:54:24 +08:00
David Čermák
2f1d30d155 Merge branch 'bugfix/lwip_core_locking' into 'master'
esp_netif/lwip: Fix core-locking config

Closes IDFGH-8445, IDFGH-9098, and IDFGH-9063

See merge request espressif/esp-idf!20840
2023-01-18 20:31:25 +08:00
laokaiyao
c79187fdeb i2s: support i2s on esp32h2 2023-01-18 18:42:56 +08:00
Jiang Jiang Jian
43f5f3d56d Merge branch 'bugfix/coex_enable_disable_not_in_pairs' into 'master'
bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs

Closes BCI-317

See merge request espressif/esp-idf!21895
2023-01-18 17:01:02 +08:00
Sachin Parekh
d9ac69362a wpa_supplicant: Enable ECC test case 2023-01-18 14:25:53 +05:30
Sachin Parekh
b060179400 mbedtls/ecp: Fix incorrect ECP parameter value
- Add sanity checks in mbedtls port
- Add ECP test cases covering shorter scalar values
2023-01-18 14:24:57 +05:30
Jiang Jiang Jian
3636495d33 Merge branch 'bugfix/remove_redundant_debug_print' into 'master'
Remove redundant DEBUG_PRINT in supplicant

Closes IDFGH-9037

See merge request espressif/esp-idf!21857
2023-01-18 16:45:44 +08:00
Armando (Dou Yiwen)
9f3fd2802f Merge branch 'feature/sdio_slave_c6' into 'master'
sdio: c6 support

Closes IDF-5809

See merge request espressif/esp-idf!21486
2023-01-18 16:42:32 +08:00
Armando
c71c0996e3 esp_adc: added an all-in-one API to get calibrated voltage 2023-01-18 16:38:18 +08:00
Song Ruo Jing
9db3865cb7 Merge branch 'feature/esp32h2_gpio_support' into 'master'
gpio: Add support for esp32h2

Closes IDF-6227, IDF-6388, IDF-6403, and IDF-6676

See merge request espressif/esp-idf!21986
2023-01-18 16:24:13 +08:00
morris
7e7533d3a1 Merge branch 'feature/rmt_support_h2' into 'master'
rmt: support esp32h2

Closes IDF-6224, IDF-6672, and IDF-6690

See merge request espressif/esp-idf!21934
2023-01-18 16:15:00 +08:00
Darian Leung
1834d8ac39 driver(RMT): Fix RMT TX multi channel test
This commit multiple issues with the following RMT TX tests:

- rmt_multi_channels_trans_no_dma
- rmt_multi_channels_trans_with_dma

The following issues are fixed:

- Channel stop times are now tested using TEST_ASSERT_INT64_WITHIN(). The
previous method did not account for the case where channel 1 finished before
channel 0
- Increased synchronous stop time delta for esp32-c6
- Increased main task stack size to prevent stack overflow onesp32-s3
2023-01-18 16:09:47 +08:00
Chip Weinberger
a555563558 [Heap Trace Standalone] speed up sequential access 2023-01-18 08:48:28 +01:00
wanlei
184145817c spi_master: add feature spi periph clk source selectable 2023-01-18 15:40:12 +08:00
Marius Vikhammer
76613c8137 Merge branch 'feature/ulp_reliability_tests' into 'master'
ulp-riscv: add more test cases for deep sleep wakeup scenarios

Closes IDF-6466

See merge request espressif/esp-idf!22069
2023-01-18 14:32:58 +08:00
Ivan Grokhotkov
cef0744299 Merge branch 'bugfix/linux_target_gen_partition_table' into 'master'
multiple fixes for linux target

Closes IDF-6641

See merge request espressif/esp-idf!21993
2023-01-18 11:57:08 +08:00
Song Ruo Jing
4c8fdc31f9 gpio: Add support for esp32h2 2023-01-18 11:41:12 +08:00
morris
b589fff0af rmt: support esp32h2 2023-01-18 11:40:35 +08:00
Song Ruo Jing
dcf3fcaec6 lp_io: Enable esp32c6 lp_io unit tests 2023-01-18 11:23:52 +08:00
wanlei
b20c156ae6 spi_master: update spi performance test resulte for C6 2023-01-18 10:41:43 +08:00
Armando
d39f0310de sdio: split sdio ll version init, and hs_enable 2023-01-18 02:34:46 +00:00
Armando
f1de9faa71 sdio: c6 support 2023-01-18 02:34:46 +00:00
Armando
38551239fd essl: update essl component in driver test 2023-01-18 02:34:46 +00:00
Shu Chen
57d9cb5ef6 Merge branch 'bugfix/fix_uint32_timer_overflow' into 'master'
openthread: fix alarm timer overflow

See merge request espressif/esp-idf!22000
2023-01-18 10:23:12 +08:00
Jakob Hasse
9991862a10 fix(linux): fix build errors and warnings, remove ignore file 2023-01-18 09:24:28 +08:00
David Cermak
a71fa82177 esp_netif/lwip: Fix core-locking config
* Fix thread safety issues in non-core locking
* Add option to verify thread safety issues in lwip (core-lock assertion)
* Make esp_sntp.h thread safe API
* Fix sntp examples
* Fix openthread libs

Closes https://github.com/espressif/esp-idf/issues/9908
Closes https://github.com/espressif/esp-idf/issues/10502
Closes https://github.com/espressif/esp-idf/issues/10466
2023-01-17 16:15:58 +01:00
lvshisheng
d1230c7d9e esp32c6: add md5check, txop limit and sync header, update esp32c6 sdkconfig and itwt example 2023-01-17 20:51:51 +08:00
Kevin (Lao Kaiyao)
87ae8f8762 Merge branch 'bugfix/pcnt_sdm_test_on_h2' into 'master'
fix pcnt sdm pre-commit failure

See merge request espressif/esp-idf!22067
2023-01-17 20:40:36 +08:00
Aditya Patwardhan
634e408ca4 Merge branch 'fix/mbedtls_port_sanity_checks_and_return_values' into 'master'
mbedtls/port: refactor sanity checks and their return values

Closes IDF-3810

See merge request espressif/esp-idf!21987
2023-01-17 19:21:52 +08:00
Reinis Muiznieks
bb2f346e55 Verify w5500 chip properly 2023-01-17 11:52:51 +02:00
Island
2dc96f9a27 Merge branch 'feature/esp32c6_enable_pcl_feature' into 'master'
Enabled PCL feature on ESP32C6

Closes IDF-6529

See merge request espressif/esp-idf!21903
2023-01-17 17:35:04 +08:00
morris
d9825f5165 Merge branch 'feature/add_clk_tree_get_frequency_api' into 'master'
clk_tree: Stage 4 - Add a general API to get the frequency of different clocks

Closes IDF-6569

See merge request espressif/esp-idf!21830
2023-01-17 17:08:23 +08:00
Marius Vikhammer
8aaecb9b28 ulp-riscv: add more wakeup test cases 2023-01-17 16:41:48 +08:00
Kevin (Lao Kaiyao)
5d61788032 Merge branch 'bugfix/i2s_fix_incorrect_sclk_in_legacy_driver' into 'master'
i2s: fix incorrect sclk in legacy driver

See merge request espressif/esp-idf!21997
2023-01-17 15:34:06 +08:00
laokaiyao
58bde0f665 fix pcnt sdm pre-commit failure 2023-01-17 15:28:27 +08:00
C.S.M
01913f6d01 Merge branch 'feature/esp32h2_build_test' into 'master'
ESP32H2 (CI): enable CI build stage test on esp32h2

Closes IDF-6263 and IDF-6264

See merge request espressif/esp-idf!21954
2023-01-17 13:28:11 +08:00
Kevin (Lao Kaiyao)
c5af31fa19 Merge branch 'feature/support_pcnt_on_h2' into 'master'
pcnt: support pcnt on esp32h2

Closes IDF-6221 and IDF-6669

See merge request espressif/esp-idf!21950
2023-01-17 12:20:00 +08:00
Kevin (Lao Kaiyao)
235b1163af Merge branch 'feature/support_sdm_on_h2' into 'master'
sdm: support sdm on esp32h2

Closes IDF-6220 and IDF-6699

See merge request espressif/esp-idf!21955
2023-01-17 12:16:23 +08:00
Marius Vikhammer
70d1dbccd8 Merge branch 'docs/enable_h2_build' into 'master'
docs: add support for building H2 docs

Closes IDF-6259

See merge request espressif/esp-idf!21933
2023-01-17 12:11:29 +08:00
laokaiyao
3908f4c84d i2s_test: fix output half sample rate failure 2023-01-17 11:37:22 +08:00
laokaiyao
c25fc7d242 i2s: fix incorrect sclk in legacy driver 2023-01-17 11:34:25 +08:00
Song Ruo Jing
4bd36e6576 clk_tree: Update clock tree programming guide for esp32c6 2023-01-17 11:30:43 +08:00
Song Ruo Jing
c7c2462d39 system: Add complete support for disabling ROM logging by calling esp_deep_sleep_disable_rom_logging on C2, C3, and S3 2023-01-17 11:30:43 +08:00
Song Ruo Jing
2c9aa4559c clk_tree: Add a general API to get the frequency of different clocks
Add basic clk_tree driver and hal implementation.
2023-01-17 11:30:24 +08:00
Cao Sen Miao
94120b82c2 esp32h2: add build test 2023-01-17 10:29:04 +08:00
Marius Vikhammer
7100b7d1ff docs: add support for building H2 docs 2023-01-17 10:04:26 +08:00
harshal.patil
5ee1e97e6f mbedtls: added a test of different auth-tag lengths in AES-GCM 2023-01-16 15:04:08 +05:30
harshal.patil
270ff95022 mbedtls/port: refactor sanity checks and their return values
Refactored and returned correct error codes for sanity checks
present in port layer esp_aes.c and esp_aes_gcm.c
2023-01-16 15:04:08 +05:30
harshal.patil
9a47f8a066 mbedtls/port: added stream_block parameter sanity check 2023-01-16 15:04:08 +05:30
Fu Hanxi
9e24739228 Merge branch 'ci/linux_host_test_with_pytest' into 'master'
CI: Linux host test with pytest

Closes IDFCI-1571

See merge request espressif/esp-idf!21907
2023-01-16 16:22:44 +08:00
Shu Chen
46a1165da1 Merge branch 'feature/add_support_for_c6_br' into 'master'
openthread:  enable br for esp32c2 and esp32c6

See merge request espressif/esp-idf!21935
2023-01-16 15:39:53 +08:00
Island
1157657664 Merge branch 'feature/modify_bt_sdkconfig_to_support_bluedroid_on_esp32c6' into 'master'
modify bt sdkconfig to support bluedroid examples for esp32c6

Closes IDF-6525 and BT-3113

See merge request espressif/esp-idf!21928
2023-01-16 15:32:53 +08:00
zhangwenxu
4fc1035fd8 openthread: fix alarm timer overflow 2023-01-16 13:39:11 +08:00
zwl
38c5f239be Enabled PCL feature on ESP32C6 BT Controller 2023-01-16 12:28:44 +08:00
Fu Hanxi
b02687a6c4 test: migrate linux target host test jobs into pytest-embedded 2023-01-16 10:25:55 +08:00
David Čermák
a786676d8d Merge branch 'bugfix/esp_netif_ppp_set_dns' into 'master'
esp_netif: Allow set_dns_info() for PPP netifs

Closes IDFGH-7031

See merge request espressif/esp-idf!21863
2023-01-14 04:47:08 +08:00
morris
bcc307cf7b Merge branch 'feature/rmt_no_light_sleep_lock' into 'master'
rmt: avoid auto light sleep when use xtal as the clock source

See merge request espressif/esp-idf!21831
2023-01-14 00:08:55 +08:00
Mahavir Jain
c0c2e3a73a Merge branch 'fix/esp_local_ctrl_header_incl' into 'master'
esp_local_ctrl: Fix header inclusion

See merge request espressif/esp-idf!22033
2023-01-13 23:47:55 +08:00
Jiang Jiang Jian
def5db1990 Merge branch 'bugfix/clear_pmk_cache_for_missing_reason_codes_master' into 'master'
Fix missing disconnected callback

See merge request espressif/esp-idf!22043
2023-01-13 23:34:16 +08:00
Shu Chen
210abd52b6 Merge branch 'bugfix/ot_cli_disbale_error' into 'master'
openthread: fix compile errors when disabling openthread cli

See merge request espressif/esp-idf!22001
2023-01-13 22:12:54 +08:00
Wang Qixiang
6d9634ca34 openthread: fix compile errors when disabling openthread cli 2023-01-13 22:12:54 +08:00
Xu Si Yu
e38d20849e openthread: enable br for esp32c2 and esp32c6 2023-01-13 19:56:06 +08:00
Chip Weinberger
26a5117870 [Heap Trace Standalone] fix terrible Leaks perf on large records by using doubly linked list 2023-01-13 11:43:09 +01:00
David Cermak
d16c422b11 esp_netif: Allow set_dns_info() for PPP netifs
esp_netif_set_dns_info() was available only for standard interfaces, not
for Point to point types (PPP, SLIP), but it should be normally
supported. Moreover DNS servers are global in lwip, so it doesn't really
depend on type of the interface.

Also added some minor fixes to the esp_netif_get_dns_info() to allow for
NULL parameters (as it's a public API) and hardcode the IPv4 type in
case of DHCP server capable interface.

Updated logs and added error checks to the original API, before we
launch the lwIP counterpart.

Closes https://github.com/espressif/esp-idf/issues/8648
2023-01-13 10:31:28 +00:00
laokaiyao
482a26e284 sdm: support sdm on esp32h2 2023-01-13 16:55:51 +08:00
laokaiyao
2730186561 pcnt: support pcnt on esp32h2 2023-01-13 16:11:50 +08:00
Zhi Wei Jian
a8f66c66e0 Merge branch 'feature/support_get_dev_name_for_bt' into 'master'
Bluedroid: support get bluetooth device name

Closes BT-3019

See merge request espressif/esp-idf!21876
2023-01-13 16:07:16 +08:00
Harshit Malpani
a1e9a87e69 Merge branch 'bugfix/fix_ESP_LOG_to_debug' into 'master'
esp_http_client: fix debug log from LOGI to LOGD

Closes IDFGH-8892

See merge request espressif/esp-idf!22011
2023-01-13 15:51:23 +08:00
Ivan Grokhotkov
e7540dbe0e
docs: remove the outdated "IDF monitor doesn't work on linux" notes 2023-01-13 08:14:56 +01:00
Ivan Grokhotkov
ec8f38c9da
build system: generate the partition table by default for linux target
This fixes the issue that "idf.py partition-table" had to be run
manually in order for the partition table to be generated, when
building for linux target.
2023-01-13 08:14:56 +01:00
Shyamal Khachane
64ca03d396 esp_wifi: Fix missing disconnected callback 2023-01-13 12:44:46 +05:30
Mahavir Jain
fd34bdb70a Merge branch 'feature/secure_features_are_enabled_correctly' into 'master'
security: Adds new APIs to check that all eFuse security features are enabled correctly

Closes IDF-1814

See merge request espressif/esp-idf!19532
2023-01-13 15:09:55 +08:00
Shen Weilong
45aaeda1e3 modify bt sdkconfig to support bluedroid examples for esp32c6 2023-01-13 15:05:34 +08:00
Chen Yu Dong
db9586c53f Merge branch 'feature/enable_build_wifi_examples_esp32c6' into 'master'
examples: enable build esp32c2/esp32c6 for wifi and network examples

See merge request espressif/esp-idf!21970
2023-01-13 13:58:21 +08:00
chenjianhua
708ca0181c bluedroid: support get bluetooth device name 2023-01-13 10:39:57 +08:00
morris
b1ff550f69 Merge branch 'feature/driver_support_esp32c6_gptimer_etc' into 'master'
gptimer: support esp32h2

Closes IDF-6242

See merge request espressif/esp-idf!21925
2023-01-13 08:23:33 +08:00
Martin Vychodil
1da27eb6fe Merge branch 'feature/storage_esp_partition_linux' into 'master'
esp_partition: added missing functions for linux target

See merge request espressif/esp-idf!21762
2023-01-13 02:04:54 +08:00
morris
ce84476870 gptimer: support esp32h2 2023-01-12 14:10:11 +00:00
Mahavir Jain
1a8a06775d Merge branch 'bugfix/fix_coverity_issue_in_esp_http_client' into 'master'
esp_http_client: free `auth_str` before going out of scope

See merge request espressif/esp-idf!22014
2023-01-12 21:09:20 +08:00
Armando (Dou Yiwen)
d1b8da74d8 Merge branch 'refactor/improve_adc_power_maintanance' into 'master'
adc: improve adc power maintanance

Closes IDF-6114 and IDF-6318

See merge request espressif/esp-idf!21151
2023-01-12 20:30:36 +08:00
Laukik Hase
4f67662cab Merge branch 'feature/mbedtls-3.3.0' into 'master'
mbedtls: Update to v3.3.0

Closes IDF-6536

See merge request espressif/esp-idf!21897
2023-01-12 19:38:51 +08:00
Laukik Hase
e7efda4709
esp_local_ctrl: Fix header inclusion
- Included `sdkconfig.h` and HTTP/S server based headers
  explicitly
2023-01-12 16:16:45 +05:30
Luke Dennis
b4d904f8f0 Make macro defined event base variables immutable and update license 2023-01-12 18:07:00 +11:00
lvshisheng
f4ff1b577b header: update he_types.h 2023-01-12 14:50:11 +08:00
morris
c83d1db2ed Merge branch 'feature/mcpwm_cap_not_reset_io_at_exit' into 'master'
mcpwm: support not reset GPIO config at exit

Closes IDFGH-8916

See merge request espressif/esp-idf!21568
2023-01-12 13:20:47 +08:00
Mahavir Jain
d8af04234c Merge branch 'update/update_certs_bundle' into 'master'
Update esp_crt_bundle certificates

See merge request espressif/esp-idf!21996
2023-01-12 12:58:36 +08:00
Armando (Dou Yiwen)
297c7852a5 Merge branch 'bugfix/fix_adc_channel_h_not_aligned_to_ng_driver_issue' into 'master'
adc: make adc_channel.h macros work with ng driver

Closes IDFGH-9105

See merge request espressif/esp-idf!21946
2023-01-12 11:07:20 +08:00
morris
f7c3d791a2 Merge branch 'feature/systimer_support_esp32h2' into 'master'
systimer: assign counter and alarm in esp_hw_support

Closes IDF-6484, IDF-5323, and IDF-6230

See merge request espressif/esp-idf!21984
2023-01-12 11:01:17 +08:00
morris
8d3172d1fb Merge branch 'bugfix/fix_build_of_esp32h4beta1' into 'master'
soc: add a header file to fix the bug of esp32h4beta1 build

See merge request espressif/esp-idf!21999
2023-01-12 00:57:58 +08:00
Adam Múdry
204f4207ec Merge branch 'feature/ext_flash_yield_on_erase' into 'master'
Yield functionality for external flash, mask esp_flash_erase_chip with esp_flash_erase_sector

Closes IDFGH-7665, IDFGH-8487, and IDFGH-6479

See merge request espressif/esp-idf!19205
2023-01-11 20:16:05 +08:00
Xu Si Yu
d17ecbcf5d soc: add a header file to fix the bug of esp32h4beta1 build 2023-01-11 11:46:05 +00:00
Harshit Malpani
3152fba654
esp_http_client: fix coverity issue. free auth_str before going out of scope 2023-01-11 16:57:04 +05:30
Harshit Malpani
6e92edd848
esp_http_client: fix debug log from LOGI to LOGD
Closes https://github.com/espressif/esp-idf/issues/10313
2023-01-11 15:55:52 +05:30
Konstantin Kondrashov
1d2469fbd1 Merge branch 'feature/ipc_uses_tasknotify' into 'master'
esp_ipc: ipc_task uses TaskNotify instead of Semaphore

Closes IDFGH-8795

See merge request espressif/esp-idf!21347
2023-01-11 15:56:29 +08:00
morris
1f3507eac0 Merge branch 'feature/gdma_support_h2' into 'master'
gdma: support esp32h2

Closes IDF-6222 and IDF-6238

See merge request espressif/esp-idf!21932
2023-01-11 14:04:14 +08:00
Chip Weinberger
8b2b430d68 [Heap Trace Standalone] fix terrible Leaks perf on large records by using doubly linked list 2023-01-10 21:01:11 -08:00
C.S.M
e96e7ecbee Merge branch 'bugfix/fix_bunch_of_i2c_issues' into 'master'
I2C: Fix bunch of small issues

Closes IDFGH-8722 and IDFGH-8310

See merge request espressif/esp-idf!21891
2023-01-11 11:02:53 +08:00
Espressif BOT
35cd5ee57b Update esp_crt_bundle certificates 2023-01-11 10:00:31 +08:00
Jiang Jiang Jian
a6f7035c8c Merge branch 'feature/example_deep_sleep_wake_stub' into 'master'
make wake stub worked on ESP32/S2/C3/S3

Closes IDFGH-6564

See merge request espressif/esp-idf!17952
2023-01-10 23:40:10 +08:00
KonstantinKondrashov
df662c30e4 bootloader_support(esp32c2): Fix WR_DIS_RD_DIS burn for secure boot key
SB key is left readable, the corresponding bit in RD_DIS is unset.
We set write-protection for RD_DIS to ensure that the SB key is always readable.
2023-01-10 23:35:13 +08:00
KonstantinKondrashov
696f7495a0 security: Adds new APIs to check that all eFuse security features are enabled correctly 2023-01-10 23:35:13 +08:00
Darian
20f0afd684 Merge branch 'feature/esp_pm_unit_test_migration' into 'master'
esp_pm: Migrate unit tests to test app

Closes IDF-5581

See merge request espressif/esp-idf!21229
2023-01-10 21:35:43 +08:00
Zhi Wei Jian
c176e5e0ec Merge branch 'bugfix/fix_blufi_frag_pkt_vulnerability' into 'master'
Fixed vulnerability attacks that could cause heap overflow in fragmented Blufi packet processing

Closes BT-3106

See merge request espressif/esp-idf!21819
2023-01-10 21:13:01 +08:00
radek.tandler
9e191bad52 esp_partition/linux target: Add functions supporting host tests
Added statistics and wear simulation functions to support migration of
remaining storage related host tests from fixture to linux implementation
of esp_partition.
2023-01-10 14:10:14 +01:00
chenjianhua
175be1c42c bluedroid: support ble privacy by controller 2023-01-10 18:50:11 +08:00
morris
6c1d98d556 systimer: assign counter and alarm in esp_hw_support 2023-01-10 17:05:49 +08:00
jiangguangming
a367ab4b76 ld: fix rtc.data rtc.bss section issues
1. rtc.data section: should include sbss srodata in rtc_wake_stub*.*
2. rtc.bss section: move rtc .bss .bss.* from rtc.data to rtc.bss
2023-01-10 17:03:54 +08:00
jiangguangming
f74a43d002 use LL function to get wakeup cause 2023-01-10 17:03:54 +08:00
jiangguangming
4b4491e736 rtc_time.c: simplify the rtc_time_get with LL function 2023-01-10 17:03:54 +08:00
jiangguangming
51ec91c637 add example deep sleep wake stub 2023-01-10 17:03:50 +08:00
morris
3681dee80e gdma: support esp32h2 2023-01-10 16:37:02 +08:00
morris
d0b7f3214a gdma: correct the dma trigger of uart
GDMA trigger actually is not assigned to UART controller, but for UHCI
controller
2023-01-10 16:37:01 +08:00
morris
cbde82c33f apm: added low level functions for tee controller 2023-01-10 16:37:01 +08:00
morris
f7fdba7f39 apm: disable permission control temporarily for esp32h2
Access Protection Mode is not yet configured globally, disable the APM
functionality temporarily for esp32h2 and esp32c6
2023-01-10 16:37:01 +08:00
Zim Kalinowski
7aabacbcfc Merge branch 'refactor/posix_linux_sim_docs_code_format' into 'master'
[freertos/linux]: improved docs and coding style in non-SMP code

See merge request espressif/esp-idf!21832
2023-01-10 16:32:15 +08:00
jiangguangming
cceccb4ed9 hal: add rtc_cntl LL function for wake stub 2023-01-10 16:09:49 +08:00
Krzysztof Budzynski
738600d839 Merge branch 'docs/update_gpio_hold_en_description' into 'master'
docs: update description of gpio_hold_en()

See merge request espressif/esp-idf!21834
2023-01-10 15:50:05 +08:00
Darian Leung
412b09abf4 esp_pm: Migrate unit tests to test app
This commit migrates the esp_pm unit tests from the legacy unit test to a
stand alone test app. The following CI configurations are provided

- Default: Automatic light sleep with mostly default configurations
- Options: Enables all of the optional esp_pm features
- Limits: Limit tests esp_pm
2023-01-10 15:43:33 +08:00
C.S.M
faac178784 Merge branch 'feature/brownout_bringup_c6' into 'master'
BOD: Bringup for ESP32C6

Closes IDF-5345

See merge request espressif/esp-idf!21888
2023-01-10 14:42:43 +08:00