File tree Expand file tree Collapse file tree 2 files changed +28
-3
lines changed
samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2024 NXP
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ import logging
6
+
7
+ from twister_harness import DeviceAdapter
8
+
9
+ logger = logging .getLogger (__name__ )
10
+
11
+
12
+ def test_magic_addr (dut : DeviceAdapter ):
13
+ '''
14
+ tag memory twice and check result
15
+ '''
16
+ dut .readlines_until (regex = 'Cast some characters:' , print_output = True )
17
+ dut .write (str .encode ('A' ))
18
+ lines = dut .readlines_until (regex = 'Magic DTCM address accessed' , print_output = True )
19
+ logger .info (lines )
20
+ dut .write (str .encode ('B' ))
21
+ lines = dut .readlines_until (regex = 'Magic DTCM address accessed' , print_output = True )
22
+ logger .info (lines )
23
+ ret = any ('Magic DTCM address accessed' in line for line in lines )
24
+ assert ret
Original file line number Diff line number Diff line change 5
5
integration_platforms :
6
6
- mimxrt1170_evk/mimxrt1176/cm7
7
7
- mimxrt1160_evk/mimxrt1166/cm7
8
+ tags :
9
+ - pytest
8
10
tests :
9
11
sample.boards.mimxrt1170_evk.magic_addr :
10
- platform_allow :
11
- - mimxrt1170_evk/mimxrt1176/cm7
12
- - mimxrt1160_evk/mimxrt1166/cm7
12
+ filter : CONFIG_MEMC_NXP_FLEXRAM
13
+ harness : pytest
You can’t perform that action at this time.
0 commit comments