Commit Graph

29414 Commits

Author SHA1 Message Date
Darian Leung
6587e75251 xtensa: Add bare metal port stub functions for G0 build test
This commit adds "bare metal stubs" xtensa_rtos.h glue layer to mimic a bare
metal OS port. The bare metal stubs don't access any components outside of the
G0 group.
2023-04-18 15:51:38 +08:00
Darian Leung
5fde889a3d xtensa: Remove OS agnostic files from Amazon SMP FreeRTOS port
The previous commit moved the OS agnostic files from the IDF FreeRTOS port to
the xtensa component, thus can be accessed by both IDF and Amazon SMP FreeRTOS.

This commit removes the redudant copies in the Amazon SMP FreeRTOS port.
2023-04-18 15:51:38 +08:00
Darian Leung
b2c074bb70 xtensa: Move Xtensa RTOS porting layer files to xtensa component
When porting an RTOS to the Xtensa architecture, there are a few files that
are common to all Xtensa RTOS ports. These files form the Xtensa RTOS porting
layer (e.g., "xtensa_vectors.S", "xtensa_context.S"). An Xtensa RTOS port is
expected to provide an RTOS specific "xtensa_rtos.h" header to interface with
the Xtensa RTOS porting layer.

Previously, the Xtensa RTOS porting layer files were placed in the FreeRTOS
component. This commit does the following:

1. Moves the Xtensa RTOS porting layer files from the `freertos` component to
the `xtensa` component. The following files were moved:

    - xtensa_asm_utils.h
    - xtensa_context.S
    - xtensa_loadstore_handler.S
    - xtensa_vectors.S

2. Refactored xtensa component include paths to separate Xtensa RTOS porting
layer headers.

- Xtensa HAL headers included via `#include <xtensa/...h>`
- Xtensa RTOS porting layer headers included via `#include <...h>`

Note: The xtensa files in the Amazon SMP FreeRTOS port are not moved/deleted in
this commit to ensure the moved files retain a clean diff history.
2023-04-18 15:28:05 +08:00
Zhang Xiao Yan
d98d168cd2 Merge branch 'docs/fix_typo_in_api-reference_system_ota' into 'master'
fix a typo in api-reference/system/ota

See merge request espressif/esp-idf!23212
2023-04-18 14:01:42 +08:00
Song Ruo Jing
9cfc9757b9 Merge branch 'bugfix/allow_no_specify_uart_clk_src' into 'master'
uart: Allow omitting source_clk parameter to uart_param_config

Closes IDF-6951

See merge request espressif/esp-idf!23208
2023-04-18 11:34:11 +08:00
Zim Kalinowski
a4cf0e24ac Merge branch 'feature/s2_ulp_riscv_adc' into 'master'
ulp-riscv: enable ULP-RISCV ADC example for esp32s2

Closes IDFGH-9716 and IDFGH-9700

See merge request espressif/esp-idf!23137
2023-04-18 02:31:35 +08:00
Mahavir Jain
6773ad6431 Merge branch 'fix/esp32s3_ununsed_dcache_as_dram' into 'master'
esp_hw_support: Update the memory ptr location/property checks to include the unused DCACHE added to DRAM

Closes IDF-7103

See merge request espressif/esp-idf!22904
2023-04-18 02:16:30 +08:00
morris
90c2786803 Merge branch 'bugfix/rmt_encode_state_init' into 'master'
rmt: define RMT_ENCODING_RESET in rmt_encode_state_t

Closes IDFGH-9881 and IDFGH-9882

See merge request espressif/esp-idf!23222
2023-04-17 21:22:20 +08:00
Kevin (Lao Kaiyao)
96f2d215a2 Merge branch 'bugfix/i2s_output_wrong_freq_after_switch' into 'master'
i2s: workaround for inaccurate PLL frequency after switching

Closes IDF-6705 and IDFCI-1669

See merge request espressif/esp-idf!22975
2023-04-17 16:26:18 +08:00
morris
2a5ee5c3e2 Merge branch 'bugfix/spi_lcd_max_trans_size' into 'master'
spi_lcd: maximum transfer size should respect bus configuration

Closes IDF-6901 and IDF-4829

See merge request espressif/esp-idf!23149
2023-04-17 16:13:57 +08:00
Song Ruo Jing
3f2bed1f5c uart: Allow the users to not specify the source_clk in uart_config_t when calling uart_param_config 2023-04-17 15:43:06 +08:00
Wan Lei
029b56dc1c Merge branch 'ci/pytest_case_tester_script_fix' into 'master'
ci: pytest automation script increase timeout time

See merge request espressif/esp-idf!23201
2023-04-17 15:03:23 +08:00
Omar Chebib
3bc3f87209 Merge branch 'bugfix/i2c_timing_wrong' into 'master'
i2c: fix a bug in sda sample timing

Closes IDFGH-8295

See merge request espressif/esp-idf!23185
2023-04-17 15:00:42 +08:00
morris
b19a3e3e56 rmt: define RMT_ENCODING_RESET in rmt_encode_state_t
Closes https://github.com/espressif/esp-idf/issues/11200
2023-04-17 14:50:51 +08:00
Laukik Hase
11d5550da3
soc/esp32s3: Fix the SOC_MEM_INTERNAL_HIGH value
- As per the memory block diagram for ESP32-S3, the
  internal memory address ranges as follows:
  DRAM: 0x3FC88000 (== SOC_MEM_INTERNAL_LOW) <-> 0x3FCF0000
  IRAM: 0x40378000 <-> 0x403E0000 (== SOC_MEM_INTERNAL_HIGH)
2023-04-17 10:49:06 +05:30
Laukik Hase
f6aadd1e39
esp_hw_support: Update memory ptr location/property checks
- to acknowledge the unused DCACHE added to DRAM for ESP32-S3

- For ESP32-S3, when the DCACHE size is set to 16 kB, the unused 48 kB is added to
  the heap in 2 blocks of 32 kB (from 0x3FCF0000) and 16 kB (from 0x3C000000).
- But, if we try allocating memory from the 16 kB block and run an `esp_ptr_internal`
  check on that memory pointer, it fails as the address block from 0x3C000000
  corresponds to the external memory symbols SOC_DROM_LOW and SOC_EXTRAM_DATA_LOW.
  (E.g. freertos - If the IDLE task stack buffer gets allocated from this region,
  the firmware will abort due to this failure).
- Thus, the checks `esp_ptr_internal`, `esp_ptr_in_drom` and `esp_ptr_byte_accessible`
  have been updated to acknowledge this memory as a part of the DRAM.

Co-authored-by: Mahavir Jain <mahavir@espressif.com>
2023-04-17 10:42:04 +05:30
Armando (Dou Yiwen)
ef64e4e5b3 Merge branch 'feature/emmc_example' into 'master'
SDMMC Host: added an example to communicate with an eMMC chip

Closes IDF-7157, IDF-4739, and IDFGH-6901

See merge request espressif/esp-idf!21760
2023-04-17 11:53:55 +08:00
Marius Vikhammer
6acd082cc8 Merge branch 'docs/iram_sram_config' into 'master'
docs: update CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM docs to better reflect the limitations

See merge request espressif/esp-idf!23158
2023-04-17 11:51:05 +08:00
laokaiyao
a143a85822 i2s: workaround for inacurate PLL frequency after switching 2023-04-17 03:15:55 +00:00
Zhi Wei Jian
bc216802c6 Merge branch 'bugfix/fix_bleqabr23_98' into 'master'
Bluedroid: fix GATTC cache address saving

Closes BLEQABR23-98 and BLEQABR23-34

See merge request espressif/esp-idf!22970
2023-04-17 10:54:31 +08:00
Zhi Wei Jian
e58e271230 Merge branch 'bugfix/fix_bleqabr23_137' into 'master'
Fixed non-connectable and non-scannable directed adv can't be scanned

See merge request espressif/esp-idf!23198
2023-04-17 10:52:11 +08:00
wanlei
ad1ba78129 sdio: test_sdio add unity sync signals 2023-04-17 10:51:46 +08:00
Mahavir Jain
225be9a6ce Merge branch 'feature/esp_tls_add_getter_setter' into 'master'
esp-tls: Added getter/setter function for the conn_state.

Closes IDFGH-9514

See merge request espressif/esp-idf!23128
2023-04-16 22:15:28 +08:00
Anton Maklakov
b7abcb52b6 Merge branch 'ci/create_esp-dockerfile_MR_after_tools.json_updated' into 'master'
CI: created job and script for creating MR to esp-dockerfiles, added script execution to CI pipeline

Closes IDFCI-1445

See merge request espressif/esp-idf!21348
2023-04-15 01:40:05 +08:00
Ondrej Kosta
34850de22b Merge branch 'bugfix/eth_l2_test_switch' into 'master'
LAN8720 & IP101 L2 Test Fix

Closes IDFCI-1624 and IDFCI-1567

See merge request espressif/esp-idf!22907
2023-04-14 20:53:08 +08:00
Jiang Jiang Jian
c47d83cbcc Merge branch 'fix/update_codeowner_for_common_components' into 'master'
codeowner: update codeowner for common components

See merge request espressif/esp-idf!23066
2023-04-14 19:30:48 +08:00
Daniel Paul
b987b34829 CI: created script for creating MR to esp-dockerfiles, added script execution to CI pipeline 2023-04-14 13:29:08 +02:00
Armando
920ecff168 sdmmc: in/out phase adapted to esp32 and esp32s3 2023-04-14 18:18:54 +08:00
Ivan Grokhotkov
e9badf51c7 sdmmc: I/O phase adjustments
1. Fix incorrect meaning of SDMMC.clock bits, synchronize the names
   with the TRM.
2. Choose input and output phases to satisfy typical timing
   requirements.
3. Move use_hold_reg setting into the host driver, since it is related
   to timing.

Closes https://github.com/espressif/esp-idf/issues/8521
Related to https://github.com/espressif/esp-idf/issues/8257
2023-04-14 18:18:54 +08:00
Armando
ad46b43c2c sdmmc: add an example communicating with eMMC chip on S3 2023-04-14 18:18:54 +08:00
Linda
528bc7b35a fix a typo in api-reference/system/ota 2023-04-14 17:21:36 +08:00
morris
c49c165bca Merge branch 'bugfix/lcd_align_before_cache_write_back' into 'master'
manually align the color buffer before cache write back

See merge request espressif/esp-idf!23143
2023-04-14 16:36:19 +08:00
C.S.M
247cc7dd87 Merge branch 'feature/cache_32M_map' into 'master'
spi_flash: 32M bits address flash cache map

Closes IDF-7119 and IDF-4693

See merge request espressif/esp-idf!23021
2023-04-14 16:01:25 +08:00
chenjianhua
056ae5dd21 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed non-connectable and non-scannable directed adv can't be scanned
2023-04-14 15:44:17 +08:00
Kevin (Lao Kaiyao)
d635fc0f32 Merge branch 'bugfix/i2s_tdm_multi_dev_on_h2' into 'master'
i2s: fixed tdm multi dev test on h2

See merge request espressif/esp-idf!23054
2023-04-14 15:02:31 +08:00
Wu Zheng Hui
98849634b3 Merge branch 'bugfix/fix_wrong_frame_ptr_after_wake_restore' into 'master'
bugfix: fix wrong RvCoreCriticalSleepFrame ptr value after wake restore

See merge request espressif/esp-idf!23113
2023-04-14 13:22:24 +08:00
wanlei
c34ea9cef6 ci: pytest automation script increase timeout time 2023-04-14 12:03:38 +08:00
Mahavir Jain
6da2eb97fa Merge branch 'contrib/github_pr_11116' into 'master'
nvs_host_test: replace sprintf with snprintf (GitHub PR)

Closes IDFGH-9781

See merge request espressif/esp-idf!23173
2023-04-14 11:56:29 +08:00
Cao Sen Miao
db4375e9e6 docs: Add more content about 32bits address flash usage 2023-04-14 11:39:12 +08:00
Cao Sen Miao
c7053641bc spi_flash: 32M bits address flash map, (for customer use only) 2023-04-14 11:37:09 +08:00
Aditya Patwardhan
2dd280f126
esp-tls: Added getter/setter function for the conn_state.
* Added the setter function to set the connection sockfd value
Closes https://github.com/espressif/esp-idf/issues/10871
2023-04-13 20:03:50 +05:30
Jiang Jiang Jian
7da760dbd3 Merge branch 'bugfix/install_keys_after_successful_4_of_4_tx' into 'master'
esp_wifi: Install keys after successful transmission of EAPOL 4/4 Message

Closes WIFI-5678

See merge request espressif/esp-idf!23141
2023-04-13 19:02:20 +08:00
Sonika Rathi
248dadc8c8 Merge branch 'docs/descrive-approach-fatfstools' into 'master'
docs: Describe the approach of fatfsgen.py and fatfsparse.py

Closes IDF-4755

See merge request espressif/esp-idf!19978
2023-04-13 18:48:51 +08:00
Ondrej Kosta
066abb062d Merge branch 'feature/example_br_test' into 'master'
examples: added Ethernet bridge test

See merge request espressif/esp-idf!22558
2023-04-13 15:11:34 +08:00
Ondrej Kosta
6ed31a98bd Merge branch 'bugfix/eth_driver_cleanup' into 'master'
Ethernet driver and documentation clean-up

Closes IDF-6339

See merge request espressif/esp-idf!23051
2023-04-13 15:07:43 +08:00
Guillaume Souchere
48932ce910 Merge branch 'feature/heap-in-flash' into 'master'
heap: Add a configuration that places all the heap component in flash

Closes IDF-7143 and IDF-2853

See merge request espressif/esp-idf!23050
2023-04-13 14:38:15 +08:00
Omar Chebib
a0f8434f93 i2c: fix a bug in sda sample timing
* Closes https://github.com/espressif/esp-idf/issues/9777

This bug prevented SCL line to work properly after a NACK was received in master mode.
2023-04-13 14:37:44 +08:00
Ondrej Kosta
f6715c9c29 esp_eth pytest: increased robustness of the L2 test
Added filtering frames based on MAC address
2023-04-13 08:26:45 +02:00
Radek Tandler
d8b8ab5d43 Merge branch 'feature/wl_host_test_cmake' into 'master'
Storage: Migrate WL host test to CMake

See merge request espressif/esp-idf!23015
2023-04-13 13:16:57 +08:00
Marius Vikhammer
7d41c5b903 Merge branch 'ci/soc_caps_docs_build' into 'master'
ci: build all docs if soc_caps.h changed

See merge request espressif/esp-idf!23138
2023-04-13 10:49:12 +08:00