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

Zephyr 3.7.0 · Samples · Drivers · MEMC

Memory Controller

0x38000000 영역에 pattern을 쓰고 8,192개 검사와 1KB dump를 확인합니다.

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

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

Part 1

요약·해설

sram-ext alias와 XIP·SRAM 영역 중첩 금지 조건을 보존합니다.

Alias

sram-ext

Base

0x38000000

Size

0x800000

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 0B60C123B0CDA15B128B2A6553504EBF8B94CC78B9E5680F9107EB1A34589026
.. zephyr:code-sample:: memc
   :name: Memory controller (MEMC) driver

   Access memory-mapped external RAM

Overview
********

This sample can be used with any memory controller driver that
memory maps external RAM. It is intended to demonstrate
the ability to read and write from the memory mapped region.

Note that the chosen region (set by ``sram-ext`` dt alias node) should not
overlap with memory used for XIP or SRAM by the application, as the sample
would overwrite this data


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

This application can be built and executed on an RT595 EVK as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/memc
   :host-os: unix
   :board: mimxrt595_evk/mimxrt595s/cm33
   :goals: run
   :compact:

To build for another board, change "mimxrt595_evk/mimxrt595s/cm33" above to that
board's name.

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

.. code-block:: console

  *** Booting Zephyr OS build zephyr-v3.2.0-2686-gd52d828c2bdc ***
  Writing to memory region with base 0x38000000, size 0x800000

  Check (0/8191) passed!
  Check (1/8191) passed!
  ...
  Check (8190/8191) passed!
  Check (8191/8191) passed!

  First 1KB of Data in memory:
  \=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=
  00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
  10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
  20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
  ....

  Read data matches written data

Part 3

한국어 전문 번역

개요

이 sample은 외부 RAM을 memory map하는 모든 memory controller driver와 함께 사용할 수 있습니다. Memory-mapped 영역에서 data를 읽고 쓸 수 있는지 보여주는 것이 목적입니다.

선택한 영역은 sram-ext devicetree alias node로 설정합니다. Sample이 해당 data를 덮어쓰므로 application이 XIP 또는 SRAM으로 사용하는 memory와 겹치면 안 됩니다.

Build와 실행

RT595 EVK에서 다음과 같이 application을 build하고 실행할 수 있습니다.

west build -b mimxrt595_evk/mimxrt595s/cm33 samples/drivers/memc
west build -t run

다른 board용으로 build하려면 위의 mimxrt595_evk/mimxrt595s/cm33을 해당 board 이름으로 바꾸십시오.

Sample 출력

*** Booting Zephyr OS build zephyr-v3.2.0-2686-gd52d828c2bdc ***
Writing to memory region with base 0x38000000, size 0x800000

Check (0/8191) passed!
Check (1/8191) passed!
...
Check (8190/8191) passed!
Check (8191/8191) passed!

First 1KB of Data in memory:
\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
....

Read data matches written data

Source

출처

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