morris
d5fb4ff7c8
esp_rom: add common ROM API to update CPU tick rate
2023-06-01 10:57:13 +08:00
Jakob Hasse
a6cbf68991
compiler: replaced noreturn by __noreturn__ in header files
...
* noreturn may be replaced by third-party macros,
rendering it ineffective
* Closes https://github.com/espressif/esp-idf/issues/11339
2023-05-18 12:49:40 +08:00
Marius Vikhammer
b8bd147466
ci: re-enable reset reason tests for all targets except H2.
2023-05-16 05:22:07 +00:00
Marius Vikhammer
e0b91b748e
esp-system: fixed int WDT reset reason being reported as task WDT on C2
2023-05-16 05:22:07 +00:00
Zim Kalinowski
59b6634a9a
Merge branch 'feature/add_missed_settings_for_bootloader_reserve_rtc_mem_for_c6_h2_v5.1' into 'release/v5.1'
...
esp_system (C6 & H2): Enables BOOTLOADER_RESERVE_RTC_MEM feature for bootloader (v5.1)
See merge request espressif/esp-idf!23402
2023-05-15 16:02:35 +08:00
Marius Vikhammer
fc69e53e40
Merge branch 'ci/fix_system_invalid_kconfigs_v5.1' into 'release/v5.1'
...
ci: fix invalid kconfig options in system test apps (v5.1)
See merge request espressif/esp-idf!23660
2023-05-12 11:04:08 +08:00
Marius Vikhammer
19a2e42770
ci: fix invalid kconfig options in system test apps
2023-05-10 09:42:12 +08:00
morris
236d601e98
mcpwm: reset peripheral in restart, panic and halt
...
mcpwm is commonly used in power eletronic area, when restart happens,
make sure the mcpwm generator is not working.
closes https://github.com/espressif/esp-idf/issues/11324
2023-05-09 18:30:46 +08:00
KonstantinKondrashov
5775e1d3b7
esp_system (C6 & H2): Enables BOOTLOADER_RESERVE_RTC_MEM feature for bootloader
...
This option reserves an area in RTC FAST memory for the following features:
- "Skip image validation when exiting deep sleep"
- "Reserve RTC FAST memory for custom purposes"
- "GPIO triggers factory reset"
2023-05-01 06:27:11 +00:00
Marius Vikhammer
3724bf6256
ci: fixed test apps overriding pytest configs
2023-04-27 14:29:06 +08:00
laokaiyao
87328d594f
esp32h4: checked all the corner stuffs of the removal
2023-04-26 18:53:12 +08:00
laokaiyao
954a6a2cff
esp32h4: removed esp32h4 related codes
2023-04-26 18:53:12 +08:00
laokaiyao
cae47ce37e
esp32h4: removed esp32h4 related files
2023-04-26 18:53:12 +08:00
Marius Vikhammer
92965cd124
Merge branch 'feature/sram1_iram_v5.1' into 'release/v5.1'
...
system: add kconfig option for using parts of SRAM1 for IRAM (v5.1)
See merge request espressif/esp-idf!23370
2023-04-25 11:35:08 +08:00
Marius Vikhammer
b07a534984
esp-system: move uncessary IRAM functions to flash
2023-04-24 10:27:31 +08:00
Marius Vikhammer
6bb4dc35ab
docs: update CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM docs to better reflect the limitations
2023-04-24 09:55:00 +08:00
Marius Vikhammer
34fea0d38f
system: add kconfig option for using parts of SRAM1 for IRAM
...
Using parts of SRAM1 for IRAM allows apps with more statically allocated IRAM
Closes https://github.com/espressif/esp-idf/issues/9824
2023-04-24 09:54:47 +08:00
Jakob Hasse
dac64725af
esp_system, heap: increase host test timeout for CI
2023-04-06 10:23:44 +08:00
Konstantin Kondrashov
6c5a7da77c
Merge branch 'feature/unicore_bootloader_can_run_multicore_app' into 'master'
...
esp_system: Fix case when multicore app can not be run if bootloader is unicore
Closes IDFGH-9336
See merge request espressif/esp-idf!22664
2023-03-29 21:56:26 +08:00
Zim Kalinowski
ce9d466324
Merge branch 'bugfix/esp-system-ignored-warnings' into 'master'
...
esp_system: fixed and reenable no-format warnings
Closes IDF-6801
See merge request espressif/esp-idf!22710
2023-03-29 20:18:14 +08:00
Zim Kalinowski
e86864c621
Merge branch 'feature/unify_core_host_target_tests' into 'master'
...
ci: unify core host target tests
Closes IDF-6621, IDF-6622, IDF-6623, and IDF-6624
See merge request espressif/esp-idf!22944
2023-03-29 15:41:01 +08:00
Marius Vikhammer
2608c1ec1e
system: remove unused C2 cache kconfig option
2023-03-29 10:06:13 +08:00
KonstantinKondrashov
975c138fad
esp_system: Do not rely on bootloader cache settings, do cache settings unconditionally at startup app
...
It makes multicore app runnable by unicore bootloader
Closes https://github.com/espressif/esp-idf/issues/10714
2023-03-28 23:17:16 +08:00
Zim Kalinowski
fb7aafd348
esp_system: fix and reenable no-format warning
2023-03-28 13:42:44 +02:00
Marius Vikhammer
f627506f6b
ci: update driver tests to use run_all_single_board_cases()
2023-03-28 17:05:50 +08:00
Marius Vikhammer
a5c70c24e5
Merge branch 'bugfix/memprot_cleanup_iram_attr' into 'master'
...
memprot: move memprot functions out of IRAM
See merge request espressif/esp-idf!20697
2023-03-28 10:18:22 +08:00
Marius Vikhammer
914bb81b95
ci: move linux host tests to test app folder
2023-03-27 17:41:44 +08:00
Mahavir Jain
f1465c6ad8
Merge branch 'featue/factory_reset_state' into 'master'
...
bootloader_support: Adds API to detect Factory reset has happened
Closes IDFGH-9379
See merge request espressif/esp-idf!22822
2023-03-24 21:32:30 +08:00
Marius Vikhammer
783d8c20e3
system: enable stack smashing protection test
2023-03-23 14:27:34 +08:00
Mahavir Jain
86b6f87d68
Merge branch 'bugfix/ram_loadable_elf_flash_mmap_issue' into 'master'
...
Fix flash mmap data integrity issue for RAM loadable ELF case
See merge request espressif/esp-idf!22802
2023-03-23 12:13:35 +08:00
KonstantinKondrashov
efbafb873b
bootloader_support: Adds API to detect Factory reset has happened
...
Closes https://github.com/espressif/esp-idf/issues/10753
2023-03-22 02:21:54 +08:00
Michael (XIAO Xufeng)
dbbc1ba5be
Merge branch 'feat/merge_nuttx_patch' into 'master'
...
G0, G1: fix issues that prevents using G0/G1 components on other platforms
See merge request espressif/esp-idf!22521
2023-03-21 20:48:21 +08:00
Jiang Jiang Jian
fdea5289a2
Merge branch 'bugfix/static_ram_size' into 'master'
...
system: fixed USE_FIXED_STATIC_RAM_SIZE option
See merge request espressif/esp-idf!21368
2023-03-20 13:57:38 +08:00
Mahavir Jain
7b995355ba
startup: fix incorrect MMU configuration issue for the RAM loadable ELF
...
For RAM loadable ELF, entire firmware is running from RAM and hence the
IROM/DROM size must be treated as 0 (no cache mappings created for
code/rodata).
2023-03-20 11:12:06 +05:30
Jakob Hasse
7dbe9687f9
Merge branch 'bugfix/esp_shared_stack_watchpoint_setting' into 'master'
...
bugfix(esp_system): made watchpoint setting configuration-dependent
Closes IDFGH-9003
See merge request espressif/esp-idf!21738
2023-03-20 10:19:05 +08:00
Marius Vikhammer
43784e7a24
memprot: move memprot functions out of IRAM
...
Memprot functions are no longer placed by default in IRAM,
selecting ESP_PANIC_HANDLER_IRAM will still force panic related memprot
functions to be placed in IRAM.
2023-03-17 14:51:20 +08:00
Marius Vikhammer
585f05596b
system: fixed USE_FIXED_STATIC_RAM_SIZE option
...
The USE_FIXED_STATIC_RAM_SIZE was not actually causing the heap to start
at a fixed address.
Closes https://github.com/espressif/esp-idf/issues/10270
Closes https://github.com/espressif/esp-idf/issues/10271
2023-03-16 16:23:59 +08:00
Gustavo Henrique Nihei
3672144c9f
efuse: Remove dependency on bootloader component headers
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-16 01:50:21 +08:00
Armando
785bd812e9
cpu_start: move esp_rom_spiflash_attach earilier
...
esp_rom_spiflash_attach is called in cpu_start.c when it's
CONFIG_APP_BUILD_TYPE_RAM && !CONFIG_APP_BUILD_TYPE_PURE_RAM_APP.
This function will:
- reset MSPI
- configure MSPI IOs
- configure MSPI into slow read mode
Prior to this commit, this function is put quite late. It's OK for chips
earlier than C6. On C6 and H2, MMU registers are in SPI_MEM_x, so
resetting MSPI registers will also reset MMU registers.
After this commit, this funciton is called eariler, before
cpu_start.c: bootloader_init().
2023-03-15 10:59:20 +08:00
Mahavir Jain
72b7161612
Merge branch 'test/enable_esp_crt_bundle_tests_for_esp32h2' into 'master'
...
test: enable mbedtls esp_crt_bundle test for esp32h2
Closes IDF-6847
See merge request espressif/esp-idf!22725
2023-03-14 18:54:15 +08:00
harshal.patil
6b8bc64f31
test: enable mbedtls esp_crt_bundle test for esp32h2
2023-03-13 12:00:01 +05:30
Jakob Hasse
03bc6488de
bugfix(esp_system): made watchpoint setting configuration-dependent
...
esp_execute_shared_stack_function always restored the stack watchpoint
regardless of CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK. This would lead
to an abondoned but active watchpoint on a former stack once the task
calling esp_execute_shared_stack_function is deleted, if
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK is inactive.
This has been fixed now.
Closes https://github.com/espressif/esp-idf/issues/10414
2023-03-13 14:24:15 +08:00
Cao Sen Miao
8b5f4f54fc
system: Clean up code, some single core chips have useless dual-core code
2023-03-13 10:27:57 +08:00
Konstantin Kondrashov
ed97d230c8
Merge branch 'ci/fix_ipc_tests' into 'master'
...
ipc: Mitigates and speeds up some ipc tests
Closes IDFCI-1638
See merge request espressif/esp-idf!22657
2023-03-10 21:48:00 +08:00
C.S.M
b0b99a9a1b
Merge branch 'feature/flash_support_h2' into 'master'
...
spi_flash: Allow clock frequency up to 64M on ESP32H2
See merge request espressif/esp-idf!22476
2023-03-10 19:13:03 +08:00
Cao Sen Miao
bc655a6890
spi_flash: Allow clock frequency up to 64M, and make it default on ESP32H2
2023-03-10 11:39:53 +08:00
Marius Vikhammer
dfedaa2b65
Merge branch 'feature/c6_ulp' into 'master'
...
ulp: added basic support for building and running a binary in the lp core
Closes IDF-6829 and IDF-6272
See merge request espressif/esp-idf!22554
2023-03-10 09:56:38 +08:00
KonstantinKondrashov
ced3c50cd6
ipc: Mitigates and speeds up some ipc tests
...
Test ipc_isr two tasks use IPC function calls
Test multiple ipc_calls
Closes IDFCI-1638
2023-03-09 17:08:45 +08:00
Marius Vikhammer
284dabf17f
ulp: added basic support for building and running a binary in the lp core
2023-03-09 10:12:23 +08:00
Jiang Guang Ming
fc9538c63d
Merge branch 'feature/add_more_pytest_config_to_flash_mmap' into 'master'
...
flash mmap: more config options for flash mmap test app
See merge request espressif/esp-idf!21991
2023-03-08 13:44:29 +08:00
jiangguangming
87f2eb9e2a
esp_rom: put rom cache related functions to cache.h
2023-03-07 14:51:24 +08:00
Konstantin Kondrashov
cf68a4c136
Merge branch 'feature/esp_timer_uses_shared_isr' into 'master'
...
esp_timer: Adds TASK and ISR AFFINITY to core options
Closes IDFGH-9053
See merge request espressif/esp-idf!21923
2023-03-07 13:38:23 +08:00
Jiang Jiang Jian
d1adc453b0
Merge branch 'bugfix/some_small_fix_for_sleep_examples' into 'master'
...
examples: some small fix for sleep examples
See merge request espressif/esp-idf!19052
2023-03-07 13:07:10 +08:00
jiangguangming
91b86f55d5
esp_system: use ESP_ROM_NEEDS_SET_CACHE_MMU_SIZE instead of IDF_TARGET_XXX
2023-03-06 20:32:04 +08:00
Jiang Guang Ming
5414eda027
flash mmap: disable mmap into instruction address
when SPI_FLASH_ROM_IMPL enabled
2023-03-06 19:47:18 +08:00
Gustavo Henrique Nihei
2a2bd0f8ff
esp_system: Fix TIMG0 still enabled after Timer is freed
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-06 04:58:11 +00:00
Gustavo Henrique Nihei
3cbac3dd1d
esp_system: Ensure TIMG0 clock is always enabled during normal operation
...
If the TimerGroup 0 clock is disabled and then reenabled, the watchdog
registers (Flashboot protection included) will be re-enabled, and some
seconds later, will trigger an unintended reset.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-06 04:58:11 +00:00
jingli
e38e5be9ac
system/test: use TEST_ESP_OK instead of ESP_ERROR_CHECK
2023-03-06 10:58:18 +08:00
jingli
955f2838fc
konfig: make rtc fast mem related kconfig depend on SOC_RTC_FAST_MEM_SUPPORTED
2023-03-06 10:58:18 +08:00
wuzhenghui
186da9af93
codeclean: rename sleep_periph to sleep_sys_periph
2023-03-04 00:17:40 +08:00
Wu Zheng Hui
2066977b48
Merge branch 'feature/bringup_esp32c6_deepsleep_support_master' into 'master'
...
esp32c6: bringup deepsleep examples
Closes IDF-6051, IDF-6052, IDF-5349, IDF-5924, and WIFI-5352
See merge request espressif/esp-idf!22300
2023-03-03 23:53:10 +08:00
KonstantinKondrashov
449e4bcae7
esp_timer: Adds AFFINITY options for task and ISR
...
These new settings allow you to balance the load on cores.
Closes: https://github.com/espressif/esp-idf/issues/10457
2023-03-02 20:08:02 +08:00
Song Ruo Jing
51777a6862
gpio: Fix io hold functionality on esp32c6 and esp32h2
2023-03-02 18:10:10 +08:00
Mahavir Jain
e364e1c102
Merge branch 'feature/esp32h2_enable_rsa_support' into 'master'
...
mbedtls: enable RSA support for esp32h2
Closes IDF-6284 and IDF-6415
See merge request espressif/esp-idf!22498
2023-03-02 15:06:24 +08:00
wuzhenghui
9eae151f7c
esp32c6: bringup deepsleep examples
2023-03-02 15:06:05 +08:00
wuzhenghui
709adaaa37
soc_caps: since esp32c6 only support one ext wakeup src, split SOC_PM_SUPPORT_EXT_WAKEUP
...
Close IDF-5924
2023-03-02 15:06:05 +08:00
Marius Vikhammer
9ae7869a66
Merge branch 'feature/esp_system_pytest' into 'master'
...
esp-system: migrate test app cases to pytest
Closes IDF-5584
See merge request espressif/esp-idf!22461
2023-03-02 13:41:41 +08:00
harshal.patil
04cc562180
mbedtls: enable RSA support for esp32h2
2023-03-01 14:18:57 +05:30
Marius Vikhammer
7a0b9f65c9
esp-system: migrate test app cases to pytest
2023-03-01 03:21:39 +00:00
Armando
0fb0be3817
ld: fixed bootloader and app potential overlap issue
2023-03-01 10:39:30 +08:00
Song Ruo Jing
8486a2c3ad
Merge branch 'bugfix/revert_rtc_clock_bbpll_power_on_with_usb' into 'master'
...
usb_serial_jtag: Improve the code for the issue of usb cdc device unable to work during sleep
Closes IDFGH-6887
See merge request espressif/esp-idf!20973
2023-02-27 23:18:54 +08:00
Song Ruo Jing
1a66459b44
usb_serial_jtag: Improve the code for the issue of usb cdc device unable to work during sleep
...
1. Remove RTC_CLOCK_BBPLL_POWER_ON_WITH_USB Kconfig option
During sleep, BBPLL clock always gets disabled
esp_restart does not disable BBPLL clock, so that first stage bootloader log can be printed
2. Add a new Kconfig option PM_NO_AUTO_LS_ON_USJ_CONNECTED
When this option is selected, IDF will constantly monitor USB CDC port connection status.
As long as it gets connected to a HOST, automatic light-sleep will not happen.
Closes https://github.com/espressif/esp-idf/issues/8507
2023-02-27 12:10:49 +08:00
Armando (Dou Yiwen)
dc76dde79f
Merge branch 'feature/support_c6_cache' into 'master'
...
cache: support c6/h2 cache error
Closes IDF-5342, IDF-5656, and IDF-6255
See merge request espressif/esp-idf!22078
2023-02-27 11:40:18 +08:00
liuning
38316b38b5
esp_wifi: move coex part from esp_wifi to esp_coex
2023-02-26 06:58:18 +00:00
Armando
4997689de5
cache: support h2 and c6 cache error
2023-02-24 16:16:46 +08:00
Marius Vikhammer
c2f9392be5
Merge branch 'feature/h2_wdt' into 'master'
...
wdt: add support for H2
Closes IDF-6643 and IDF-6678
See merge request espressif/esp-idf!22422
2023-02-24 13:48:20 +08:00
Marius Vikhammer
5d26a0de9a
wdt: add support for H2
2023-02-23 11:22:51 +08:00
Alexey Lapshin
49af663dfb
esp_system: fix gcc-12 compile errors
2023-02-22 05:33:03 +00:00
Song Ruo Jing
987fd3208a
Merge branch 'feature/esp32h2_clock_basic_support' into 'master'
...
clk: Add basic clock support for esp32h2
Closes IDF-6265 and IDF-5973
See merge request espressif/esp-idf!21943
2023-02-21 16:16:05 +08:00
Jing Li
75a82988f1
Merge branch 'refactor/wdt_use_unified_type' into 'master'
...
wdt: refactor wdt codes to use unified type
Closes IDF-5653
See merge request espressif/esp-idf!22378
2023-02-21 09:46:06 +08:00
Song Ruo Jing
2c2a62e323
clk_tree: Add basic clock support for esp32h2
...
- Support SOC ROOT clock source switch
- Support CPU frequency change
- Support RTC SLOW clock source switch
- Support RTC SLOW clock + RC FAST calibration
Remove FPGA build for esp32h2
2023-02-20 17:15:02 +08:00
Marius Vikhammer
89190fab02
Merge branch 'bugfix/allow_coredump_gdb_simu' into 'master'
...
coredump: allow coredump at panic even if gdbstub is used.
Closes IDFGH-8567
See merge request espressif/esp-idf!22103
2023-02-20 16:07:57 +08:00
Marius Vikhammer
ec57895db9
coredump: allow coredump at panic even if gdbstub is used.
...
Closes https://github.com/espressif/esp-idf/issues/10017
2023-02-17 15:15:36 +08:00
Omar Chebib
5e5343d429
TWDT: Use the new TWDT Kconfig options in the examples and tests
2023-02-17 11:22:25 +08:00
Armando (Dou Yiwen)
7f335a970d
Merge branch 'bugfix/include_freertosconfig_h_in_critical_section_h' into 'master'
...
esp_system: include FreeRTOS.h explicitly in critical_section.h
See merge request espressif/esp-idf!22405
2023-02-16 22:23:33 +08:00
Armando
a49d074cbb
esp_system: include FreeRTOS.h explicitly in critical_section.h
...
Prior to this commit, if only critical_section.h is included, there
might be error about portNUM_PROCESSORS undeclared.
As critical_section.h should be OS-agnostic, added FreeRTOS.h in it
2023-02-16 15:12:13 +08:00
morris
195f6b99ad
rmt: expose private API to get channel ID
...
Closes https://github.com/espressif/esp-idf/issues/10596
2023-02-16 11:37:25 +08:00
Wu Zheng Hui
113132e4f4
Merge branch 'feature/bringup_esp32c6_light_sleep_pd_top' into 'master'
...
esp32c6: support light_sleep (Stage 2: support Digital Peripheral power down)
See merge request espressif/esp-idf!22197
2023-02-15 16:17:53 +08:00
jingli
9c37441b17
wdt: refactor wdt codes to use unified type
2023-02-15 12:08:55 +08:00
Li Shuai
6e307c04a3
clock retention: supported soc and modem system power and clock sleep retention
2023-02-15 11:46:40 +08:00
fuzhibo@espressif.com
e252748d92
periph retention: runtime critical digital peripherals sleep retention support
2023-02-15 11:46:40 +08:00
Cao Sen Miao
fd3e0b0b18
esp32h2(ci): enable target test
2023-02-15 10:20:43 +08:00
Marius Vikhammer
f9c1a2b791
Merge branch 'feature/core_c6_component_tests' into 'master'
...
ci: update idf-core related tests for C6
Closes IDF-6888
See merge request espressif/esp-idf!22282
2023-02-14 16:47:52 +08:00
Wu Zheng Hui
d1b6ff6cca
Merge branch 'bugfix/reset_modem_lpcon_in_soft_reset' into 'master'
...
bugfix: reset modem lpcon in soft reset
See merge request espressif/esp-idf!22347
2023-02-14 10:31:17 +08:00
wuzhenghui
0afeac9951
bugfix: reset modem lpcon in soft reset
2023-02-13 17:04:35 +08:00
Marius Vikhammer
25abc7f6d8
ci: update idf-core related tests for C6
2023-02-13 13:01:57 +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
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