Skip to content

Commit 999c4cb

Browse files
JiafeiPankartben
authored andcommitted
boards: imx93_evk: refine jlink runner
The ogirnal design is using a J-Link script, then the path of image is saved into the script file during building, it will has issue when generate twister artifacts and copy it to another path for testing as path is changed. so refine it to use new parameter of J-Link runner parameter "--flash-sram" to fix this issue. Signed-off-by: Jiafei Pan <[email protected]>
1 parent 48ed1a7 commit 999c4cb

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

boards/nxp/imx93_evk/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,3 @@
55

66
zephyr_library()
77
zephyr_library_sources(board.c)
8-
9-
if(CONFIG_SOC_MIMX9352_A55)
10-
file(WRITE ${CMAKE_BINARY_DIR}/zephyr/runner.jlinkscript
11-
"LE
12-
loadfile "${CMAKE_BINARY_DIR}/zephyr/zephyr.bin" ${CONFIG_SRAM_BASE_ADDRESS}
13-
WReg PC ${CONFIG_SRAM_BASE_ADDRESS}
14-
g
15-
q")
16-
endif()

boards/nxp/imx93_evk/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
if(CONFIG_SOC_MIMX9352_A55)
77

8-
board_runner_args(jlink "--device=MIMX9352_A55_0" "--no-reset" "--flash-script=${CMAKE_BINARY_DIR}/zephyr/runner.jlinkscript")
8+
board_runner_args(jlink "--device=MIMX9352_A55_0" "--no-reset" "--flash-sram")
99

1010
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
1111

0 commit comments

Comments
 (0)