Skip to content

Commit

Permalink
Boards: cyw20829: Added jlink as potential runner for board
Browse files Browse the repository at this point in the history
	- Add jlink as possible runner for cyw920829m2evk_02 platform in
	  board.cmake file

(cherry picked from commit a4d9bb4)

Original-Signed-off-by: McAtee Maxwell (CSS ICW SW MTO INT 2) <[email protected]>
GitOrigin-RevId: a4d9bb4
Cr-Build-Id: 8735830120729136129
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8735830120729136129
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: I2b72266c3dc74a48450afebfdd8fd7a248d7964e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5891089
Commit-Queue: Fabio Baltieri <[email protected]>
Tested-by: ChromeOS Prod (Robot) <[email protected]>
Tested-by: Fabio Baltieri <[email protected]>
Reviewed-by: Fabio Baltieri <[email protected]>
  • Loading branch information
mcatee-infineon authored and Chromeos LUCI committed Sep 25, 2024
1 parent 56218b9 commit ac1268d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/infineon/cyw920829m2evk_02/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
# SPDX-License-Identifier: Apache-2.0

include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
board_runner_args(jlink "--device=CYW20829_tm")
include (${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
5 changes: 5 additions & 0 deletions boards/infineon/cyw920829m2evk_02/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ Programming and Debugging

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.

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.
e.g. west build -p always -b cyw920829m2evk_02 samples/basic/blinky -S rtt-console

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.

Infineon OpenOCD Installation
=============================

Expand Down
1 change: 1 addition & 0 deletions soc/infineon/cat1b/cyw20829/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ config SOC_SERIES_CYW20829
select CPU_CORTEX_M33
select CPU_HAS_FPU
select DYNAMIC_INTERRUPTS
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE

0 comments on commit ac1268d

Please sign in to comment.