Show log to UART DimmableLight

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Show log to UART DimmableLight

670 Views
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 Kudos
3 Replies

539 Views
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 Kudos

539 Views
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 Kudos

538 Views
minhtan_uet
Contributor III

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

0 Kudos