232 Commits

Author SHA1 Message Date
Radek Tandler 5c8f5fc66d Merge branch 'feature/nvs_fd_support' into 'master'
feat(nvs_flash): Added support for storing flash and double types

Closes IDFGH-9857

See merge request espressif/esp-idf!47045
2026-04-15 11:03:57 +02:00
Zhang Shuxian 9263b4bdba docs: Update CN translation for partition 2026-04-13 11:05:19 +08:00
Adam Múdry 749c446a7e feat(esp_partition): Add esp_partition_flash_binary() CMake function
Add a new CMake function esp_partition_flash_binary() that provides a
unified API for registering partition data binaries to be flashed. It
replaces the direct esptool_py_flash_target calls scattered across
components (spiffs, fatfs, nvs_flash) with a single function that:

- Resolves partition offset from the partition table automatically
- Determines encryption requirements (auto-detect or ALWAYS_PLAINTEXT)
- Creates per-partition flash targets (e.g. idf.py <partition>-flash)
- Optionally includes the binary in `idf.py flash` via FLASH_IN_PROJECT

On the linux target, the function registers binaries for pre-loading
into the emulated flash. A build-time manifest (linux_flash_data.txt)
is generated via file(GENERATE), and partition_linux.c reads it at
runtime to copy each binary into the memory-mapped flash buffer at
the correct offset.

The partition_ops example is updated to use the new function and
includes a custom_partition with pre-built data to demonstrate the
full workflow, including on the linux target.
2026-04-10 15:22:50 +02:00
Martin Vychodil 7043fb0d14 feat(fatfs): Added BDL support to FatFS component 2026-04-07 07:11:21 +02:00
radek.tandler a5443bbb94 feat(nvs_flash): Added support for storing flash and double types
- added backward compatibility test for unknown NVS entry types
 - axtended documentation with the support of double and float
2026-03-31 19:02:43 +02:00
Zhang Shuxian 0dd5d8f726 docs: Provide translation for fatfs docs 2026-03-31 10:24:48 +08:00
Tomáš Rohlínek 917e0fd255 docs(storage/fatfs): Fix problem with FatFs refactor 2026-03-31 10:20:49 +08:00
Tomáš Rohlínek 4af8f201b9 docs(storage/fatfs): Refactor FatFs documentation 2026-03-31 10:20:49 +08:00
Tomáš Rohlínek a07d018409 docs(storage/fatfs): Update LFN default and dynamic buffers docs 2026-03-31 10:20:49 +08:00
Tomas Rohlinek 03086cb4a5 Merge branch 'feature/add_blockdev_docs' into 'master'
feat(storage/blockdev): Add documentation including contracts for operations

Closes IDF-12759

See merge request espressif/esp-idf!43156
2026-03-26 16:17:17 +01:00
Tomáš Rohlínek d8e3106134 feat(storage/blockdev): Add documentation including contracts for operations 2026-03-26 12:20:35 +01:00
Zhang Shuxian 38fea8472a docs: Update CN translation for nvs_flash 2026-03-23 16:35:56 +08:00
radek.tandler 30e598a5a1 docs(storage/nvs_flash): Improved NVS documentation
- Added documentation of BDL support in NVS
 - Documentation structure was adjusted and refined for better clarity
2026-03-19 09:31:52 +01:00
Adam Múdry 653cea9c94 fix(sdmmc): Multi-block read/writes support refactor + tests and documentation added 2026-03-16 13:33:03 +01:00
Tomáš Rohlínek 405b82921d feat(storage/vfs): Document context-less API deprecation 2026-03-11 11:04:34 +01:00
radek.tandler 123de681bd fix(doc): Documentation of NVS HMAC encryption adjusted 2026-03-05 11:50:41 +01:00
Tomáš Rohlínek 96f820e535 feat(storage/fatfs): Allow fatfs buffers to be aligned for DMA access 2026-02-25 12:50:20 +01:00
radek.tandler d50c7b4b6b feat(nvs_flash): Added purging of erased items at namespace level
- Added new option NVS_READWRITE_PURGE for nvs_open. All update and erase operations of
    the handle are wiping out the content erased items on top of just marking them erased.
  - Added new API call nvs_purge_all allowing to wipe out the existing erased items
    of the handle.
2026-02-05 11:07:43 +01:00
Zhang Shuxian 1ae27538a0 docs: Update translation for flash erase 2026-01-13 11:22:16 +08:00
radek.tandler 7dca5f208f feat(nvs_flash): Added option enabling verification of flash erase operation - doc 2026-01-09 11:14:09 +08:00
armando 3a50531dab fix(sdmmc): fixed header structure not shown in doc issue 2025-12-23 18:47:42 +08:00
Tomáš Rohlínek 8c9d62de98 feat(storage/vfs): Remove old API usage 2025-12-16 17:48:55 +08:00
Zhang Shuxian f13c16e031 docs: Update CN translation for NVS statistics example 2025-11-10 12:18:31 +01:00
Martin Havlik ca16bf9c68 docs(examples/storage): Add docs entries for 2 new NVS examples
Extend the existing mentions of NVS examples with 2 newly added
`nvs_statistics` and `nvs_iteration`.
2025-11-10 12:18:31 +01:00
Tomáš Rohlínek 4568f6c776 fix(storage/vfs): Fix typo in code snippet in docs 2025-10-15 10:08:52 +02:00
Peter Dragun e3198fff3c feat: Update esptool to v5 2025-09-30 15:28:55 +02:00
Laukik Hase f565fc2481 change(nvs_flash): Add a private dependency of the nvs_sec_provider component
- Closes https://github.com/espressif/esp-idf/issues/17256
2025-09-19 10:17:46 +05:30
Chen Jichang 5909a4d685 remove(essl): remove essl related files 2025-07-03 11:36:45 +08:00
armando 77ae2808b0 refactor(sd): port legacy sd driver with NG driver 2025-05-15 10:57:45 +08:00
Laukik Hase c16fc04c2d docs(esp_tee): Revise TEE secure storage and related documentation 2025-05-04 18:22:22 +05:30
sonika.rathi b077caeebc refactor(examples/storage): update document links 2025-04-03 14:21:11 +02:00
Adam Múdry d8ebca368c feat(nvs): Allow read-only NVS partitions smaller than 0x3000
E.g. for factory settings data

Closes https://github.com/espressif/esp-idf/issues/15317
2025-03-27 15:50:27 +08:00
Adam Múdry 58fbcfb407 Merge branch 'feat/ff_fs_nofsinfo_kconfig' into 'master'
feat(fatfs): Add an option to set FF_FS_NOFSINFO value

Closes IDFGH-14467

See merge request espressif/esp-idf!36592
2025-03-20 20:18:52 +08:00
Zhang Shuxian a080ce9fad docs: Provide CN translation for nvs bootloader and fix broken link 2025-02-28 19:09:52 +08:00
Zhang Shuxian 26078bbf9a docs: Update CN translation for fatfs 2025-02-26 10:04:26 +08:00
Zhang Shuxian c9183973cc docs: Update CN translation for fatfs 2025-02-21 21:39:44 +08:00
Adam Múdry d87a6d4b61 feat(fatfs): Add Kconfig options to set FF_FS_NOFSINFO value
Closes https://github.com/espressif/esp-idf/issues/15241
2025-02-21 21:39:44 +08:00
Tomáš Rohlínek 09aae72bfa docs(storage/fatfs): discrepancies between FATFS and POSIX
Closes https://github.com/espressif/esp-idf/issues/15187
2025-02-13 10:15:52 +01:00
harshal.patil 62df1017ad change(nvs_sec_provider): Change NVS encryption's default efuse HMAC key ID to -1 2025-01-29 18:51:29 +05:30
harshal.patil cadd6b8bcc feat(nvs_flash): Support reading encrypted NVS partitions in the bootloader 2025-01-29 18:51:29 +05:30
shenmengjing 3ca973d30a docs: Update CN translation for vfs.rst 2024-12-03 17:25:53 +08:00
Tomas Rohlinek 408ae4c560 Merge branch 'feature/switch_to_new_vfs_api' into 'master'
feat(storage): switch to new VFS API

Closes IDF-11473

See merge request espressif/esp-idf!32029
2024-11-22 16:51:46 +08:00
Tomáš Rohlínek ae1e8a2ea3 feat(storage/vfs): update docs to new version of API 2024-11-21 07:41:41 +01:00
radek.tandler c445ec134b feat(nvs_flash): Implemented basic nvs_flash support for bootloader 2024-11-14 11:56:45 +01:00
Linda c0417422c5 docs: update application examples for storage component 2024-10-23 16:19:42 +08:00
Zhang Shuxian 09820a0ae6 docs: Update CN trans for vfs.rst and improve EN formatting 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 18e20c0bc5 feat(storage/vfs): change names related to minified vfs 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 3cab84f033 fix(storage/vfs): clarify minified related documentation 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 923fb635b4 feat(storage/vfs): add documentation for minified_vfs 2024-10-22 14:50:31 +08:00
Tomas Rohlinek fe51222a02 Merge branch 'feat/simplify_storage_examples' into 'master'
feat(storage/fatfs): update fatfs examples

Closes IDF-5705

See merge request espressif/esp-idf!31174
2024-10-18 15:28:44 +08:00