Hello,
I experience a problem while using MCUXpresso (v11.2.0_4120) and I try to debug any code (Demo software or not) using J-Link debugger on JN5189 chip (SDK_2.6.0_JN5189):
Debugger gets stuck at a weird address which seems to be outside of program code and it doesn't even reach main function.
Please check picture below.
Anyone had a similar issue or knows a fix for this ?
Thank you in advance,
Andrei Pobega
Hi Andrei, I hope you're doing well!
Could you please provide some more information about the behavior you're experiencing?
If you're having issues with an Application Note, then there some modifications are needed to debug successfully:
# Set specific chip (choose one)
#JENNIC_CHIP ?= K32W061
#JENNIC_CHIP ?= K32W041
JENNIC_CHIP ?= JN5189
#JENNIC_CHIP ?= JN5188
# Toolchain paths
TOOLCHAIN_DIR_PATH = ../../../../../MCUXpressoIDE_11.2.0_4120/ide/tools
TOOLCHAIN_PATH = $(TOOLCHAIN_DIR_PATH)/bin
DEBUG=HW
Like so:
Note: Be sure that the JP4 and JP7 are shorted as 3-4 on the board.
If your issue is with the SDK examples, could you please provide some more information about the example being used?
Please let me know if you continue to have issues.
Best regards,
Sebastian
Hello Sebastian,
Thanks for the detailed response.
I figured out what was the problem: I did not install the tool chain correctly and the code did not build correctly, even if it showed 0 errors.
It's ok now, thanks a lot !
Have a good day!
Andrei Pobega