Show log to UART DimmableLight

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

Show log to UART DimmableLight

1,437件の閲覧回数
minhtan_uet
Contributor III

Hi Support team!
1.JN-AN-1218-Zigbee-3-0-Light-Bulb
2.JN-AN-1216-Zigbee-3-0-IoT-ControlBridge
I have run this application on 2 JN5169 modules.USB Dongle as a Coordinator. DR1174 board as an End. => It works well
However, I try to connect cable to "End device" on UART0 with baud rate 115200 to get log

=> But never receive anything from portcom . As i know this UART to print log or Maybe I'm wrong
Capture2.PNG
So. Is there a way to get a log from UART of End (DimmableLight), please guide me!
Thank you!

0 件の賞賛
返信
3 返答(返信)

1,306件の閲覧回数
minhtan_uet
Contributor III

Actually. I only received one log "Set a ramdom pan"
Capture4.PNG

As i see in in app_start_light.c
Capture3.PNG

Log is printed with UART0? How can i get log?  Help me!
Thanks

0 件の賞賛
返信

1,306件の閲覧回数
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tran,

If you look into the app_start_light for example, the TRACE_START is defined as FALSE.

Look at the makefile.

# Define TRACE to use with DBG module
TRACE ?=1
ifeq ($(TRACE), 1)
CFLAGS  += -DDBG_ENABLE
#Define to bump debug baud rate to 921600
#CFLAGS += -DDEBUG_921600
endif

At the begining, the c file has defined the next code.

#ifndef DEBUG_START_UP
#define TRACE_START FALSE
#else
#define TRACE_START TRUE
#endif
.
.
.

In this case, if you want to debug the applications, you should define as below.

CFLAGS += -DDEBUG_START_UP‍‍‍‍‍‍‍‍‍

Please let me know if you have issues with the log print.

Regards,

Mario

0 件の賞賛
返信

1,305件の閲覧回数
minhtan_uet
Contributor III

Thanks a lot. Hope you have nice day! :smileygrin:

0 件の賞賛
返信