Guillaume Souchere
3e293035e3
fix(esp_system): PSRAM stack crash in esp_restart_noos on RISC-V chips
...
On RISC-V chips with SPIRAM support (esp32c5, esp32c61, esp32h4, esp32p4,
esp32s31), esp_restart_noos() was disabling the cache while the current
stack pointer could still be in external RAM. Any stack access after cache
disable (function call, local variable spill) would then fault with
"Cache disabled but cached memory region accessed".
Xtensa chips (esp32, esp32s2, esp32s3) already had this guard via the
SET_STACK macro. Add the equivalent for RISC-V:
- Add rv_utils_set_sp() to riscv/rv_utils.h (plain "mv sp, %0" with a
memory clobber; no window register management needed on RISC-V)
- In each affected system_internal.c, under
CONFIG_FREERTOS_TASK_CREATE_ALLOW_EXT_MEM, check whether the current
SP is in PSRAM and if so switch it to the top of internal BSS before
any cache disable or writeback operation
- Fix xTaskCreateStaticPinnedToCore() stack size argument in the
spiram_stack test (was passing bytes instead of word count)
- Mark the null-pointer write in func_do_exception() as volatile to
prevent the compiler from optimizing it away
- Extend the [spiram_stack] tests to RISC-V by sharing fibonacci() and
the task/finish helpers across architectures, guarding only the
Xtensa-specific WINDOWBASE/WINDOWSTART prints
2026-05-15 14:00:36 +08:00
hebinglin
bce86ecd92
change(esp_system): add iram opt for rtc clk resart cases
2026-05-06 19:29:36 +08:00
Fu Hanxi
ad1d17a794
ci: rename eco tags to revision
2026-04-09 10:43:34 +02:00
igor.udot
e2a8bbe639
ci: update build-test-rules to use common_components
2026-03-20 15:53:26 +08:00
Konstantin Kondrashov
dd79d441b0
fix(esp_system): Fix flaky tests with memory leak in sleep test
2026-03-09 14:19:29 +02:00
hebinglin
732de6bfe0
change(esp_system): replace temp_skip_ci with soc_filtered_targets for esp32c5
2026-02-01 11:59:16 +08:00
hebinglin
21a6537e08
change(esp_driver): set cases with toppd check only run in esp32c5eco3 rather than eco2
2026-02-01 11:59:16 +08:00
hebinglin
dbcc949b1c
change(esp_hw_support): remove sleep_mmu_retention related flow for esp32c5 eco1
2026-02-01 11:59:16 +08:00
hebinglin
f4bc4ea6f9
revert(unit-test): filter top domain power down check for some sleep test cases
...
This reverts commit c6c2948a99 .
2026-02-01 11:59:16 +08:00
wuzhenghui
a7f002c37e
feat(esp_hw_support): add test case for esp_sleep_set_uart_handling
2026-01-09 11:09:03 +08:00
Song Ruo Jing
62899cbba6
refactor(gpio): split GPIO HAL into separate component
...
cleaned up some includes in GPIO peripheral files
2025-12-08 14:33:26 +08:00
Sudeep Mohanty
216bca7dd3
ci(esp_system): Re-enable esp_system tests for esp32p4
2025-11-27 15:07:29 +05:30
armando
714b022a43
ci(p4): disable p4 rev3 invalid tests temporarily
2025-11-21 02:48:05 +00:00
Marius Vikhammer
a257812e14
feat(stdio): added esp_stdio component
...
esp_stdio contains everything the old esp_vfs_console contained (the vfs stdio glue layer)
as well as other functionality related to stdio (previously referred to as console)
2025-10-16 10:01:59 +08:00
morris
56c3dc4755
feat(wdt): graduate watch dog hal driver into a new component: esp_hal_wdt
2025-10-14 11:44:32 +08:00
Marek Fiala
9d35d63651
feat(cmake): Update minimum cmake version to 3.22 (whole repository)
2025-08-19 14:44:32 +02:00
Konstantin Kondrashov
1113ef2ff0
feat(ipc): Allow IPC recursion calls in esp_ipc_call
2025-08-12 16:16:09 +03:00
Marius Vikhammer
d8f40df79c
ci(system): enable usb-serial-jtag console tests for p4 and c5
2025-08-05 09:56:38 +08:00
Marius Vikhammer
4065fb20f3
Merge branch 'feature/esp_test_utils_component' into 'master'
...
change(test_utils): moved test_utils out of unit-test-app project
See merge request espressif/esp-idf!40678
2025-08-01 11:04:37 +08:00
Marius Vikhammer
9788d33351
ci(system): update system pytest apps to use SOC_CAPs
2025-07-31 19:05:58 +08:00
Song Ruo Jing
a4bd638385
refactor(uart): use U0RXD_GPIO_NUM and U0TXD_GPIO_NUM macros when possible
2025-07-29 21:59:49 +08:00
Marius Vikhammer
bf84ab652a
change(test_utils): moved test_utils component to tools/test_apps/components/
2025-07-21 14:05:50 +08:00
Fu Hanxi
682388487a
Merge branch 'ci/apply-idf-ci-1' into 'master'
...
ci: apply `idf-ci`
Closes IDFCI-2719
See merge request espressif/esp-idf!38755
2025-07-11 07:18:32 +02:00
Fu Hanxi
a5257dcc39
ci: apply idf-ci pytest plugin
...
Removed
- target markers. Now must use target as parametrization in esp-idf
- host test markers. Now will be automatically added with linux target and qemu marker
2025-07-09 10:33:28 +02:00
morris
c4d7b1cfce
refactor(uart)!: deprcated esp_rom_uart.h
2025-07-08 18:56:17 +08:00
Xiao Xufeng
5aa1a5f6ab
esp_system: increase bootloader partition size in examples using framepointer
2025-06-23 16:22:38 +08:00
Nebojsa Cvetkovic
d0ceef20f4
refactor(xtensa): Rename specreg.h register macros
...
This commit renames all registers in xtensa/specreg.h to by adding the
prefix XT_REG_. This is done to avoid naming collisions with similar
variable names. A new register file, viz., xt_specreg.h is created. The
previous names are still available to use but have been deprecated.
Closes https://github.com/espressif/esp-idf/issues/12723
Merges https://github.com/espressif/esp-idf/pull/16040
2025-06-17 15:37:33 +02:00
Li Shuai
c6c2948a99
change(unit-test): filter top domain power down check for some sleep test cases
2025-06-05 14:28:15 +08:00
Marius Vikhammer
4ea1facb42
Merge branch 'feature/esp32h21_core_support' into 'master'
...
feat(esp32h21): added support for misc core system features
Closes IDF-12042, IDF-11598, IDF-11596, IDF-11874, IDF-11873, IDF-11528, and IDF-11511
See merge request espressif/esp-idf!38773
2025-04-29 14:53:52 +08:00
Marius Vikhammer
1256078ea2
feat(esp32h21): added support for misc core system features
2025-04-28 11:42:25 +08:00
Marius Vikhammer
298da837fd
feat(system): updated reset reasons for H21
2025-04-27 16:11:24 +08:00
armando
1abe57c987
test(system): increased 200B memory leak thresh due to mmu mmap mutex
...
200B to extend the thresh, real increase to the memory usage will be smaller
2025-04-14 10:45:40 +08:00
Chen Jichang
c34b4eb882
feat(esp32h4): enable ESP32H4 ci build
2025-03-28 14:41:28 +08:00
Marius Vikhammer
12e9d6514a
fix(console): fixed secondary console not working on all chips without VFS
2025-03-07 14:41:19 +08:00
igor.udot
daf2d31008
test: format all test scripts
2025-03-05 12:08:48 +08:00
wanckl
cfe4bf339f
feat(driver_gptimer): esp32h21 add basic gptimer support
2025-02-21 20:22:41 +08:00
Wu Zheng Hui
e95103aa56
Merge branch 'fix/add_sleep_duration_check_for_timer_wakeup' into 'master'
...
fix(esp_hw_support): add timer wakeup sleep duration check
Closes IDFGH-14485
See merge request espressif/esp-idf!36793
2025-02-13 10:42:58 +08:00
wuzhenghui
dc93eb533a
fix(esp_hw_support): add timer wakeup sleep duration check
...
Closes https://github.com/espressif/esp-idf/issues/15255
2025-02-07 19:43:54 +08:00
gaoxu
5ef4f20778
feat(esp32h21): disable unsupported build test
2025-02-06 15:47:51 +08:00
Omar Chebib
52b558d218
Merge branch 'feature/enable_fp_backtracing' into 'master'
...
feat(riscv): implement frame pointer option for backtracing
See merge request espressif/esp-idf!32342
2025-01-13 18:11:49 +08:00
Song Ruo Jing
486c95557a
Merge branch 'bugfix/gpio_8_16_bit_access' into 'master'
...
feat(gpio): add gpio_config_as_analog() API
Closes IDF-10247 and IDFGH-12754
See merge request espressif/esp-idf!35856
2025-01-10 15:14:19 +08:00
Omar Chebib
d6cd339e46
fix: take into account MR comments
2025-01-09 11:57:02 +08:00
Song Ruo Jing
3fde2017cd
refactor(rtcio): update comments for rtc_io header file
...
Closes https://github.com/espressif/esp-idf/issues/13735
2025-01-08 16:49:34 +08:00
Armando
4c869d1f23
feat(mspi): mspi axi disable feature
2025-01-07 16:16:06 +08:00
Tomáš Rohlínek
d5d295cf7a
fix(storage/console): fix test configuration
2024-11-28 13:34:25 +01:00
Tomáš Rohlínek
f59362266a
fix(storage/vfs_console): stop new console opens from overwriting existing fds
2024-11-28 13:12:22 +01:00
Marius Vikhammer
9c5dde5536
refactor(panic): refactor and unify cache panic errors
2024-11-07 11:39:40 +08:00
morris
d93a25d1fb
feat(etm): add driver support for esp32c61
2024-10-12 11:18:36 +08:00
morris
aebf700919
refactor(freertos): rename SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY and move to freertos
2024-10-09 13:32:03 +08:00
Marius Vikhammer
35a6671072
Merge branch 'feature/c6_misc_core' into 'master'
...
feat(system): misc core-system C61 bringup changes
Closes IDF-10954, IDF-10986, IDF-10957, IDF-9281, and IDF-9257
See merge request espressif/esp-idf!33297
2024-09-12 09:46:30 +08:00