Adam Múdry
6582e6c422
ci(examples): Enable storage/perf_benchmark build test for spiflash on ESP32-P4 v2
2023-10-05 13:19:19 +02:00
Adam Múdry
c86cd4623e
Revert "Merge branch 'ci/perf_monitor_spiflash_build_test_enable_esp32p4' into 'master'"
...
This reverts merge request !25636
2023-09-28 07:04:25 +08:00
Martin Vychodil
239b73bd80
Merge branch 'ci/perf_monitor_spiflash_build_test_enable_esp32p4' into 'master'
...
ci(examples): Enable storage/perf_benchmark build test for spiflash on ESP32-P4
Closes IDF-8093
See merge request espressif/esp-idf!25636
2023-09-26 23:07:56 +08:00
Sonika Rathi
ab4ab45d8a
Merge branch 'bugfix/add_warning_for_unsupported_targets' into 'master'
...
fix(example/storage): Add warning for unsupported targets for SD_Card example
See merge request espressif/esp-idf!25702
2023-09-07 17:42:23 +08:00
Chen Jichang
5ea4df682e
feat(esp_lcd): updated lvgl example to loading image from file system
...
which can help to reduce the firmware bin size
2023-09-06 14:53:24 +08:00
Adam Múdry
c08a4e6b3d
ci(examples): Enable storage/perf_benchmark build test for spiflash on ESP32-P4
2023-09-06 03:18:20 +00:00
sonika.rathi
2162a132f1
fix(example/storage): Add warning for unsupported targets for SD_Card example
2023-09-04 08:59:51 +02:00
Armando
7dbd3f6909
feat(ci): Enable p4 example, test_apps and unit tests CI build
2023-08-24 12:51:19 +08:00
Adam Múdry
ae34457e81
Merge branch 'feature/perf_monitor_example' into 'master'
...
storage: add performance test example
Closes IDF-3607
See merge request espressif/esp-idf!24327
2023-08-16 17:37:49 +08:00
Adam Múdry
e7b88a52d1
feat(examples): Add storage IO speed benchmark example
...
New example which can benchmark IO speed of SPI flash partition
(raw, FATFS, SPIFFS) and SD card (raw, FATFS) connected via SPI and SDMMC.
2023-08-15 18:47:38 +02:00
Adam Múdry
b988242b07
feat(examples): Add storage/nvsgen example
...
Showcases the use of `nvs_create_partition_image` CMake function
Remove mentions of NVS multipage blob version 1 so it's not encouraged
2023-08-04 11:48:02 +02:00
sonika.rathi
c9b2b03d3d
feat(example/storage/littlefs): add LittleFS demo example
2023-07-21 11:08:01 +02:00
Martin Vychodil
53f680d0c1
Merge branch 'fix/sdcard_example_blocker' into 'master'
...
CI: fix sdcard examples timeout
Closes IDFCI-1696, IDFCI-1683, IDFCI-1684, and IDFCI-1687
See merge request espressif/esp-idf!23410
2023-04-26 16:33:53 +08:00
Adam Múdry
b87b58da57
CI: fix sdcard examples timeout
2023-04-24 16:44:01 +02:00
laokaiyao
bf2a7b2df6
esp32h4: removed esp32h4 related codes
2023-04-23 12:03:07 +00:00
Armando
920ecff168
sdmmc: in/out phase adapted to esp32 and esp32s3
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
Adam Múdry
16915556a3
fatfs: fstat - enable setting a custom preferred block size
...
Enables setting a custom st_blksize in fatfs vfs fstat function.
Directly affects file buffer size for fatfs.
Increasing the value helps with fread and fgets speeds, however increases heap usage.
Added info to docs about improving I/O performance.
2023-03-08 09:09:47 +01:00
Armando
83d0181a2c
sdspi: h2 support
2023-02-27 14:39:06 +08:00
Armando
90a6018e67
fatfs: added an API to format FAT on sdcard
2023-02-16 14:17:51 +08:00
Armando
4150bfb403
fatfs: added an API to format FAT on spiflash
2023-02-16 12:19:35 +08:00
Cao Sen Miao
94120b82c2
esp32h2: add build test
2023-01-17 10:29:04 +08:00
morris
69dd3839ce
Merge branch 'feature/c6_sdspi_host' into 'master'
...
sdspi: bringup sdspi on c6
Closes IDF-5860
See merge request espressif/esp-idf!21681
2022-12-21 14:07:56 +08:00
Armando
2b14a4e93e
sdspi: bringup sdspi on c6
2022-12-19 16:33:50 +08:00
Angus Gratton
d89652b382
build system: Add idf_component_add_link_dependency function, use for spi_flash overriding
2022-12-16 16:26:44 +01:00
Martin Vychodil
732b76e3a0
Merge branch 'bugfix/nvs_cxx_example' into 'master'
...
nvs_flash: fixed wrong error check after open_nvs_handle in example
Closes IDFGH-8809
See merge request espressif/esp-idf!21269
2022-12-14 17:17:59 +08:00
Fu Hanxi
dc3c630919
ci: move more openocd scripts into pytest-embedded
2022-12-08 14:25:02 +08:00
Fu Hanxi
67cd264535
pytest: check duplicates test case/script names
2022-12-08 09:49:12 +08:00
Jakob Hasse
ec986651db
bugfix(nvs_flash): fixed wrong error check after open_nvs_handle
...
Closes https://github.com/espressif/esp-idf/issues/10240
2022-12-01 18:05:56 +01:00
Song Ruo Jing
7466ddfa8c
ci: Make consistence between pytest_*.py and .build-test-rules.yml for esp32c6 (i.e. to pass check_test_scripts_build_test_rules.py)
2022-11-28 11:58:30 +08:00
Armando
aba9f80cd2
partition: use esp_partition_munmap instead of spi_flash_munmap
2022-11-09 20:15:17 +08:00
laokaiyao
8677216576
esp32h2: renaming esp32h2 to esp32h4
2022-11-08 17:05:33 +08:00
Martin Vychodil
c9c7573f71
Storage: Partition APIs moved to the new component 'esp_partition'
...
All the partition handling API functions and data-types were moved from the 'spi_flash' component to the new one named 'esp_partition'. See Storage 5.x migration guide for more details
2022-11-02 21:54:45 +01:00
Song Ruo Jing
2557e24a28
ci: Enable esp32c6 example, test_apps, and unit tests CI build stage
2022-11-01 11:23:21 +08:00
Ivan Grokhotkov
23e1ae1bc2
storage: fix and re-enable -Wformat warnings
2022-10-06 16:16:32 +02:00
Martin Vychodil
7d28abae4e
Merge branch 'feature/sdcard_custom_freq' into 'master'
...
[Storage] Enable SD card custom frequency setup
Closes IDFGH-7089
See merge request espressif/esp-idf!19038
2022-09-23 17:45:30 +08:00
harshal.patil
b95decd465
parttool: added tests to check the external interface (parsing) of the parttool commands
...
The existing tests detect errors in the internal interface (eg. parttool read-write functions) and did not check for any possible breakages in the args parsing of the parttool commands.
2022-09-20 11:28:55 +05:30
Martin Vychodil
56f2001317
sdmmc/sdspi: allow custom setup of SD card frequency
...
In order to allow flexible setup of SD card frequency, sdmmc_host_t.max_freq_khz is used as a limit
Closes https://github.com/espressif/arduino-esp32/issues/6225
2022-09-12 17:08:36 +02:00
Ivan Grokhotkov
e596c84d49
build system: re-add -Wno-format as private flag for some example components
2022-08-03 16:42:47 +04:00
Martin Gaňo
2ddcda29b3
fatfsparse.py: Add support for WL
2022-07-26 14:50:07 +02:00
radek.tandler
3271088428
storage examples migrated to pytest
2022-07-22 10:23:53 +02:00
Fu Hanxi
c0568611dd
docs: changes docs supported targets tables
2022-07-14 08:26:32 +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
Cao Sen Miao
a690a87829
spi_flash: Remove legacy spi_flash drivers
2022-07-01 11:01:34 +08:00
Matus Fabo
384d61f156
remove: sdspi_host deprecated api
...
add: migration guide documentation
2022-06-12 20:07:27 +00:00
Michael (XIAO Xufeng)
f7be540222
ci: partially enable example build for esp32c2
2022-06-02 14:17:31 +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
b682527c60
Merge branch 'feature/ext_flash_fatfs_update' into 'master'
...
fatfs: add new ESP32 targets to external flash example
Closes IDF-3621
See merge request espressif/esp-idf!17371
2022-05-18 16:43:52 +08:00
Adam Múdry
e5cff100b7
fatfs: add new ESP32 targets to external flash example
2022-05-12 18:57:10 +00:00
Ivan Grokhotkov
27e1490bfc
examples: sd_card: fix example test not getting the expected name
...
SD card example prints the line which looks like:
Name: 00000
If only part of the line is received, the regular expression in the
test still matches, and partial name is obtained. Later the example
test expects to see the same name in the file read from the SD card.
This check fails, because only partial name was received earlier.
Fix by adding a CR to the regular expression so that the entire name
is matched.
2022-05-11 21:50:11 +02:00
Erhan Kurubas
ad078c5153
semihosting: drop absolute path support
2022-05-05 09:12:42 +00:00
Cao Sen Miao
4418a855ba
spi_flash: refactor the spi_flash clock configuration, and add support for esp32c2
2022-04-26 15:22:37 +08:00
Matus Fabo
24268d47a2
change: renamed FATFS convenience mounting functions
...
change: renamed every instance of these functions
add: deprecation notice with old functions
change: CC0 licence to CC0-1.0 in fatfsgen_example_main.c
2022-04-11 08:44:40 +00:00
Adam Múdry
36db6a6681
spiffs: Add esp_spiffs_check() function
...
esp_spiffs_check() exposes SPIFFS_check() functionality to the user
2022-04-08 19:40:56 +00:00
Martin Gano
d76de32f74
fatfsgen.py: enabled date and time for fatfs
2022-04-07 15:01:28 +02:00
morris
5963de1caf
Merge branch 'ci/fix_duplicated_test_names' into 'master'
...
CI: rename some tests to avoid duplicated test names
See merge request espressif/esp-idf!17463
2022-03-14 11:52:02 +08:00
Chen Yudong
4dc74c9c42
CI: rename some tests to avoid duplicated test names
2022-03-11 18:38:41 +08:00
Martin Gaňo
fea2b5b64e
fatfsgen.py: enabled long names support
...
Closes https://github.com/espressif/esp-idf/issues/8171
2022-03-11 11:20:31 +01:00
Ivan Grokhotkov
3df2be5904
Merge branch 'bugfix/sdmmc_example_esp32s3' into 'master'
...
examples: sdmmc: re-enable for ESP32-S3, add Kconfig options for pins
Closes IDF-4642
See merge request espressif/esp-idf!17352
2022-03-04 18:47:59 +08:00
Ivan Grokhotkov
c8b43ee0c1
Merge branch 'bugfix/sdspi_example_esp32s3' into 'master'
...
examples: sdspi: re-enable for ESP32-S3, add Kconfig options for pins
Closes IDF-4641
See merge request espressif/esp-idf!17067
2022-03-04 18:42:53 +08:00
Ivan Grokhotkov
e9ed46d7ce
examples: sdmmc: re-enable for ESP32-S3, add Kconfig options for pins
2022-03-03 23:37:42 +01:00
Ivan Grokhotkov
eefb0442c9
examples: sdspi: use default DMA channel
2022-03-03 21:40:05 +01:00
Ivan Grokhotkov
dc2f4483bf
examples: sdspi: re-enable for ESP32-S3, add Kconfig options for pins
2022-03-03 21:40:03 +01:00
Laukik Hase
3925365351
ci: Fix pre-check
stage failing tests
...
- Updated license headers
- Re-enabled public headers and static analysis checks
- Fix public header file check failure
Co-authored-by: Aditya Patwardhan <aditya.patwardhan@espressif.com>
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
45122533e0
mbedtls-3 update:
...
1) Fix build issue in mbedtls
2) skip the public headers check in IDF
3)Update Kconfig Macros
4)Remove deprecated config options
5) Update the sha API according to new nomenclature
6) Update mbedtls_rsa_init usage
7) Include mbedtls/build_info.h instead of mbedtls/config.h
8) Dont include check_config.h
9) Add additional error message in esp_blufi_api.h
2022-03-03 01:37:10 +05:30
Mahavir Jain
38d4250c15
examples/spiffs: increase test timeout
...
This is to address frequent CI test failure where test most likely
timeouts during SPIFFS formatting operation.
2022-02-23 14:33:10 +05:30
Ivan Grokhotkov
876f4d6a1c
vfs: add support for semihosting on ESP32-C3
2022-01-14 17:29:03 +01:00
morris
869bed1bb5
soc: don't expose unstable soc header files in public api
2022-01-06 23:10:22 +08:00
Martin Gano
7460deeae8
support for wear levelling in fatfs partition generator
...
Closes https://github.com/espressif/esp-idf/issues/5785
2021-11-29 16:57:47 +01:00
Roland Dobai
337d9e68a4
Storage: Remove makefile reference from spiffsgen README
2021-11-11 15:32:36 +01:00
Roland Dobai
766aa57084
Build & config: Remove leftover files from the unsupported "make" build system
2021-11-11 15:32:36 +01: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
Martin Gano
3c4034d36e
support for generating FATFS on a host
2021-11-03 13:06:11 +01:00
Marek Fiala
ff18a96f7d
tools: replace _ with - in idf.py
...
Closes https://github.com/espressif/esp-idf/issues/5126
2021-10-13 17:30:38 +08:00
Jakob Hasse
81e9266204
[examples]: removed hyphens
...
Replaced hyphens with underscores in examples
project definition for all examples which had
hyphens in their project name. dpp-enrollee is
an exceptions because the name matches the
project directory name while the project
directory also contains hyphens.
2021-10-09 13:58:24 +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
SalimTerryLi
f1202abc4e
example/sdspi: fix incorrect SPI DMA setting on c3
2021-09-24 15:17:03 +08:00
KonstantinKondrashov
709abee65c
example_tests: Deletes usage esp32c3 ECO0 in CI (by default ECO3)
2021-09-24 13:55:07 +08:00
Fu Hanxi
923e862ed2
ci: temporarily disable s3 build for a few examples
2021-09-16 12:20:11 +08:00
Martin Vychodil
a866779070
Examples/Storage: sufficient timeout for SD formatting
...
Too short timeouts often cause useless failures on large-capacity SDs (16GB+)
Fixed by adding 60 sec timeout on new "Filesystem mounted" checkpoint
JIRA IDF-3741
2021-08-23 06:13:41 +02:00
Cao Sen Miao
fecf27e54c
spi_flash: add support for 32Mbit address GD flash, for GD25Q256
2021-07-02 17:13:51 +08:00
Michael (XIAO Xufeng)
dc6d6f225e
spi_flash: reverted unwilling cs_setup argument
...
Partially reverted 08f1bbe0c7
.
The host should have this flexibility, which is consistent to the cs_hold argument.
However, the user should know as less as possible about the host.
So the wrapper layer (esp_flash_spi_init.c) should cover this, helping to set cs_setup to 1, to meet the common requirements.
2021-06-04 15:29:53 +08:00
Cao Sen Miao
08f1bbe0c7
spi_flash: fix cs line setup to make the flash driver more stable
2021-06-01 16:41:41 +08:00
Ivan Grokhotkov
47685f901d
examples: sdmmc: set slot width and pins explicitly
...
... and prefer SDMMC_SLOT_FLAG_INTERNAL_PULLUP over explicitly setting
pullups on pins.
2021-05-10 23:21:27 +02:00
Martin Vychodil
99aa037793
* SD card example split (SDMMC/SDSPI)
...
JIRA IDF-1456
2021-04-29 10:38:55 +02:00
Michael (XIAO Xufeng)
26585b4b4b
esp_flash: support override default chip driver list
2021-04-26 16:05:42 +08:00
KonstantinKondrashov
ec4de4fe5c
example_tests: CI uses ECO0 for esp32c3 tests
2021-04-09 14:26:06 +08:00
Marius Vikhammer
c85d949c1f
ci: run Example_GENERIC for C3
...
Add support for running example_GENERIC tests for C3 on label.
Fix examples that fail.
2021-03-15 10:27:07 +08:00
Cao Sen Miao
3e0a765cfd
spi_flash: fix the issue of ext_flash_fatfs_example
2021-02-24 11:13:43 +08:00
Marius Vikhammer
04df1f3a42
CI: enable example builds for C3
...
Enables building C3 examples in CI.
Fixes related warnings/errors and disables examples that cannot run.
2021-02-09 12:04:02 +08:00
Pedro Minatel
42b85a82ae
Apply 1 suggestion(s) to 1 file(s)
2021-02-01 08:35:25 +00:00
pedro.minatel
5c1d19ad02
example/storage: fix find_partition function when no partition is found
2021-02-01 08:35:25 +00:00
Fu Hanxi
0146f258d7
style: format python files with isort and double-quote-string-fixer
2021-01-26 10:49:01 +08:00
Angus Gratton
29315213a8
example: Fix spiffsgen example test
...
Regression in 66fb5a29bb
- whitespace cleanup
added trailing newline (\n) to the end of the file, which is printed as \r\n by
IDF printf, so the 'expect' fails to see it.
2020-11-17 22:28:34 +00:00
Angus Gratton
66fb5a29bb
Whitespace: Automated whitespace fixes (large commit)
...
Apply the pre-commit hook whitespace fixes to all files in the repo.
(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
Angus Gratton
e82eac4354
cmake: Apply cmakelint fixes
2020-11-11 07:36:35 +00:00
Michael (XIAO Xufeng)
647dea9395
soc: combine xxx_caps.h into one soc_caps.h
...
During HAL layer refactoring and new chip bringup, we have several
caps.h for each part, to reduce the conflicts to minimum. But this is
The capabilities headers will be relataive stable once completely
written (maybe after the featues are supported by drivers).
Now ESP32 and ESP32-S2 drivers are relative stable, making it a good
time to combine all these caps.h into one soc_caps.h
This cleanup also move HAL config and pin config into separated files,
to make the responsibilities of these headers more clear. This is
helpful for the stabilities of soc_caps.h because we want to make it
public some day.
2020-10-17 16:10:15 +08:00
Ivan Grokhotkov
fb43cfbf6a
examples/parttool: fix the test to work on parallel test runner
...
Pass the DUT port to parttool_example.py as an argument.
2020-09-08 17:35:15 +02:00
morris
a4d0033c03
esp_rom: extract common GPIO apis into esp_rom_gpio.h
2020-07-07 11:40:19 +08:00