/Zephyr-latest/dts/bindings/qspi/ |
D | st,stm32-qspi.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 pinctrl-0 = <&quadspi_clk_pe10 &quadspi_ncs_pe11 14 dma-names = "tx_rx"; 19 compatible: "st,stm32-qspi" 21 include: [base.yaml, pinctrl-device.yaml] 32 pinctrl-0: 35 pinctrl-names: 55 dma-names: 60 dma-names = "tx_rx"; 62 dual-flash: [all …]
|
/Zephyr-latest/samples/subsys/nvs/ |
D | README.rst | 1 .. zephyr:code-sample:: nvs 2 :name: Non-Volatile Storage (NVS) 3 :relevant-api: nvs_high_level_api 5 Store and retrieve data from flash using the NVS API. 11 module for non-volatile (flash) storage. In this application, 12 a counter is incremented on every reboot and stored in flash, 18 * A board with flash support 28 .. zephyr-app-commands:: 29 :zephyr-app: samples/subsys/nvs 31 :goals: build flash [all …]
|
/Zephyr-latest/drivers/hwinfo/ |
D | hwinfo_sam.c | 4 * SPDX-License-Identifier: Apache-2.0 26 /* On the Atmel SAM SoC series, the device id is located in the flash 27 * controller. The controller can either present the flash area containing 28 * the code, the unique identifier or the user signature area at the flash 29 * location. Therefore the function reading the device id must be executed 31 * code each time the device id is requested, we do this at boot time at save 32 * the 128-bit value into RAM. 37 uint8_t *flash = (uint8_t *)CONFIG_FLASH_BASE_ADDRESS; in hwinfo_sam_read_device_id() local 40 /* Switch the flash controller to the unique identifier area. The flash in hwinfo_sam_read_device_id() 44 efc->EEFC_FCR = EEFC_FCR_FKEY_PASSWD | EEFC_FCR_FCMD_STUI; in hwinfo_sam_read_device_id() [all …]
|
/Zephyr-latest/doc/services/storage/nvs/ |
D | nvs.rst | 3 Non-Volatile Storage (NVS) 6 Elements, represented as id-data pairs, are stored in flash using a 7 FIFO-managed circular buffer. The flash area is divided into sectors. Elements 9 new sector in the flash area is prepared for use (erased). Before erasing the 10 sector it is checked that identifier - data pairs exist in the sectors in use, 11 if not the id-data pair is copied. 13 The id is a 16-bit unsigned number. NVS ensures that for each used id there is 14 at least one id-data pair stored in flash at all time. 19 Each element is stored in flash as metadata (8 byte) and data. The metadata is 22 of: id, data offset in sector, data length, part (unused), and a CRC. This CRC is [all …]
|
/Zephyr-latest/samples/subsys/nvs/src/ |
D | main.c | 4 * 32 bit integer) and also how to read them back from flash. The reading of 7 * and writing data it also shows how data can be deleted from flash. 10 * 1. A string representing an IP-address: stored at id=1, data="192.168.1.1" 11 * 2. A binary blob representing a key: stored at id=2, data=FF FE FD FC FB FA 13 * 3. A reboot counter (32bit): stored at id=3, data=reboot_counter 14 * 4. A string: stored at id=4, data="DATA" (used to illustrate deletion of 17 * At first boot the sample checks if the data is available in flash and adds 18 * the items if they are not in flash. 21 * flash. 23 * At the 10th reboot the string item with id=4 is deleted (or marked for [all …]
|
/Zephyr-latest/include/zephyr/fs/ |
D | nvs.h | 1 /* NVS: non volatile storage in flash 5 * SPDX-License-Identifier: Apache-2.0 20 * @brief Non-volatile Storage (NVS) 21 * @defgroup nvs Non-volatile Storage (NVS) 30 * @brief Non-volatile Storage Data Structures 31 * @defgroup nvs_data_structures Non-volatile Storage Data Structures 37 * @brief Non-volatile Storage File system structure 40 /** File system offset in flash **/ 44 * - high 2 bytes correspond to the sector 45 * - low 2 bytes are the offset in the sector [all …]
|
D | zms.h | 3 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/drivers/flash.h> 35 /** File system offset in flash */ 39 * - high 4 bytes correspond to the sector 40 * - low 4 bytes are the offset in the sector 46 * `erase-block-size` if the device has erase capabilities 55 /** Mutex used to lock flash writes */ 57 /** Flash device runtime structure */ 59 /** Flash memory parameters structure */ 84 * @retval -ERRNO Negative errno code on error [all …]
|
/Zephyr-latest/doc/services/storage/flash_map/ |
D | flash_map.rst | 3 Flash map 7 flash partitions via :c:struct:`flash_area` structures. 9 Each :c:struct:`flash_area` describes a flash partition. The API provides access 10 to a "flash map", which contains predefined flash areas accessible via globally 11 unique ID numbers. The map is created from "fixed-partition" compatible entries 13 for application-specific purposes. 15 This documentation uses "flash area" when referencing single "fixed-partition" 19 which can be used to access the flash device an area is placed on directly 20 with the :ref:`flash API <flash_api>`. 21 Each flash area is characterized by a device it is placed on, offset [all …]
|
/Zephyr-latest/dts/bindings/mtd/ |
D | atmel,at45.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Atmel AT45 (or compatible) SPI flash 8 include: [spi-device.yaml] 11 jedec-id: 12 type: uint8-array 14 description: JEDEC ID as manufacturer ID (1 byte) and device ID (2 bytes). 19 description: Flash capacity in bits. 21 sector-size: 24 description: Flash sector size in bytes. 26 sector-0a-pages: [all …]
|
D | jedec,jesd216.yaml | 2 # Copyright (c) 2019-2020 Nordic Semiconductor ASA 3 # SPDX-License-Identifier: Apache-2.0 5 # Common properties used by nodes describing serial flash devices that 6 # are compatible with the JESD216 Serial Flash Discoverable Parameters 14 # size can be provided directly along with the JEDEC ID of the expected 21 jedec-id: 22 type: uint8-array 23 description: JEDEC ID as manufacturer ID, memory type, memory density 27 description: flash capacity in bits 29 sfdp-bfp: [all …]
|
/Zephyr-latest/dts/arm/silabs/ |
D | efm32hg.dtsi | 1 /* SPDX-License-Identifier: Apache-2.0 */ 3 #include <arm/armv6-m.dtsi> 4 #include <zephyr/dt-bindings/gpio/gpio.h> 5 #include <zephyr/dt-bindings/i2c/i2c.h> 10 zephyr,flash-controller = &msc; 14 #address-cells = <1>; 15 #size-cells = <0>; 18 compatible = "arm,cortex-m0+"; 24 compatible = "mmio-sram"; 28 msc: flash-controller@400c0000 { [all …]
|
D | efm32_pg_1b.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <arm/armv7-m.dtsi> 8 #include <zephyr/dt-bindings/gpio/gpio.h> 9 #include <zephyr/dt-bindings/i2c/i2c.h> 14 zephyr,flash-controller = &msc; 18 #address-cells = <1>; 19 #size-cells = <0>; 24 compatible = "mmio-sram"; 28 msc: flash-controller@400e0000 { 29 compatible = "silabs,gecko-flash-controller"; [all …]
|
D | efr32xg13p.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <arm/armv7-m.dtsi> 8 #include <zephyr/dt-bindings/gpio/gpio.h> 9 #include <zephyr/dt-bindings/i2c/i2c.h> 14 zephyr,flash-controller = &msc; 18 #address-cells = <1>; 19 #size-cells = <0>; 22 compatible = "arm,cortex-m4f"; 28 compatible = "mmio-sram"; 32 msc: flash-controller@400e0000 { [all …]
|
D | efm32wg.dtsi | 1 /* SPDX-License-Identifier: Apache-2.0 */ 3 #include <arm/armv7-m.dtsi> 4 #include <zephyr/dt-bindings/gpio/gpio.h> 5 #include <zephyr/dt-bindings/i2c/i2c.h> 10 zephyr,flash-controller = &msc; 14 #address-cells = <1>; 15 #size-cells = <0>; 18 compatible = "arm,cortex-m4f"; 24 compatible = "mmio-sram"; 28 msc: flash-controller@400c0000 { [all …]
|
D | efr32fg1p.dtsi | 1 /* SPDX-License-Identifier: Apache-2.0 */ 3 #include <arm/armv7-m.dtsi> 4 #include <zephyr/dt-bindings/gpio/gpio.h> 5 #include <zephyr/dt-bindings/i2c/i2c.h> 7 #include <zephyr/dt-bindings/pwm/pwm.h> 11 zephyr,flash-controller = &msc; 15 #address-cells = <1>; 16 #size-cells = <0>; 19 compatible = "arm,cortex-m4f"; 25 compatible = "mmio-sram"; [all …]
|
D | efm32gg12b.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <arm/armv7-m.dtsi> 8 #include <zephyr/dt-bindings/gpio/gpio.h> 9 #include <zephyr/dt-bindings/i2c/i2c.h> 15 zephyr,flash-controller = &msc; 19 #address-cells = <1>; 20 #size-cells = <0>; 23 compatible = "arm,cortex-m4f"; 29 compatible = "mmio-sram"; 33 msc: flash-controller@40000000 { [all …]
|
/Zephyr-latest/include/zephyr/storage/ |
D | flash_map.h | 2 * Copyright (c) 2017-2024 Nordic Semiconductor ASA 6 * SPDX-License-Identifier: Apache-2.0 11 * @brief Public API for flash map 18 * @brief Abstraction over flash partitions/areas and their drivers 20 * @defgroup flash_area_api flash area Interface 28 * This API makes it possible to operate on flash areas easily and 31 * The system contains global data about flash areas. Every area 32 * contains an ID number, offset, and length. 49 * @brief Flash partition 51 * This structure represents a fixed-size partition on a flash device. [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/flash/ |
D | soc_flash_nrf_ticker.c | 4 * SPDX-License-Identifier: Apache-2.0 25 /* delay needed for start execution-window */ 38 /* semaphore for synchronization of flash operations */ 60 /* Get the ticker instance and ticker id for flash operations */ in ticker_stop_prepare_cb() 81 "Radio is on during flash operation.\n"); in time_slot_callback_work() 84 rc = op_desc->handler(op_desc->context); in time_slot_callback_work() 90 /* Get the ticker instance and ticker id for flash operations */ in time_slot_callback_work() 111 /* Get the ticker instance and ticker id for flash operations */ in time_slot_delay() 114 /* Start a secondary one-shot ticker after ticks_delay, in time_slot_delay() 119 1, /* user id for link layer ULL_HIGH */ in time_slot_delay() [all …]
|
/Zephyr-latest/dts/arm/nuvoton/ |
D | npcx4m3f.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 11 flash0: flash@10088000 { 15 flash1: flash@60000000 { 20 compatible = "mmio-sram"; 24 soc-id { 25 device-id = <0x25>; 33 compatible ="nuvoton,npcx-fiu-nor"; 38 /* quad spi bus configuration of nor flash device */ 39 qspi-flags = <NPCX_QSPI_SW_CS0>; 40 mapped-addr = <0x60000000>;
|
D | npcx4m8f.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 11 flash0: flash@10060000 { 15 flash1: flash@60000000 { 20 compatible = "mmio-sram"; 24 soc-id { 25 device-id = <0x23>; 33 compatible ="nuvoton,npcx-fiu-nor"; 38 /* quad spi bus configuration of nor flash device */ 39 qspi-flags = <NPCX_QSPI_SW_CS0>; 40 mapped-addr = <0x60000000>;
|
D | npcx9m3f.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 11 flash0: flash@10080000 { 15 flash1: flash@64000000 { 20 compatible = "mmio-sram"; 24 soc-id { 25 device-id = <0x25>; 33 compatible ="nuvoton,npcx-fiu-nor"; 38 /* quad spi bus configuration of nor flash device */ 39 qspi-flags = <NPCX_QSPI_SW_CS1>; 40 mapped-addr = <0x64000000>; [all …]
|
D | npcx9m6f.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 11 flash0: flash@10090000 { 15 flash1: flash@64000000 { 20 compatible = "mmio-sram"; 24 soc-id { 25 device-id = <0x21>; 33 compatible ="nuvoton,npcx-fiu-nor"; 38 /* quad spi bus configuration of nor flash device */ 39 qspi-flags = <NPCX_QSPI_SW_CS1>; 40 mapped-addr = <0x64000000>; [all …]
|
D | npcx9m7f.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 11 flash0: flash@10070000 { 15 flash1: flash@64000000 { 20 compatible = "mmio-sram"; 24 soc-id { 25 device-id = <0x22>; 31 compatible ="nuvoton,npcx-fiu-nor"; 36 /* quad spi bus configuration of nor flash device */ 37 qspi-flags = <NPCX_QSPI_SW_CS1>; 38 mapped-addr = <0x64000000>; [all …]
|
/Zephyr-latest/tests/subsys/fs/littlefs/src/ |
D | testfs_lfs.c | 4 * SPDX-License-Identifier: Apache-2.0 65 unsigned int id = (uintptr_t)mp->storage_dev; in testfs_lfs_wipe_partition() local 67 int rc = flash_area_open(id, &pfa); in testfs_lfs_wipe_partition() 70 TC_PRINT("Error accessing flash area %u [%d]\n", in testfs_lfs_wipe_partition() 71 id, rc); in testfs_lfs_wipe_partition() 75 TC_PRINT("Erasing %zu (0x%zx) bytes\n", pfa->fa_size, pfa->fa_size); in testfs_lfs_wipe_partition() 76 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in testfs_lfs_wipe_partition() 80 TC_PRINT("Error wiping flash area %u [%d]\n", in testfs_lfs_wipe_partition() 81 id, rc); in testfs_lfs_wipe_partition() 85 TC_PRINT("Wiped flash area %u for %s\n", id, mp->mnt_point); in testfs_lfs_wipe_partition()
|
/Zephyr-latest/tests/subsys/dfu/img_util/src/ |
D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 26 zassert_true(ret == 0, "Flash img init"); in ZTEST() 29 zassert_true(ret == 0, "Flash img init id"); in ZTEST() 31 /* Verify that the default partition ID is IMAGE_1 */ in ZTEST() 33 "Default partition ID is incorrect"); in ZTEST() 37 zassert_true(ret == 0, "Flash img init id"); in ZTEST() 39 zassert_equal(ctx_id.flash_area->fa_id, SLOT0_PARTITION_ID, in ZTEST() 40 "Partition ID is not set correctly"); in ZTEST() 52 zassert_true(ret == 0, "Flash img init"); in ZTEST() 60 printf("Flash driver was not found!\n"); in ZTEST() [all …]
|