GNU ARM Eclipse : DOCUMENTATION : PERIPHERAL REGISTERS
The peripherals registers view
Prerequisites(사전 조건)
The Packs plug-ins
먼저 Packs plug-in이 있어야 합니다. 이것이 설치되어 있는지 확인하려면, 이클립스 메뉴에서 Installation Details 버튼을 클릭합니다.
없다면, Packs manager 문서 페이지에서 설치방법을 읽고 설치합니다.
Associate a device to the project
앞으로 릴리즈 될 버전에서는 프로젝트 생성시 wizard에 의해 결합이 자동으로 이루어지겠지만, 아직은 이것을 확인하고, 조절하는 것이 필요합니다.
자세한 사항은 separate page 에서 확인하세요.
- Assign a device to the project
The debug configuration
With the device associated to the build configuration, the debug configuration is created and started the usual way:
- select the .elf file
- right click, Debug As → Debug Configurations…
- double click the GDB SEGGER J-Link Debugging
Device name automatic configuration
Since the device name is (should be) known, the J-Link Device name field is automatically configured with the CMSIS device name.
The Peripherals view
만일 Packs plug-in이 설치되어 있는대도 불구하고, 어떤 이유로 이 View가 보이지 않는다면, try to perform a Reset on the Debug perspective.
Peripherals view 목록에는 .SVD 파일에 명시된 모든 사용가능한 peripheral 들이 나타납니다.
.SVD 파일은 실리콘 벤더에서 제공합니다.
목록은 peripheral 이름, peripheral 메모리 주소, 간단한 설명과 모니터링 여부를 결정하는 체크박스를 가지고 있습니다.
The Memory monitors
대부분의 현대적인 디바이스들은 메모리 맵드 peripherals 디바이스입니다. GNU ARM Eclipse 구현에서 Peripherals view에서 peripheral을 선택하면, 개별 윈도우가 열리지 않습니다. 하지만 standard Memory monitor에서는, 대응되는 peripheral memory 영역에 매핑됩니다.
SVD 특성에 따라, 이 트리는 다음과 같은 노드를 가질 수 있습니다.
- clusters of registers,
- arrays of clusters,
- registers
- arrays of registers
- bit fields.
위의 모든 것이 지원되며, 계층적인 방법으로 표현됩니다.
Special access registers
According to SVD, registers or fields can have special access rights, like read-only (highlighted in light yellow) or write-only (highlighted in light blue).
Tool tips
By hovering the mouse over the peripheral monitor window, additional details are shown as tool tips. Different content is shown for different columns, for example the Register column will show detailed descriptions, the Address column will show offset and size, and the Value column will show reset value and mask.
Editing
The values of the non read-only registers can be changed using in-place-editing, in the corresponding cell of the Value column.
Registers and fields are synchronised, editing the value of a field will also change the value of the parent register, and editing the value of a register will also change the affected fields.
Filtering
It is possible to filter the content of the peripheral monitor by register name. To enter the filtering conditions, right click anywhere in the monitor rendering window and select the Add Filter… action.
Note: In the initial release the functionality behind this menu needs more polishing…
Troubleshooting
Zero values?
왜 많은 peripheral들이 zero 값을 가지고 있나?
아마도 그것들이 enable 되어 있지 않기 때문이거나, 실제 디바이스에 존재하지 않기 때문일 수 있습니다.
“No devices avaible, install packs first”
If your devices window is empty, you did not read carefully the above steps. You need to update the list of available packages, then install the ones you need.