Why JN516x binary file has no _hwdbg?

cancel
Showing results for 
Search instead for 
Did you mean: 

Why JN516x binary file has no _hwdbg?

65 Views
Contributor III

When I am working with JN-AN-1189-ZigBee-HA-Demo, I enabled the DEBUG=HW, but the bin file's name will not add -hwdbg.

Is the project unable to enable hardware debug with JTAG???

 

And I fould these in the SDK config_ba2.mk:

# Debug Support

ifeq ($(DEBUG), HW)
DISABLE_LTO ?= 1
CFLAGS += -g -DGDB
LDFLAGS += -g
# Optimise at level 0 instead of size
CFLAGS := $(subst -Os,-O0,$(CFLAGS))
LDFLAGS := $(subst -Os,-O0,$(LDFLAGS))
HARDWARE_DEBUG_ENABLED=1
endif

ifeq ($(DEBUG), HW_SIZEOPT)
DISABLE_LTO ?= 1
CFLAGS += -g -DGDB
LDFLAGS += -g
HARDWARE_DEBUG_ENABLED=1
$(info No optimisation enabled with HW debug ...)
endif

ifeq ($(HARDWARE_DEBUG_ENABLED), 1)
# Set DEBUG_PORT to UART0 or UART1 dependant on connection to serial port on board
CFLAGS += -D$(DEBUG_PORT)_DEBUG
CFLAGS += -DHWDEBUG
BIN_SUFFIX ?= _hwdbg
$(info Building HW debug version ...)
endif

 

 

So this is the root cause?

BIN_SUFFIX should be +=, not ?=

 

JN-AN-1180-802-15-4-Home-Sensor-Demo is ok, I think BIN_SUFFIX is empty here.

 

Am I correct?

Tks!!

Labels (2)
0 Kudos
3 Replies

57 Views
NXP TechSupport
NXP TechSupport

Hi,

Please look at the next application note that could help you to enter into debug mode. You will need a Beyond Debug Key.

https://www.nxp.com/docs/en/application-note/JN-AN-1203.pdf

What is the reason that you want to enter into debug mode? Could you please explain with more details your specific issue.

Regards,

Mario

 

0 Kudos

10 Views
Contributor III

Dear Mario,

I can stop the code by clicking the pause button, but I can not add breakpoint. Do you know this reason?

wangyilong_0-1603187934764.png

 

Tks so much!!

 

0 Kudos

32 Views
Contributor III

Hi,Mario

I am planning to develop a project about motor control of IoT, like a electric curtain, but I added a gsensor hardware via the UART hardware. So I have to debug how the JN5169 parse the gsensor data.

Also we have Beyond Debug Key, and I have succeeded with AN1180_154_HomeSensorEndD_JN5168_hwdbg.elf according to JN-AN-1203.pdf, but failed with other demo projects. So I think the unsupported demo project is lack of makefile config. But I'm not sure.

BTW, what if there is no current cluster supporting my application? What should I do? I didn't find corresponding guide. Could you help provide any clues?

Tks so much!

Best wishes!

0 Kudos