Skip to content

Commit ff9852f

Browse files
dhsu-nordicrlubos
authored andcommitted
tests: subsys: rtt: Run RTT test on nRF7120
Enable RTT logger test on nrf7120pdk/nrf7120/cpuapp RTT Control Block address for nRF7120 is on unconventional address that cannot be automatically detected by RTTViewer so adding this to SWD_CONFIG in pytest. Signed-off-by: Dhanoo Surasarang <[email protected]>
1 parent 6f9cef7 commit ff9852f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/subsys/rtt/pytest/test_rtt.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def test_rtt_logging(dut: DeviceAdapter):
7474
'[email protected]/nrf54lv10a/cpuapp': {
7575
'device': 'NRF54LV10A_M33',
7676
},
77+
'nrf7120pdk/nrf7120/cpuapp' : {
78+
'device': 'CORTEX-M33',
79+
'RTTAddress': '0x20000410',
80+
},
7781
}
7882

7983
log_filename = f"{BUILD_DIR}/log_rtt.txt"
@@ -90,6 +94,10 @@ def test_rtt_logging(dut: DeviceAdapter):
9094
cmd = f"JLinkRTTLoggerExe -USB {SEGGER_ID}"
9195
cmd += f" -device {SWD_CONFIG[PLATFORM]['device']}"
9296
cmd += " -If SWD -Speed 1000 -RTTChannel 0"
97+
98+
if 'RTTAddress' in SWD_CONFIG[PLATFORM]:
99+
cmd += f" -RTTAddress {SWD_CONFIG[PLATFORM]['RTTAddress']}"
100+
93101
cmd += f" {log_filename}"
94102

95103
try:

tests/subsys/rtt/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ tests:
1919
- [email protected]/nrf54ls05b/cpuapp
2020
- nrf54lv10dk/nrf54lv10a/cpuapp
2121
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
22+
- nrf7120pdk/nrf7120/cpuapp
2223
integration_platforms:
2324
- nrf52840dk/nrf52840
2425
- nrf5340dk/nrf5340/cpuapp
2526
- nrf54l15dk/nrf54l15/cpuapp
2627
- nrf54lm20dk/nrf54lm20a/cpuapp
28+
- nrf7120pdk/nrf7120/cpuapp

0 commit comments

Comments
 (0)