cancel
Showing results for 
Search instead for 
Did you mean: 

ModusToolbox Bluetooth SDK

marzuniga845
New Contributor

Hello all,

I have the CYBT-213043-MESH kit, and I have the CY8CKIT-005 MiniProg4 Program and debug kit. 

I have connected the debugger (SWDIO pin) to the mesh kit (SWDCK pin) while both connected to my Mac.

I have set the ENABLE_DEBUG?=1 in the appropriate makefile of the application I wish to download onto the board. 

My problem is that when I try to launch the debug, I get this error:

Started by GNU MCU Eclipse

Started by GNU MCU Eclipse

Open On-Chip Debugger 0.10.0+dev-4.2.0.1430 (2021-03-05-16:23)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

adapter speed: 10000 kHz

Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.

cortex_m reset_config sysresetreq

force hard breakpoints

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : CMSIS-DAP: SWD  Supported

Info : CMSIS-DAP: JTAG Supported

Info : CMSIS-DAP: FW Version = 2.0.0

Info : CMSIS-DAP: Interface Initialised (SWD)

Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1

Info : CMSIS-DAP: Interface ready

Info : KitProg3: FW version: 2.21.1005

Info : KitProg3: Pipelined transfers enabled

Info : VTarget = 0.000 V

Info : High speed (adapter speed 10000) may be limited by adapter firmware.

Info : clock speed 10000 kHz

Error: DAP 'CYW20819A1.cpu' initialization failed (check connection, power, transport, DAP is enabled etc.)

Info : CYW20819A1.dap: powering down debug domain...

Warn : Failed to power down Debug Domains

 

I would appreciate the help on how to proceed!

Thanks

0 Likes
3 Replies
DheerajPK_41
Moderator
Moderator

Hi,

As mentioned in the error message, first check the connection from your Miniprog4 to the BT kit. May I know which all pins you connected to the minirpog? Also, check whether the board is provided proper power supply also.

Thanks,

-Dheeraj

0 Likes
marzuniga845
New Contributor

Hi Dheeraj, 

I connected Pin P12 on the board to Pin SWDIO on the miniprog. I also connected both grounds together. 

Thanks,

Mariela Zuniga

0 Likes
DheerajPK_41
Moderator
Moderator

Hi,

I will try to reproduce the issue. Please let us know the Modustoolbox and BTSDK versions which you are using.

 

Also, could you please let us know why do you need to use this hardware debugger on Meshkit? If you are trying to debug a mesh application, we suggest you to use the puart logs/btspy logs. Also you can enable below traces from the application to get various levels of debuggin traces. 

MESH_MODELS_DEBUG_TRACES ?= 0
MESH_CORE_DEBUG_TRACES ?= 0
MESH_PROVISIONER_DEBUG_TRACES ?= 0

Thanks,

-Dheeraj.P.K

0 Likes