MCUXpresso_LPC55S69/boards/lpcxpresso55s69/demo_apps/hello_world_swo/cm33_core0
Yilin Sun 6e8d03ec0a Updated to SDK v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-04-12 21:21:49 +08:00
..
armgcc Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00
board.c Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
board.h Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
clock_config.c Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
clock_config.h Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
hello_world_swo.bin Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00
hello_world_swo.c Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00
hello_world_swo.mex Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
hello_world_swo_v3_14.xml Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00
pin_mux.c Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
pin_mux.h Stock SDK v2.11.0 2022-04-08 22:42:47 +08:00
readme.md Updated to SDK v2.15.000 2024-04-12 21:21:49 +08:00

readme.md

Overview

The Hello World SWO demo prints the "SWO: Hello World" string to the SWO viewer. The purpose of this demo is to show how to use the swo, and to provide a simple project for debugging and further development.

SDK version

  • Version: 2.15.000

Toolchain supported

  • IAR embedded Workbench 9.40.1
  • Keil MDK 5.38.1
  • GCC ARM Embedded 12.2
  • MCUXpresso 11.8.0

Hardware requirements

  • Micro USB cable
  • LPCXpresso55s69 board
  • Personal Computer
  • Jlink plus

Board settings

No special settings are required.

Prepare the Demo

Note: MCUXpresso IDE project default debug console is semihost

  1. Connect a micro USB cable between the host PC and P5 on the target board, the P6 must be left unconnected so that the Link2 Debug probe is left unpowered and does not contend with SWD.
  2. Connect Jlink plus probe to the SWD connector(P7).
  3. Download the program to the target board.
  4. Open JlinkerSWOView(C:\Program Files (x86)\SEGGER\JLink_xxx), select the target device, such as LPC55S69 and make sure the core clock and swo clock frequency is equal to the demo setting, the demo use 4MHZ as SWO clock frequency and 48MHZ as core clock frequency.
  5. After swo/core clock measure successfully, press ok to continue, make sure the bit 0 is selected in data from stimulus port item.
  6. Press the reset button on your board.
  7. Press S1.
  8. Note: If use MCUxpresso IDE, you need to set the SDK debug console to UART when importing projects at Project Options -> SDK Debug Console -> UART.

Running the demo

The log below shows the output of the hello world swo demo in the JlinkerSWOView window and the demo will print output periodically or when S1 is pressed:

SWO: timer_trigger
SWO: timer_trigger
SWO: timer_trigger
SWO: hello_world
SWO: timer_trigger
SWO: timer_trigger
...