Part 1
요약·해설
flash0 alias, mspi-atxp032 binding과 4byte write 출력을 보존합니다.
Alias
flash0
Device
mspi-atxp032
Write
4 bytes
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
91F014C8DCDA80527F84ED58C9A6A026A9A0AA920BECF6C9E1DADFEBDB4DCCE9
.. zephyr:code-sample:: mspi-flash
:name: JEDEC MSPI-NOR flash
:relevant-api: flash_interface
Use the flash API to interact with a MSPI NOR serial flash memory device.
Overview
********
This sample demonstrates using the :ref:`flash API <flash_api>` on a MSPI 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 :ref:`devicetree <dt-guide>`
``flash0`` alias that refers to an entry with the following bindings as a compatible:
* :dtcompatible:`ambiq,mspi-device`, `mspi-atxp032`
.. zephyr-app-commands::
:zephyr-app: samples/drivers/mspi/mspi_flash
:board: apollo3p_evb
:goals: build flash
:compact:
Sample Output
=============
.. code-block:: console
*** Booting Zephyr OS build zephyr-v2.3.0-2142-gca01d2e1d748 ***
JEDEC MSPI-NOR 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은 MSPI NOR serial flash memory device에서 flash API를 사용하는 방법을 보여줍니다. 간단한 예제지만 flash에 직접 접근해 정상 동작과 automatic power saving 구현을 확인할 수 있습니다.
Build와 실행
Application은 devicetree의 flash0 alias가 다음 compatible binding을 가진 entry를 가리키는 target에서만 build됩니다.
ambiq,mspi-device,mspi-atxp032
west build -b apollo3p_evb samples/drivers/mspi/mspi_flash
west flash
Sample 출력
*** Booting Zephyr OS build zephyr-v2.3.0-2142-gca01d2e1d748 ***
JEDEC MSPI-NOR 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
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.