Omar Chebib
53c7dd4efc
WDT: implement interrupt wdt and task wdt for ESP32-C2
...
ESP32-C2 has a single group timer, thus it will use it for the interrupt watchdog,
which is more critical than the task watchdog. The latter is implement in
software thanks to the `esp_timer`component.
2022-09-15 14:37:59 +08:00
harshal.patil
aaf8b5d98e
ci: Migrate esp-tls unit tests from unit-test-app to component-test-app
2022-09-14 12:03:49 +05:30
Harshit Malpani
61fb0c1d2d
unit_test: remove redundant component from unit test app config
2022-09-06 14:07:52 +05:30
harshal.patil
a17313ad32
ci: Migrate protocomm unit tests from unit-test-app to component-test-app
2022-09-01 10:24:33 +05:30
jingli
ee3423834e
kconfig: refactor xtal freq kconfig to common configuration item
2022-08-05 19:12:29 +08:00
Marius Vikhammer
bc08de5f46
Merge branch 'feature/ulp_test_app' into 'master'
...
ulp: migrate tests to pytest embedded
Closes IDF-5605
See merge request espressif/esp-idf!19342
2022-08-04 09:12:56 +08:00
Alexey Lapshin
03ce915668
build system: re-add -Wno-format as private flag for some test_apps
2022-08-03 16:42:47 +04:00
morris
8de9fd8cd7
rmt: only use register to control IDLE state
...
hardware issue: we can't control the IDLE level by the stop item
when loop transmission is enabled.
But we can always control the IDLE state by register.
2022-08-03 10:51:43 +08:00
Marius Vikhammer
035924a8f1
ulp: migrate tests to pytest embedded
2022-08-03 09:36:17 +08:00
Fu Hanxi
17e312f87b
docs: improve the installation instructions
2022-08-01 15:52:21 +08:00
laokaiyao
4ab8f00b47
ci: setup 26mhz esp32c2 runner
2022-07-29 17:10:34 +08:00
yuanjm
66e0171c42
test: Add mqtt5 unit-test
2022-07-28 06:24:43 +00:00
laokaiyao
ba235c5615
ci: add xtal_40mhz tag for c2 tests
2022-07-28 02:02:18 +00:00
Guillaume Souchere
6005cc9163
hal: Deprecate interrupt_controller_hal.h, cpu_hal.h and cpu_ll.h interfaces
...
This commit marks all functions in interrupt_controller_hal.h, cpu_ll.h and cpu_hal.h as deprecated.
Users should use functions from esp_cpu.h instead.
2022-07-22 00:06:06 +08:00
Simon
62bc3348d5
Merge branch 'ci/flash_encryption_test' into 'master'
...
flash_encryption: Add several test environments for flash encryption test
Closes IDF-5530
See merge request espressif/esp-idf!19043
2022-07-21 18:38:18 +08:00
morris
9e532696f4
pcnt: add const qualifier to event data
2022-07-20 14:59:50 +08:00
Cao Sen Miao
e69f658ac6
flash_encryption: Add several test environments for flash encryption test
2022-07-20 12:49:42 +08:00
Fu Hanxi
05d2357062
feat: use standalone project idf-build-apps for find/build apps utils
2022-07-14 08:26:31 +08:00
Marius Vikhammer
fd37129651
esp_ringbuf: placement in flash is no longer controlled by CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH
...
esp-ringbuf funtion placement is now controlled by its own configs:
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH and CONFIG_RINGBUF_PLACE_ISR_FUNCTIONS_INTO_FLASH
Closes https://github.com/espressif/esp-idf/issues/9198
2022-07-11 09:24:20 +08:00
Cao Sen Miao
a690a87829
spi_flash: Remove legacy spi_flash drivers
2022-07-01 11:01:34 +08:00
Darian Leung
546a7fc495
esp_pm: Disable esp_pm when SMP FreeRTOS is enabled
...
SMP FreeRTOS currently does not support power management yet. This
commit makes SMP FreeRTOS and esp_pm mutually exclusive.
2022-06-15 16:17:59 +08:00
Mahavir Jain
a5fe7bb281
tools/unit_test_app: add targets specific configs for "aes_no_hw"
...
In ESP32-C2, there is no hardware AES and hence this config is not required
2022-06-10 15:08:07 +05:30
Michael (XIAO Xufeng)
773715d900
Merge branch 'feature/support_refresh_brownout_v1' into 'master'
...
spi_flash: send reset when brownout detected on XMC flash
Closes IDF-3882
See merge request espressif/esp-idf!16873
2022-06-06 16:27:58 +08:00
morris
aa3ddbc3c6
Merge branch 'test/enable_c2_target_tests' into 'master'
...
ci: enable target tests for ESP32-C2
Closes IDF-4989
See merge request espressif/esp-idf!18182
2022-06-03 16:41:24 +08:00
Michael (XIAO Xufeng)
6a8aed12ee
ci: partially enable ut tests for esp32c2
...
Disabled test cases are tracked in:
IDF-4465, IDF-5045, IDF-5057, IDF-5058, IDF-5059, IDF-5060, IDF-5061, IDF-5131
- test_fatfs: IDF-5136
- test_pm: IDF-5053
- test_cache_mmu: IDF-5138
- test_partitions: IDF-5137
- test_vfs: IDF-5139
- test_freertos: IDF-5140
- test_wpa_supplicant: IDF-5046
- test_mbedtls: IDF-5141
- test_pthread: IDF-5142
- test_protocomm: IDF-5143
- test_lightsleep: IDF-5053
- test_taskwdt: IDF-5055
- test_tcp_transport: IDF-5144
- test_app_update: IDF-5145
- test_timer: IDF-5052
- test_spi: IDF-5146
- test_rtc_clk: IDF-5060
- test_heap: IDF-5167
ci: fixed issues for tests of libgcc, ets_timer, newlib
test_pm: support on C2
2022-06-02 14:23:35 +08:00
Anton Maklakov
ad4b3bc8b3
ci, config: re-arrange some C3 tests due to code size changes from 2022r1 toolchain
2022-06-02 10:15:23 +07:00
Michael (XIAO Xufeng)
acd4ca0f6e
ci: add ut configs for ESP32-C2
...
note: flash encryption ut is not enabled in this commit, see IDF-5056
2022-06-02 11:10:29 +08:00
Michael (XIAO Xufeng)
b9f37be868
ci: enable target tests for ESP32-C2
...
reduce parallel num of unused jobs
2022-06-02 11:10:29 +08:00
Cao Sen Miao
890f046ee9
test: split a new banch of testing to save IRAM
2022-06-02 10:38:55 +08:00
Djordje Nedic
facab8c5a7
tools: Increase the minimal supported CMake version to 3.16
...
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2022-06-01 06:35:02 +00:00
Martin Vychodil
d1ec5580ee
Merge branch 'nvs/remove_asserts' into 'master'
...
change: NVS assertions as runtime errorcodes
Closes IDF-3025
See merge request espressif/esp-idf!17739
2022-05-30 01:07:25 +08:00
Matus Fabo
58cca07104
add: Kconfig assert or errorcode option
...
add: private include header
add: macro encapsulation for assertion or error check
add: ESP_FAIL return code documentation in public headers
change: replaced all assertions by NVS_ASSERT_OR_RETURN macro
change: few internal function return values from void to esp_err_t
change: ESP_ERR_NVS_VALUE_TOO_LONG macro comment
2022-05-28 20:29:05 +02:00
Michael (XIAO Xufeng)
9f5c03dc67
Merge branch 'feat/elf_unit_test_parser' into 'master'
...
ci: extract ElfUnitTestParser allowing resolve elf offline
See merge request espressif/esp-idf!18205
2022-05-27 18:03:13 +08:00
Song Ruo Jing
cf32e49aeb
Merge branch 'refactor/cleanup_rtc_h' into 'master'
...
clk_tree: Prework2 of introducing clock subsystem control
Closes IDF-4934
See merge request espressif/esp-idf!17861
2022-05-26 09:16:47 +08:00
Michael (XIAO Xufeng)
cd6056c9cd
ci: extract ElfUnitTestParser allowing resolve elf offline
2022-05-26 01:40:52 +08:00
songruojing
a5b09cf015
rtc_clk: Clean up some clock related enum and macro in soc/rtc.h, replace with new ones in
...
soc/clk_tree_defs.h
2022-05-24 22:59:41 +08:00
Marius Vikhammer
0687daf2c8
kconfig: move remaining kconfig options out of target component
...
The kconfig options are moved to the component where they are used,
mostly esp_hw_support and esp_system.
2022-05-23 17:57:45 +08:00
Armando
ed1e4c854e
ci: support distribute ut based on psram type
2022-05-13 10:49:02 +08:00
morris
c5cd86ae8b
test_utils: migrate to use new rmt driver
2022-05-07 10:34:50 +00:00
morris
5bfe873725
driver: deprecate legacy rmt driver
...
The legacy driver is still available, but new feature won't be added.
Enable RMT_SUPPRESS_DEPRECATE_WARN if you don't want to see the
deprecated warnings.
2022-05-07 10:34:50 +00:00
morris
d67888b92b
pcnt: added enable/disable functions
2022-05-06 18:18:39 +08:00
morris
e7295c3577
gptimer: added enable/disable functions
2022-05-06 18:18:39 +08:00
Ivan Grokhotkov
ab6151fc8e
test_utils: add missing dependency on esp_netif
2022-05-02 20:47:17 +02:00
Ivan Grokhotkov
708e99497b
global: add dependency on esp_timer component and include esp_timer.h
...
Some components were including esp_timer.h without declaring a
dependency on esp_timer component. This used to work due to a
transitive public dependency on esp_timer from freertos component.
Add explicit dependencies where needed.
Also some source files were using esp_timer functions without
including the header file. This used to work because esp_timer.h was
included from freertos port header file. This commit adds esp_timer.h
includes where needed.
2022-04-25 18:39:23 +02:00
morris
a385df8ea3
test: remove makefiles in unit-test-app
2022-04-25 17:12:34 +08:00
Marius Vikhammer
45c1d1cba2
Merge branch 'feature/move_target_kconfig_2' into 'master'
...
system: move kconfig options out of target component
See merge request espressif/esp-idf!17321
2022-04-24 13:29:43 +08:00
Marius Vikhammer
d2872095f9
soc: moved kconfig options out of the target component.
...
Moved the following kconfig options out of the target component:
* CONFIG_ESP*_DEFAULT_CPU_FREQ* -> esp_system
* ESP*_REV_MIN -> esp_hw_support
* ESP*_TIME_SYSCALL -> newlib
* ESP*_RTC_* -> esp_hw_support
Where applicable these target specific konfig names were merged into
a single common config, e.g;
CONFIG_ESP*_DEFAULT_CPU_FREQ -> CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ
2022-04-21 12:09:43 +08:00
morris
f32a89826c
clk_tree: added default clock source for peripheral
2022-04-14 15:44:56 +08:00
Ivan Grokhotkov
7c65370d84
spiffs: add esp_spiffs_gc function to force garbage collection
...
Closes https://github.com/espressif/esp-idf/issues/8626
2022-04-11 11:19:10 +02:00
Darian Leung
8c88c6f68f
freertos: Update task snapshot unit tests
...
This commit updates the task snapshot unit tests as follows:
- Both uxTaskGetSnapshotAll() and vTaskGetSnapshot() are now both tested
- Test cases are now dependent on CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT
2022-04-01 22:01:16 +08:00
songruojing
bdb5b11b39
unit test: move unit-test_app test_utils_task_delete API to be a utils API (unity_utils_task_delete) in unity component
2022-03-30 15:11:08 +08:00
Jakob Hasse
2c3ff999ac
Merge branch 'feature/cxx_tests_pytest_embedded' into 'master'
...
C++: change cxx unit tests to component unit tests
Closes IDF-4807
See merge request espressif/esp-idf!17554
2022-03-28 11:45:20 +08:00
Jakob Hasse
9e25e0ed4b
refactor (cxx): changed cxx unit tests to component unit tests
2022-03-25 12:14:02 +08:00
Marius Vikhammer
0fbae992dd
config: removed references to non-existing kconfig options
2022-03-15 18:32:22 +08:00
David Čermák
4196c3f591
Merge branch 'update/discontinue_tcpip_adapter' into 'master'
...
esp_netif: Remove tcpip_adapter compatibility layer
Closes IDF-4457
See merge request espressif/esp-idf!17066
2022-03-11 03:48:28 +08:00
David Cermak
795b7ed993
esp_netif: Remove tcpip_adapter compatibility layer
2022-03-10 08:19:43 +01:00
Laukik Hase
7c6d343a60
ci: Add unit test configs for aggressive SPIRAM allocations
...
- CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=0
Everything will be allocated from the SPIRAM
(except DMA and FreeRTOS task resources)
- CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
Allow external memory as an argument to xTaskCreateStatic
- CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=default
Reserved memory for crucial internal functions (DMA, FreeRTOS)
- Increase parallel job count
2022-03-10 05:01:17 +00:00
morris
da28f7e2d9
Merge branch 'feature/rmt_hal_dma' into 'master'
...
rmt: document and improve LL driver
See merge request espressif/esp-idf!17297
2022-03-09 17:55:08 +08:00
Marius Vikhammer
934a3951b8
Merge branch 'feature/s2_s3_support_ext_mem_stack' into 'master'
...
soc: support placing task stacks in external memory for S2 and S3
Closes IDF-2797 and IDF-1805
See merge request espressif/esp-idf!16186
2022-03-09 11:57:31 +08:00
morris
4dfbc9ee7b
rmt: remove deprecated functions
2022-03-09 10:58:14 +08:00
Marius Vikhammer
374712921a
CI: add configs for running S2, S3 unit tests with PSRAM
...
Fixed various minor failures detected with these configs.
2022-03-04 15:29:17 +08:00
morris
0d920a47f7
unit_test: migrate to use pulse_cnt driver
2022-03-03 22:38:32 +08:00
Laukik Hase
0868513ddd
ci: Fix unit test failures
...
- protocomm: Fix leakage due to ECDH context not being
initialised and freed properly
- mbedtls (RSA): Added mandatory RNG parameter wherever required
Disabled `test performance RSA key operations` UT
- mbedtls (AES_GCM): Added mbedtls_gcm_update_ad() wherever required
for updating associated data
- unit_test_app: Fix build issue when heap tracing is enabled
2022-03-03 01:37:10 +05:30
Marius Vikhammer
06d8a5bf33
Merge branch 'bugfix/inline_intrmask_from_isr' into 'master'
...
freertos: always inline xPortSetInterruptMaskFromISR and vPortClearInterruptMaskFromISR
Closes IDFGH-6669
See merge request espressif/esp-idf!16970
2022-02-23 01:05:40 +00:00
Marius Vikhammer
ae31146b0b
CI: increase IPC stack size for test_utils configs
2022-02-22 10:42:34 +08:00
Anton Maklakov
3a04b712fa
Merge branch 'bugfix/fix_abs_using' into 'master'
...
build: fix abs() use
See merge request espressif/esp-idf!16952
2022-02-10 05:18:32 +00:00
Darian Leung
57fd78f5ba
freertos: Remove legacy data types
...
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
2022-02-09 23:05:45 +08:00
Marius Vikhammer
8220b2bb34
freertos: always inline xPortSetInterruptMaskFromISR and vPortClearInterruptMaskFromISR
...
These were called from IRAM context where the caller expect them to be inlined
and accessible when cache is disabled. This was not the case when compiled with -O0.
Closes https://github.com/espressif/esp-idf/issues/8301
2022-02-07 11:32:45 +08:00
Anton Maklakov
8bb06df68f
components: correct abs() use for unsigned and 64-bit arguments
2022-01-29 12:07:16 +07:00
Sudeep Mohanty
2fc9bd61bf
ulp: refactor ulp component
...
This commit refactors the ulp component.
Files are now divided based on type of ulp, viz., fsm or risc-v.
Files common to both are maintained in the ulp_common folder.
This commit also adds menuconfig options for ULP within the ulp
component instead of presenting target specific configuations for ulp.
2022-01-27 11:54:42 +05:30
laokaiyao
cf049e15ed
esp8684: rename target to esp32c2
2022-01-19 11:08:57 +08:00
Sudeep Mohanty
2ed15d8b1e
ulp: Added ULP RISC-V support for esp32s3
...
This commit adds support for ULP RISC-V for esp32s3.
Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2022-01-18 10:58:00 +05:30
Armando
7240ad2b3a
psram: refactor spiram.c on esp32s2
2022-01-13 11:07:57 +08:00
Mahavir Jain
397639da7d
Merge branch 'feature/rsa_intr' into 'master'
...
MPI: add kconfig option for doing intr-based exp-mod operations
Closes IDF-4389
See merge request espressif/esp-idf!16558
2022-01-07 13:27:53 +00:00
morris
705788a13f
unit_tests: replace legacy timer group with gptimer
2022-01-07 14:59:09 +08:00
Marius Vikhammer
ba3f12a9fe
rsa: add generate RSA keys test case
2022-01-07 11:35:35 +08:00
Marius Vikhammer
7255497146
freertos: remove FREERTOS_ASSERT option
...
Freertos asserts are now configured the same way as all other asserts in IDF,
i.e. by configuring COMPILER_OPTIMIZATION_ASSERTION_LEVEL.
2022-01-07 09:16:48 +08:00
morris
8cdcb4e291
rmt: move RMT item definition from soc to driver
2022-01-06 21:43:12 +08:00
songruojing
c10d15cc3a
ut: Support esp8684 with 2M flash being able to run unit test
2021-12-29 22:01:44 +08:00
Marius Vikhammer
a9a7160cb6
MPI: add kconfig option for doing intr-based exp-mod operations
2021-12-29 18:55:48 +08:00
Cao Sen Miao
e81841318f
CI: Enable ESP8684 build stage CI on master
2021-12-13 19:18:47 +08:00
Jakob Hasse
16514f93f0
refactor (test_utils)!: separate file for memory check functions
...
Memory check (leaks and heap tracing) functions for unit tests
now have a separate file now and are renamed for more consistency.
BREAKING CHANGE: renamed memory check function names which may be used
in unit tests outside IDF.
2021-12-08 11:06:00 +08:00
David Čermák
f6d0605bd4
Merge branch 'bugfix/add_mqtt_connect_unit_test' into 'master'
...
CI/MQTT: Add more unit tests with actual broker
See merge request espressif/esp-idf!15408
2021-12-02 11:51:17 +00:00
Tomas Rezucha
ebaca79557
other: Move cbor, jsmn and libsodium to idf-component-manager
...
Marginal components are being carved out from esp-idf and moved to
https://github.com/espressif/idf-extra-components .
They are distributed via idf-component-manager, see
https://components.espressif.com .
2021-11-30 21:44:48 +01:00
David Cermak
acf0caa04a
MQTT: Add more unit tests with actual broker
2021-11-26 11:45:32 +01:00
Cao Sen Miao
eddc196081
esp_clk: refactor target/clk.h to private/esp_clk.h
2021-11-26 14:56:30 +08:00
Ondrej Kosta
3a7a67f174
netif: added ESP-NETIF L2 TAP interface
2021-11-23 11:17:22 +01:00
Omar Chebib
9d5923a13e
IPC: Move ipc sources to esp_system
...
IPC shall be put back into esp_system as it is an 'OS additions'.
2021-11-11 10:30:01 +08:00
Roland Dobai
9c1d4f5b54
Build & config: Remove the "make" build system
...
The "make" build system was deprecated in v4.0 in favor of idf.py
(cmake). The remaining support is removed in v5.0.
2021-11-10 09:53:53 +01:00
morris
16677b0d3c
global: make periph enable/disable APIs private
...
peripheral enable/disable usually should be managed by driver itself,
so make it as espressif private APIs, not recommended for user to use it
in application code.
However, if user want to re-write the driver or ports to other platform,
this is still possible by including the header in this way:
"esp_private/peripheral_ctrl.h"
2021-11-08 10:37:47 +08:00
morris
e2275b1f63
gptimer: clean up hal and ll for driver-ng
2021-10-20 18:40:08 +08:00
morris
7b8d5562d2
Merge branch 'feature/support_sdspi_on_s2_c3' into 'master'
...
example: support sdspi on s2 c3
Closes IDF-1279
See merge request espressif/esp-idf!15107
2021-09-27 03:48:52 +00:00
SalimTerryLi
92e337a38c
sdspi: enable UT & ExampleTest for C3/S2
...
Closes https://github.com/espressif/esp-idf/issues/7389
(1) "MMC_RSP_BITS" [sd] [Y]
(2) "probe SD in SPI mode" [sd][test_env=UT_T1_SPIMODE] [Y]
(3) "probe SD in SPI mode, slot 0" [sd][ignore] [N]
(4) "SDMMC performance (SPI mode)" [sdspi][test_env=UT_T1_SPIMODE] [Y]
(5) "SDMMC test read/write with offset (SPI mode)" [sdspi][test_env=UT_T1_SPIMODE] [Y]
(6) "CD input works in SPI mode" [sd][test_env=UT_T1_SPIMODE] [Y]
(7) "WP input works in SPI mode" [sd][test_env=UT_T1_SPIMODE] [Y]
2021-09-24 15:17:18 +08:00
KonstantinKondrashov
fce50ef9e3
unit-test-app/configs(esp32c3): CI sill uses ECO2 for flash_encryption tests
2021-09-24 13:59:42 +08:00
KonstantinKondrashov
709abee65c
example_tests: Deletes usage esp32c3 ECO0 in CI (by default ECO3)
2021-09-24 13:55:07 +08:00
Andrei Safronov
9159aa58d3
tests: refactoring of the gcc's inner functions, because clang doesn't support them
2021-09-10 19:51:27 +03:00
Wu Zheng Hui
3128a2544b
Adjust the variable name &
...
Add mapping support for different sizes of spi ram
2021-08-25 16:06:28 +08:00
morris
56760c9669
pcnt: refactor hal driver
2021-08-10 17:19:21 +08:00
Ivan Grokhotkov
95699a9260
Merge branch 'bugfix/libsodium_build_with_gnu_make' into 'master'
...
libsodium: fix build issues with GNU Make
Closes IDF-3673
See merge request espressif/esp-idf!14661
2021-08-08 07:20:02 +00:00
Sachin Parekh
6582f7070e
Update tests for assert and abort
...
- Place panic_abort in IRAM
- Added abort, assert test case in case of cache disabled
- Expect assert instead of abort in a freertos_mutex test
2021-08-05 11:09:22 +05:30