Where to find the SWO console output?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Where to find the SWO console output?

327件の閲覧回数
Johnny5
Contributor II

I'm trying to route the debug console over SWO, instead of UART.  Where to find the SWO console output?

 

Starting with SDK example: evkbmimxrt1170_semc_cm7 (any other example using debug console should do)

using the peripherals tool - utilities - debug console

                serial port type = SWO

                added SDK component: ulitily.debug_console

                added SDK component: component.serial_manager_swo

                routed SWO to pin D6

                Update code

manually copied from the SDK zip

                fsl_component_serial_manager.c

                fsl_component_serial_manager.h

                fsl_component_serial_port_internal.h

removed

                utilities/debug_console

it compiles successfully

modified code attached

 

Where to find the SWO console output?  There are several Printf in the code, but I can’t find the output.  In the unmodified code, they appear on a COM terminal.

 

MCUXpresso IDE v24.12

SDK_2.x_MIMXRT1170-EVKB 25.3.0.201911251446
Hardware: MIMXRT1170-EVKB

ラベル(1)
0 件の賞賛
返信
1 返信

274件の閲覧回数
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Johnny5 ,

Thanks for your interest in NXP MIMXRT series!

Please help me to check this post. It provided a useful guide and a MCUXpressoIDE project for your reference.

Best regards,
Gavin

0 件の賞賛
返信