Skip to content

Commit a4d9bb4

Browse files
mcatee-infineonnashif
authored andcommitted
Boards: cyw20829: Added jlink as potential runner for board
- Add jlink as possible runner for cyw920829m2evk_02 platform in board.cmake file Signed-off-by: McAtee Maxwell (CSS ICW SW MTO INT 2) <[email protected]>
1 parent 5abacb2 commit a4d9bb4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

boards/infineon/cyw920829m2evk_02/board.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
5+
board_runner_args(jlink "--device=CYW20829_tm")
6+
include (${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/infineon/cyw920829m2evk_02/doc/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ Programming and Debugging
9797

9898
The CYW920829M2EVK-02 includes an onboard programmer/debugger (`KitProg3`_) to provide debugging, flash programming, and serial communication over USB. Flash and debug commands use OpenOCD and require a custom Infineon OpenOCD version, that supports KitProg3, to be installed.
9999

100+
The CYW920829M2EVK-02 supports RTT via a SEGGER JLink device, under the target name cyw20829_tm. This can be enabled for an application by building with the rtt-console snippet or setting the following config values: CONFIG_UART_CONSOLE=n, CONFIG_RTT_CONSOLE=y, and CONFIG_USE_SEGGER_RTT=y.
101+
e.g. west build -p always -b cyw920829m2evk_02 samples/basic/blinky -S rtt-console
102+
103+
As an additional note there is currently a discrepancy in RAM address between SEGGER and the CYW920829M2EVK-02 device. So, for RTT control block, do not use "Auto Detection". Instead, set the search range to something reflecting: RAM RangeStart at 0x20000000 and RAM RangeSize of 0x3d000.
104+
100105
Infineon OpenOCD Installation
101106
=============================
102107

soc/infineon/cat1b/cyw20829/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ config SOC_SERIES_CYW20829
1111
select CPU_CORTEX_M33
1212
select CPU_HAS_FPU
1313
select DYNAMIC_INTERRUPTS
14+
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE

0 commit comments

Comments
 (0)