samples/drivers/spi_flash/README.html · samples/drivers/spi_flash/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Drivers · SPI

JEDEC SPI-NOR Flash

여러 QSPI·OSPI compatible과 automatic power saving을 확인합니다.

Official pathsamples/drivers/spi_flash/README.html
Source filesamples/drivers/spi_flash/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

지원 binding 네 개, 4byte write와 read 비교 출력을 보존합니다.

API

Flash

Bindings

4

Write

4 bytes

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 37F044CFDBE0C2D69CCE39CE62A3940A40A3BDD5D48E15878FB6EFF1F77DD7A5
.. zephyr:code-sample:: spi-nor
   :name: JEDEC SPI-NOR flash
   :relevant-api: flash_interface

   Use the flash API to interact with an SPI NOR serial flash memory device.

Overview
********

This sample demonstrates using the :ref:`flash API <flash_api>` on a SPI NOR serial flash
memory device.  While trivial it is an example of direct access and
allows confirmation that the flash is working and that automatic power
savings is correctly implemented.

Building and Running
********************

The application will build only for a target that has a devicetree node with one of the
following bindings as a compatible:

* :dtcompatible:`jedec,spi-nor`,
* :dtcompatible:`st,stm32-qspi-nor`,
* :dtcompatible:`st,stm32-ospi-nor`,
* :dtcompatible:`nordic,qspi-nor`.

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/spi_flash
   :board: nrf52840dk/nrf52840
   :goals: build flash
   :compact:

Sample Output
=============

.. code-block:: console

   *** Booting Zephyr OS build zephyr-v2.3.0-2142-gca01d2e1d748  ***

   JEDEC QSPI-NOR SPI flash testing
   ==========================

   Test 1: Flash erase
   Flash erase succeeded!

   Test 2: Flash write
   Attempting to write 4 bytes
   Data read matches data written. Good!

Part 3

한국어 전문 번역

개요

이 sample은 SPI NOR serial flash memory device에서 flash API를 사용하는 방법을 보여줍니다. 간단한 예제지만 flash에 직접 접근하여 정상 동작과 automatic power saving 구현을 확인할 수 있습니다.

Build와 실행

Application은 devicetree node에 다음 binding 중 하나가 compatible로 지정된 target에서만 build됩니다.

  • jedec,spi-nor
  • st,stm32-qspi-nor
  • st,stm32-ospi-nor
  • nordic,qspi-nor
west build -b nrf52840dk/nrf52840 samples/drivers/spi_flash
west flash

Sample 출력

*** Booting Zephyr OS build zephyr-v2.3.0-2142-gca01d2e1d748  ***

JEDEC QSPI-NOR SPI flash testing
==========================

Test 1: Flash erase
Flash erase succeeded!

Test 2: Flash write
Attempting to write 4 bytes
Data read matches data written. Good!

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.