Home
last modified time | relevance | path

Searched +full:erase +full:- +full:block +full:- +full:size (Results 1 – 25 of 238) sorted by relevance

12345678910

/Zephyr-Core-3.6.0/dts/bindings/mtd/
Datmel,sam-flash.yaml2 # SPDX-License-Identifier: Apache-2.0
7 The Atmel SAM flash area varies in write-block-size, memory area,
8 and the layout of erase-blocks.
12 |--------------------|
13 | 8 Kbytes | erase block size = 2048
14 |--------------------|
15 | 8 Kbytes | erase block size = 2048
16 |--------------------|
17 | 48 Kbytes | erase block size = 4096
18 |--------------------|
[all …]
Dsoc-nv-flash.yaml3 compatible: "soc-nv-flash"
8 erase-block-size:
10 description: address alignment required by flash erase operations
12 write-block-size:
Datmel,at45.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [spi-device.yaml]
11 jedec-id:
12 type: uint8-array
16 size:
21 sector-size:
24 description: Flash sector size in bytes.
26 sector-0a-pages:
32 and has its size equal to eight pages (one block) and the second one
33 (usually 0b) is the complement to the size of a regular sector.
[all …]
/Zephyr-Core-3.6.0/dts/bindings/misc/
Dzephyr,flash-disk.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Block storage device on flash partition
6 compatible: "zephyr,flash-disk"
17 disk-name:
23 sector-size:
27 Emulated block device sector size in bytes.
29 cache-size:
33 Size of statically allocated buffer size in bytes. The size should be
34 adequately chosen. On storage backends with uniform erase-blocks it
35 should be at least the erase-block-size, on storage backends with
[all …]
/Zephyr-Core-3.6.0/dts/bindings/espi/
Dnuvoton,npcx-espi-taf.yaml2 # SPDX-License-Identifier: Apache-2.0
10 compatible = "nuvoton,npcx-espi-taf";
13 mapped-addr = <0x68000000>;
14 max-read-sz = "NPCX_ESPI_TAF_MAX_READ_REQ_64B";
15 erase-sz = "NPCX_ESPI_TAF_ERASE_BLOCK_SIZE_4KB";
17 #address-cells = <1>;
18 #size-cells = <1>;
22 compatible: "nuvoton,npcx-espi-taf"
24 include: [espi-controller.yaml, pinctrl-device.yaml]
27 mapped-addr:
[all …]
/Zephyr-Core-3.6.0/tests/drivers/flash_simulator/boards/
Dnative_ev_0x00.overlay4 * SPDX-License-Identifier: Apache-2.0
8 erase-value = < 0x00 >;
12 erase-block-size = <1024>;
13 write-block-size = <4>;
Dnucleo_f411re.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "zephyr,memory-region", "mmio-sram";
11 zephyr,memory-region = "FlashSim";
16 sim_flash_controller: sim-flash-controller@0 {
17 compatible = "zephyr,sim-flash";
20 #address-cells = <1>;
21 #size-cells = <1>;
22 erase-value = <0xff>;
23 memory-region = <&sram_2001C000>;
27 compatible = "soc-nv-flash";
[all …]
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
8 erase-block-size = <1024>;
9 write-block-size = <4>;
/Zephyr-Core-3.6.0/dts/bindings/fs/
Dzephyr,fstab,littlefs.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Description of pre-defined file systems.
9 include: "zephyr,fstab-common.yaml"
12 # num-files and num-dirs are not filesystem-specific.
14 read-size:
18 The size of file system read operations, in bytes.
25 prog-size:
29 The size of file system program (write) operations, in bytes.
36 cache-size:
40 The size of block caches, in bytes.
[all …]
/Zephyr-Core-3.6.0/drivers/flash/
DKconfig.nrf1 # SPDX-License-Identifier: Apache-2.0
48 bool "Nordic nRFx flash driver partial erase"
51 Enable partial erase feature. Partial erase is performed in time
54 This allows interrupting flash erase between operations
56 This feature may also be used for better syncing flash erase
61 int "Partial erase timeout in MS"
65 This is maximum time, in ms, that NVMC will use to erase part
77 to the flash erase and write operations timeout. The base for
86 ordinary flash memory. Erase is possible for whole UICR at once.
89 bool "8-bit write block size emulation"
[all …]
DKconfig.nxp_s322 # SPDX-License-Identifier: Apache-2.0
23 JESD216-compatible devices, with the following notes:
24 - Quad Enable Requirements bitfield (DW15) must be present in the SFDP
27 - Soft Reset bitfield (DW16) must be present in the SFDP tables to
29 - 0-X-X mode discovery not yet implemented by the HAL.
32 page size and 4 KiBy, 32 KiBy and 64 KiBy erase instructions. The
33 device size and jedec-id properties must be set in devicetree node.
46 int "Page size to use for FLASH_LAYOUT feature"
50 By default the page size corresponds to the sector size (4096) for a NOR
51 flash memory. Other options may include the 32K-byte erase size (32768),
[all …]
/Zephyr-Core-3.6.0/subsys/fs/
DKconfig.littlefs4 # SPDX-License-Identifier: Apache-2.0
31 int "Minimum size of a block read"
37 int "Minimum size of a block program"
43 int "Size of block caches in bytes"
46 Each cache buffers a portion of a block in RAM. The littlefs
51 device, and a factor of the block size.
54 int "Size of lookahead buffer in bytes"
63 int "Number of erase cycles before moving data to another block"
66 For dynamic wear leveling, the number of erase cycles before data
67 is moved to another block. Set to a non-positive value to
[all …]
/Zephyr-Core-3.6.0/dts/bindings/flash_controller/
Datmel,sam-flash-controller.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "atmel,sam-flash-controller"
8 include: flash-controller.yaml
14 "#erase-block-cells":
18 erase-block-cells:
19 - pages-count
20 - pages-size
Dcdns,nand.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [flash-controller.yaml, reset-device.yaml]
11 data-rate-mode:
14 description: Data Rate mode Selection. 0 - SDR , 1 - NVDDR.
16 - 0
17 - 1
19 block-size:
22 description: Erase Block size of Cadence Nand
/Zephyr-Core-3.6.0/dts/arm/st/h7/
Dstm32h745.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/dt-bindings/display/panel.h>
12 compatible = "st,stm32h745", "st,stm32h7", "simple-bus";
14 flash-controller@52002000 {
16 compatible = "st,stm32-nv-flash", "soc-nv-flash";
17 write-block-size = <32>;
18 erase-block-size = <DT_SIZE_K(128)>;
19 /* maximum erase time for a 128K sector */
20 max-erase-time = <4000>;
23 compatible = "st,stm32-nv-flash", "soc-nv-flash";
[all …]
/Zephyr-Core-3.6.0/samples/drivers/soc_flash_nand/
Dsample.yaml7 - intel_socfpga_agilex5_socdk
9 - intel_socfpga_agilex5_socdk
11 - flash
12 - cdns
19 - "Nand flash driver test sample"
20 - "Nand flash driver block size 20000"
21 - "The Page size of 800"
22 - "Nand flash driver data erase successful...."
23 - "Nand flash driver write completed...."
24 - "Nand flash driver read completed...."
[all …]
/Zephyr-Core-3.6.0/samples/drivers/soc_flash_nrf/
DREADME.rst1 .. zephyr:code-sample:: soc-flash-nrf
3 :relevant-api: flash_interface flash_area_api
15 Within the sample, user may observe how read/write/erase operations
23 access enabled, as it is default for SoC devices, and fixed-partition
28 .. zephyr-app-commands::
29 :zephyr-app: samples/drivers/soc_flash_nrf
37 .. code-block:: console
39 *** Booting Zephyr OS build v2.7.99-17621-g54832687bcbb ***
44 Test 1: Flash erase page at 0x82000
45 Flash erase succeeded!
[all …]
Dsample.yaml6 - nrf52dk_nrf52832
7 - nrf9160dk_nrf9160
8 - nrf9160dk_nrf9160_ns
10 - nrf52dk_nrf52832
12 - flash
13 - drivers
20 - "Flash erase succeeded"
21 - "Data read: 1234"
22 - "Data read matches data written. Good!"
23 - "Flash erase succeeded"
[all …]
/Zephyr-Core-3.6.0/dts/riscv/ite/
Dit82202ax-512.dtsi4 * SPDX-License-Identifier: Apache-2.0
11 flashctrl: flash-controller@f01000 {
12 compatible = "ite,it8xxx2-flash-controller";
14 #address-cells = <1>;
15 #size-cells = <1>;
18 compatible = "soc-nv-flash";
20 erase-block-size = <4096>;
21 write-block-size = <4>;
/Zephyr-Core-3.6.0/tests/drivers/flash/erase_blocks/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
57 static bool test_flash_mem_is_set_to(const uint8_t *data, uint8_t to, size_t size) in test_flash_mem_is_set_to() argument
59 for (size_t i = 0; i < size; i++) { in test_flash_mem_is_set_to()
68 static bool test_flash_is_erased(off_t offset, size_t size) in test_flash_is_erased() argument
75 while (offset < size) { in test_flash_is_erased()
76 remaining = size - (size_t)offset; in test_flash_is_erased()
83 if (!test_flash_mem_is_set_to(test_erase_buffer, parameters->erase_value, in test_flash_is_erased()
101 LOG_INF("Erasing section of size %zu at offset %zu controlled by %s", in test_flash_erase_partition()
104 flash_controller->name); in test_flash_erase_partition()
114 "Failed to erase partition"); in test_flash_before()
[all …]
/Zephyr-Core-3.6.0/dts/arm/nordic/
Dnrf54l_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
12 rram_controller: rram-controller@5004b000 {
13 compatible = "nordic,rram-controller";
15 #address-cells = <1>;
16 #size-cells = <1>;
19 compatible = "soc-nv-flash";
20 erase-block-size = <4096>;
21 write-block-size = <1>;
27 zephyr,flash-controller = &rram_controller;
30 sw_pwm: sw-pwm {
/Zephyr-Core-3.6.0/dts/arm/nxp/
Dnxp_kv5xf512vlx24.dtsi4 * SPDX-License-Identifier: Apache-2.0
14 compatible = "mmio-sram";
21 compatible = "soc-nv-flash";
23 erase-block-size = <DT_SIZE_K(8)>;
24 write-block-size = <8>;
Dnxp_kv5xf1m0vlx24.dtsi4 * SPDX-License-Identifier: Apache-2.0
14 compatible = "mmio-sram";
21 compatible = "soc-nv-flash";
23 erase-block-size = <DT_SIZE_K(8)>;
24 write-block-size = <8>;
/Zephyr-Core-3.6.0/boards/arm/legend/
Dlegend.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <st/f0/stm32f070cbtx-pinctrl.dtsi>
10 #include <zephyr/dt-bindings/led/led.h>
11 #include <zephyr/dt-bindings/led/seagate_legend_b1414.h>
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
17 zephyr,shell-uart = &usart1;
24 spi-flash0 = &spi_nor;
27 board_id: brd-id {
28 compatible = "gpio-keys";
[all …]
/Zephyr-Core-3.6.0/include/zephyr/storage/
Dflash_map.h2 * Copyright (c) 2017-2024 Nordic Semiconductor ASA
6 * SPDX-License-Identifier: Apache-2.0
54 * This structure represents a fixed-size partition on a flash device.
63 /** Total size */
82 /** Sector size in bytes */
90 * This is used to pass data to be used to check flash integrity using SHA-256
98 size_t rblen; /** Size of read buffer */
123 * @return 0 on success, -EACCES if the flash_map is not available ,
124 * -ENOENT if @p ID is unknown, -ENODEV if there is no driver attached
143 * request. API has the same limitation regard read-block alignment and size
[all …]

12345678910