Commit Graph

27876 Commits

Author SHA1 Message Date
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
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
David Čermák
ceef29a270 Merge branch 'bugfix/ci_sntp_test_flaky' into 'master'
lwip/test: Fixed flaky SNTP example test

Closes IDFCI-1597

See merge request espressif/esp-idf!22186
2023-02-01 20:00:42 +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
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
David Cermak
7294438329 sntp/test: Fixed flaky example test
From SNTP update in a71fa821, the example test uses notification event
(before it simply polled the state in 2 seconds interval). With this
change it is possible that the time gets synchronized before retrying,
i.e. printing "Waiting for system time to be set... (2/15)". (it was
theoretically possible also before this change, but practically never
happened)
2023-02-01 08:01:54 +01:00
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
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
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
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
Ondrej Kosta
5da702bab3 Merge branch 'feature/iperf_pytest_migration' into 'master'
iperf pytest migration

Closes IDFCI-1143

See merge request espressif/esp-idf!21726
2023-01-31 18:04:59 +08:00
Mahavir Jain
d193521eb8 Merge branch 'example/remove_cbor_example' into 'master'
example: remove CBOR example from IDF.

See merge request espressif/esp-idf!22164
2023-01-31 17:16:23 +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
David Cermak
5d04ebab51 examples: Update socket udp_client to support lwip on linux
This uses FreeRTOS simulator and lwip on linux, with options
to use tap-io commponent for host network interactions.
2023-01-31 08:43:50 +01:00
David Cermak
854e16feb3 examples: Add common linux component tapif_io
That can be used with linux target on lwip to pass packets from lwip to
linux host networking stack, e.g. routing the trafic to internet.
2023-01-31 08:43:50 +01: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
Jiang Jiang Jian
1195b6cb2b Merge branch 'docs/add_some_details_for_wifi_scan_description' into 'master'
Docs/add some details for wifi scan description

Closes DOC-4179 and IDFGH-8980

See merge request espressif/esp-idf!21589
2023-01-31 13:56:09 +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
Marius Vikhammer
4c4a0a9427 Merge branch 'docs/fatal_errors_c6_h2' into 'master'
docs: update misc system docs for C6/H2

Closes IDF-5920, IDF-6692, IDF-5928, IDF-6684, IDF-5927, and IDF-6685

See merge request espressif/esp-idf!22105
2023-01-31 09:57:50 +08:00