Lines Matching full:eeprom

3 EEPROM Shell
13 The EEPROM shell provides an ``eeprom`` command with a set of subcommands for the :ref:`shell
14 <shell_api>` module. It allows testing and exploring the :ref:`EEPROM <eeprom_api>` driver API
15 through an interactive interface without having to write a dedicated application. The EEPROM shell
16 can also be enabled in existing applications to aid in interactive debugging of EEPROM issues.
18 In order to enable the EEPROM shell, the following :ref:`Kconfig <kconfig>` options must be enabled:
24 …lding the :zephyr:code-sample:`hello_world` sample for the :ref:`native_sim` with the EEPROM shell:
33 interact with the shell. The EEPROM shell comes with built-in help (unless
35 passing ``-h`` or ``--help`` to the ``eeprom`` command or any of its subcommands. All subcommands
39 … All of the EEPROM shell subcommands take the name of an EEPROM peripheral as their first argument,
42 below all use the device name ``eeprom@0``.
44 EEPROM Size
47 The size of an EEPROM can be inspected using the ``eeprom size`` subcommand as shown below:
51 uart:~$ eeprom size eeprom@0
57 Data can be written to an EEPROM using the ``eeprom write`` subcommand. This subcommand takes at
58 least three arguments; the EEPROM device name, the offset to start writing to, and at least one data
64 uart:~$ eeprom write eeprom@0 0x0 0x0d 0x0e 0x0a 0x0d 0x0b 0x0e 0x0e 0x0f
65 Writing 8 bytes to EEPROM...
69 It is also possible to fill a portion of the EEPROM with the same pattern using the ``eeprom fill``
75 uart:~$ eeprom fill eeprom@0 0x8 16 0xaa
76 Writing 16 bytes of 0xaa to EEPROM...
83 Data can be read from an EEPROM using the ``eeprom read`` subcommand. This subcommand takes three
84 arguments; the EEPROM device name, the offset to start reading from, and the number of bytes to
89 uart:~$ eeprom read eeprom@0 0x0 8
90 Reading 8 bytes from EEPROM, offset 0...