• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/03-Aug-2024-201152

src/03-Aug-2024-10582

CMakeLists.txtD03-Aug-2024485 1912

README.rstD03-Aug-20241.4 KiB5539

prj.confD03-Aug-202414 21

sample.yamlD03-Aug-2024348 1716

README.rst

1.. zephyr:code-sample:: memc
2   :name: Memory controller (MEMC) driver
3
4   Access memory-mapped external RAM
5
6Overview
7********
8
9This sample can be used with any memory controller driver that
10memory maps external RAM. It is intended to demonstrate
11the ability to read and write from the memory mapped region.
12
13Note that the chosen region (set by ``sram-ext`` dt alias node) should not
14overlap with memory used for XIP or SRAM by the application, as the sample
15would overwrite this data
16
17
18Building and Running
19********************
20
21This application can be built and executed on an RT595 EVK as follows:
22
23.. zephyr-app-commands::
24   :zephyr-app: samples/drivers/memc
25   :host-os: unix
26   :board: mimxrt595_evk/mimxrt595s/cm33
27   :goals: run
28   :compact:
29
30To build for another board, change "mimxrt595_evk/mimxrt595s/cm33" above to that
31board's name.
32
33Sample Output
34=============
35
36.. code-block:: console
37
38  *** Booting Zephyr OS build zephyr-v3.2.0-2686-gd52d828c2bdc ***
39  Writing to memory region with base 0x38000000, size 0x800000
40
41  Check (0/8191) passed!
42  Check (1/8191) passed!
43  ...
44  Check (8190/8191) passed!
45  Check (8191/8191) passed!
46
47  First 1KB of Data in memory:
48  \=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=
49  00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
50  10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
51  20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
52  ....
53
54  Read data matches written data
55