Part 1
요약·해설
RAM Console Snippet의 공식 원문 구조, 설정 조건과 실행 흐름을 생략 없이 설명합니다.
Path
snippets/ram-console/README.html
Version
Zephyr 3.7.0
Status
Full translation
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
75C747DAC045D8E8496E61792D181C24E90D97973FC59BEBB4D2614D67361A59
.. _snippet-ram-console:
RAM Console Snippet (ram-console)
#################################
.. code-block:: console
west build -S ram-console [...]
Overview
********
This snippet redirects console output to a RAM buffer. The RAM console
buffer is a global array located in RAM region by default, whose address
is unknown before building. The RAM console driver also supports using
a dedicated section for the RAM console buffer with prefined address.
How to enable RAM console buffer section
****************************************
Add board dts overlay to this snippet to add property ``zephyr,ram-console``
in the chosen node and memory-region node with compatible string
:dtcompatible:`zephyr,memory-region` as the following:
.. code-block:: DTS
/ {
chosen {
zephyr,ram-console = &snippet_ram_console;
};
snippet_ram_console: memory@93d00000 {
compatible = "zephyr,memory-region";
reg = <0x93d00000 DT_SIZE_K(4)>;
zephyr,memory-region = "RAM_CONSOLE";
};
};
Part 3
한국어 전문 번역
west build -S ram-console [...]
Overview
이 snippet은 console output을 RAM buffer로 redirect합니다. 기본 buffer는 RAM의 global array라 build 전에는 address가 정해지지 않습니다. RAM console driver는 미리 정한 address의 dedicated section도 지원합니다.
How to enable RAM console buffer section
Snippet에 board DTS overlay를 추가하고 chosen node의 zephyr,ram-console property가 zephyr,memory-region compatible node를 가리키게 합니다. 다음 예제는 0x93d00000에 4 KB RAM_CONSOLE section을 고정합니다.
/ {
chosen {
zephyr,ram-console = &snippet_ram_console;
};
snippet_ram_console: memory@93d00000 {
compatible = "zephyr,memory-region";
reg = <0x93d00000 DT_SIZE_K(4)>;
zephyr,memory-region = "RAM_CONSOLE";
};
};
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.