Home
last modified time | relevance | path

Searched +full:partial +full:- +full:erase (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-latest/drivers/flash/
DKconfig.nrf1 # SPDX-License-Identifier: Apache-2.0
49 bool "Nordic nRFx flash driver partial erase"
52 Enable partial erase feature. Partial erase is performed in time
55 This allows interrupting flash erase between operations
57 This feature may also be used for better syncing flash erase
62 int "Partial erase timeout in MS"
66 This is maximum time, in ms, that NVMC will use to erase part
78 to the flash erase and write operations timeout. The base for
87 ordinary flash memory. Erase is possible for whole UICR at once.
90 bool "8-bit write block size emulation"
DKconfig.nrf_rram4 # SPDX-License-Identifier: Apache-2.0
20 but partial erase is always supported.
25 int "Internal write-buffer size"
30 Number of 128-bit words.
31 Maximum buffer size can be configured to the value of 32 (128-bit words).
32 Set 0 to disable write-buffer.
67 to the flash erase and write operations timeout. The base for
Dflash_shell.c2 * Copyright (c) 2017-2023 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
21 #define BUF_ARRAY_CNT (CONFIG_SHELL_ARGC_MAX - 2)
60 return -ENODEV; in parse_helper()
63 /* default to zephyr,flash-controller */ in parse_helper()
66 return -ENODEV; in parse_helper()
72 return -ENODEV; in parse_helper()
80 return -EINVAL; in parse_helper()
83 (*argc)--; in parse_helper()
90 int result = -ENOTSUP; in cmd_erase()
[all …]
Dflash_cadence_qspi_nor_ll.c4 * SPDX-License-Identifier: Apache-2.0
20 return -EINVAL; in cad_qspi_idle()
23 return (sys_read32(cad_params->reg_base + CAD_QSPI_CFG) & CAD_QSPI_CFG_IDLE) >> 31; in cad_qspi_idle()
30 return -EINVAL; in cad_qspi_set_baudrate_div()
37 sys_clear_bits(cad_params->reg_base + CAD_QSPI_CFG, ~CAD_QSPI_CFG_BAUDDIV_MSK); in cad_qspi_set_baudrate_div()
39 sys_set_bits(cad_params->reg_base + CAD_QSPI_CFG, CAD_QSPI_CFG_BAUDDIV(div)); in cad_qspi_set_baudrate_div()
49 return -EINVAL; in cad_qspi_configure_dev_size()
55 cad_params->reg_base + CAD_QSPI_DEVSZ); in cad_qspi_configure_dev_size()
65 return -EINVAL; in cad_qspi_set_read_config()
72 cad_params->reg_base + CAD_QSPI_DEVRD); in cad_qspi_set_read_config()
[all …]
/Zephyr-latest/dts/bindings/flash_controller/
Dnordic,nrf52-flash-controller.yaml1 description: Nordic NVMC (Non-Volatile Memory Controller)
3 compatible: "nordic,nrf52-flash-controller"
5 include: flash-controller.yaml
8 partial-erase:
11 If set, indicates that the NVMC supports partial erase of flash pages.
Dnordic,nrf53-flash-controller.yaml1 description: Nordic NVMC (Non-Volatile Memory Controller)
3 compatible: "nordic,nrf53-flash-controller"
5 include: flash-controller.yaml
8 partial-erase:
11 If set, indicates that the NVMC supports partial erase of flash pages.
Dnordic,nrf91-flash-controller.yaml1 description: Nordic NVMC (Non-Volatile Memory Controller)
3 compatible: "nordic,nrf91-flash-controller"
5 include: flash-controller.yaml
8 partial-erase:
11 If set, indicates that the NVMC supports partial erase of flash pages.
/Zephyr-latest/drivers/disk/
Dflashdisk.c3 * Copyright (c) 2022-2024 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
44 (block_size - (start & (block_size - 1)))
47 * The default block size is used for devices not requiring erase.
58 return ctx->erase_required; in flashdisk_with_erase()
69 ctx->erase_required = in flashdisk_probe_erase()
70 flash_params_get_erase_cap(flash_get_parameters(ctx->info.dev)) & in flashdisk_probe_erase()
79 LOG_DBG("status : %s", disk->dev ? "okay" : "no media"); in disk_flash_access_status()
80 if (!disk->dev) { in disk_flash_access_status()
97 rc = flash_get_page_info_by_offs(ctx->info.dev, ctx->offset, &page); in flashdisk_init_runtime()
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dcore.py6 # SPDX-License-Identifier: Apache-2.0
30 from functools import partial
54 def find_rtt_block(elf_file: str) -> int | None:
123 cmd = ['netstat', '-a', '-n', '-p', 'tcp']
127 cmd = ['ss', '-a', '-n', '-t']
131 cmd = ['netstat', '-a', '-n', '-p', 'tcp']
156 '''This helper class provides access to build-time configuration.
189 opt_value = re.compile(f'^(?P<option>{self.config_prefix}_[A-Za-z0-9_]+)=(?P<value>.*)$')
190 not_set = re.compile(f'^# (?P<option>{self.config_prefix}_[A-Za-z0-9_]+) is not set$')
200 value = value[1:-1]
[all …]
/Zephyr-latest/doc/services/storage/zms/
Dzms.rst5 Zephyr Memory Storage is a new key-value storage system that is designed to work with all types
6 of non-volatile storage technologies. It supports classical on-chip NOR flash as well as new
7 technologies like RRAM and MRAM that do not require a separate erase operation at all, that is,
12 ZMS divides the memory space into sectors (minimum 2), and each sector is filled with key-value
15 The key-value pair is divided into two parts:
17 - The key part is written in an ATE (Allocation Table Entry) called "ID-ATE" which is stored
19 - The value part is defined as "DATA" and is stored raw starting from the top of the sector
21 Additionally, for each sector we store at the last positions Header-ATEs which are ATEs that
26 N+1 empty sector, we erase the garbage collected sector and then we close the current sector by
37 .. list-table::
[all …]
/Zephyr-latest/scripts/west_commands/tests/
Dtest_nrf.py4 # SPDX-License-Identifier: Apache-2.0
27 TEST_DEF_SNR = 'test-default-serial-number' # for mocking user input
28 TEST_OVR_SNR = 'test-override-serial-number'
30 TEST_TOOL_OPT = '--ip 192.168.1.10'
66 # Use --reset instead of --pinreset if True
69 # --snr TEST_OVR_SNR if True, --snr TEST_DEF_SNR if False
72 # --chiperase if True,
73 # --sectorerase if False (or --sectoranduicrerase on nRF52)
74 erase: bool
76 # --tool-opt TEST_TOOL_OPT if True
[all …]
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/img_mgmt/
Dimg_mgmt.h2 * Copyright (c) 2018-2021 mcumgr authors
3 * Copyright (c) 2022-2024 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
104 /** Flash area erase failed. */
195 /** Flash area being written; -1 if no upload in progress. */
201 /** Hash of image data; used for resumption of a partial upload. */
216 /** Whether to erase the destination flash area. */
217 bool erase; member
232 * @return 0 on success, non-zero on failure.
241 * @return 0 on success, non-zero on failure.
[all …]
/Zephyr-latest/doc/services/storage/nvs/
Dnvs.rst3 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
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.
25 CRC-32. Use the :kconfig:option:`CONFIG_NVS_DATA_CRC` configuration item to enable
29 The data CRC is not checked for a partial read, as it is stored at the end of the
42 NVS checks the id-data pair before writing data to flash. If the id-data pair
[all …]
/Zephyr-latest/dts/arm/nordic/
Dnrf5340_cpunet.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv8-m.dtsi>
12 zephyr,bt-hci = &bt_hci_controller;
14 zephyr,flash-controller = &flash_controller;
18 #address-cells = <1>;
19 #size-cells = <0>;
23 compatible = "arm,cortex-m33";
25 #address-cells = <1>;
26 #size-cells = <1>;
29 compatible = "arm,armv8m-mpu";
[all …]
Dnrf52805.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
9 #include <zephyr/dt-bindings/adc/nrf-saadc-v2.h>
10 #include <zephyr/dt-bindings/regulator/nrf5x.h>
14 zephyr,bt-hci = &bt_hci_controller;
16 zephyr,flash-controller = &flash_controller;
20 #address-cells = <1>;
21 #size-cells = <0>;
25 compatible = "arm,cortex-m4";
32 compatible = "nordic,nrf-ficr";
[all …]
Dnrf52810.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <arm/armv7-m.dtsi>
5 #include <zephyr/dt-bindings/adc/nrf-saadc-v2.h>
6 #include <zephyr/dt-bindings/regulator/nrf5x.h>
10 zephyr,bt-hci = &bt_hci_controller;
12 zephyr,flash-controller = &flash_controller;
16 #address-cells = <1>;
17 #size-cells = <0>;
21 compatible = "arm,cortex-m4";
23 #address-cells = <1>;
[all …]
Dnrf52820.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
9 #include <zephyr/dt-bindings/regulator/nrf5x.h>
14 zephyr,bt-hci = &bt_hci_controller;
16 zephyr,flash-controller = &flash_controller;
20 #address-cells = <1>;
21 #size-cells = <0>;
25 compatible = "arm,cortex-m4";
27 #address-cells = <1>;
28 #size-cells = <1>;
[all …]
Dnrf91_peripherals.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 flash_controller: flash-controller@39000 {
8 compatible = "nordic,nrf91-flash-controller";
10 partial-erase;
12 #address-cells = <1>;
13 #size-cells = <1>;
17 compatible = "soc-nv-flash";
18 erase-block-size = <4096>;
19 write-block-size = <4>;
24 compatible = "nordic,nrf-saadc";
[all …]
Dnrf52811.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
9 #include <zephyr/dt-bindings/adc/nrf-saadc-v2.h>
10 #include <zephyr/dt-bindings/regulator/nrf5x.h>
14 zephyr,bt-hci = &bt_hci_controller;
16 zephyr,flash-controller = &flash_controller;
20 #address-cells = <1>;
21 #size-cells = <0>;
25 compatible = "arm,cortex-m4";
27 #address-cells = <1>;
[all …]
Dnrf52840.dtsi1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <arm/armv7-m.dtsi>
5 #include <zephyr/dt-bindings/adc/nrf-saadc-v3.h>
6 #include <zephyr/dt-bindings/regulator/nrf5x.h>
10 zephyr,bt-hci = &bt_hci_controller;
12 zephyr,flash-controller = &flash_controller;
16 #address-cells = <1>;
17 #size-cells = <0>;
21 compatible = "arm,cortex-m4f";
23 #address-cells = <1>;
[all …]
Dnrf52833.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <arm/armv7-m.dtsi>
9 #include <zephyr/dt-bindings/adc/nrf-saadc-v3.h>
10 #include <zephyr/dt-bindings/regulator/nrf5x.h>
14 zephyr,bt-hci = &bt_hci_controller;
16 zephyr,flash-controller = &flash_controller;
20 #address-cells = <1>;
21 #size-cells = <0>;
25 compatible = "arm,cortex-m4f";
27 #address-cells = <1>;
[all …]
Dnrf5340_cpuapp_peripherals.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/regulator/nrf5x.h>
10 compatible = "nordic,nrf-dcnf";
15 oscillators: clock-controller@4000 {
16 compatible = "nordic,nrf53-oscillators";
20 compatible = "nordic,nrf53-lfxo";
21 #clock-cells = <0>;
22 clock-frequency = <32768>;
26 compatible = "nordic,nrf53-hfxo";
27 #clock-cells = <0>;
[all …]
/Zephyr-latest/include/zephyr/sd/
Dsd_spec.h2 * Copyright 2022-2023 NXP
4 * SPDX-License-Identifier: Apache-2.0
69 * to inform the SD card the next command is an application-specific one.
87 /* Bits 0-2 reserved */
99 /* Bits 17-18 reserved */
184 #define SD_SPI_CMD_BODY_SIZE (SD_SPI_CMD_SIZE - 1)
271 /** VDD 2.7-2.8 */
273 /** VDD 2.8-2.9 */
275 /** VDD 2.9-3.0 */
277 /** VDD 3.0-3.1 */
[all …]
/Zephyr-latest/subsys/fs/zms/
Dzms.c3 * SPDX-License-Identifier: Apache-2.0
32 /* 32-bit integer hash function found by https://github.com/skeeto/hash-prospector. */ in zms_lookup_cache_pos()
53 memset(fs->lookup_cache, 0xff, sizeof(fs->lookup_cache)); in zms_lookup_cache_rebuild()
54 addr = fs->ate_wra; in zms_lookup_cache_rebuild()
65 cache_entry = &fs->lookup_cache[zms_lookup_cache_pos(ate.id)]; in zms_lookup_cache_rebuild()
73 if (rc == -ENOENT) { in zms_lookup_cache_rebuild()
87 if (addr == fs->ate_wra) { in zms_lookup_cache_rebuild()
97 uint64_t *cache_entry = fs->lookup_cache; in zms_lookup_cache_invalidate()
98 uint64_t *const cache_end = &fs->lookup_cache[CONFIG_ZMS_LOOKUP_CACHE_SIZE]; in zms_lookup_cache_invalidate()
112 return fs->offset + (fs->sector_size * SECTOR_NUM(addr)) + SECTOR_OFFSET(addr); in zms_addr_to_offset()
[all …]
/Zephyr-latest/soc/nordic/common/
DKconfig.peripherals4 # SPDX-License-Identifier: Apache-2.0
25 def_bool $(dt_nodelabel_bool_prop,ccm,length-field-length-8-bits)
28 def_bool $(dt_nodelabel_bool_prop,ccm,headermask-supported)
124 def_bool $(dt_nodelabel_bool_prop,flash_controller,partial-erase)
202 def_bool $(dt_nodelabel_bool_prop,radio,ble-2mbps-supported)
205 def_bool $(dt_nodelabel_bool_prop,radio,ble-coded-phy-supported)
208 def_bool $(dt_nodelabel_bool_prop,radio,cs-supported)
211 def_bool $(dt_nodelabel_bool_prop,radio,dfe-supported)
214 def_bool $(dt_nodelabel_bool_prop,radio,ieee802154-supported)
217 def_bool $(dt_nodelabel_bool_prop,radio,tx-high-power-supported)

12