Custom board failing debug session

Hi,

I am using a Raytac  MDBT50Q module on a custom board of mine. I have no 32kHz installed (which is available inside the module), VDD and VDDH are common and powering up from 3V. 

I cant start a debug session. There are no errors thrown. The following is the log I get.

Waiting for gdb server to start...[2022-09-16T01:01:50.149Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkGDBServerCL.exe" -singlerun -nogui -if swd -port 50000 -swoport 50001 -telnetport 50002 -device nRF52840_xxAA -select usb=1050260599 -rtos "C:\\Program Files (x86)\\SEGGER\\JLink\\GDBServer\\RTOSPlugin_Zephyr.dll"
SEGGER J-Link GDB Server V7.66a Command Line Version

JLinkARM.dll V7.66a (DLL compiled May 19 2022 15:13:27)

Command line: -singlerun -nogui -if swd -port 50000 -swoport 50001 -telnetport 50002 -device nRF52840_xxAA -select usb=1050260599 -rtos C:\Program Files (x86)\SEGGER\JLink\GDBServer\RTOSPlugin_Zephyr.dll
-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     50000
SWO raw output listening port: 50001
Terminal I/O port:             50002
Accept remote connection:      localhost only
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   off
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 nRF52840_xxAA
Target interface:              SWD
Target interface speed:        4000kHz
Target endian:                 little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-nRF5340-NordicSemi compiled Dec  3 2021 15:46:49
Hardware: V1.00
S/N: 1050260599
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 50000
Connecting to target...
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x000022A6 (Data = 0x8811F380)
Read 2 bytes @ address 0x000022A6 (Data = 0xF380)
Loading RTOS plugin: C:\Program Files (x86)\SEGGER\JLink\GDBServer\RTOSPlugin_Zephyr.dll...
RTOS plugin (API v1.1) loaded successfully
RTOS plugin: Loaded
Received symbol: _kernel (0x20001438)
Received symbol: _kernel_thread_info_offsets (0x00009C04)
Received symbol: z_sys_post_kernel (0x20001652)
All mandatory symbols successfully loaded.
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x000022A6)
Received monitor command: reset
Resetting target
Downloading 15952 bytes @ address 0x00000000
Downloading 16016 bytes @ address 0x00003E50
Downloading 11984 bytes @ address 0x00007CE0
Comparing flash   [....................] Done.
Writing register (PC = 0x    3598)
Received monitor command: reset
Resetting target
Read 4 bytes @ address 0x00003598 (Data = 0xF3802000)
Read 2 bytes @ address 0x00003598 (Data = 0x2000)
Read 2 bytes @ address 0x000003F0 (Data = 0xB530)
Setting breakpoint @ address 0x000003F0, Size = 2, BPHandle = 0x0001
Starting target CPU...

I created a custom board for my design. I am using the button example program. I have modified the dts file accordingly. I can successfully build the project and flash it without any errors, but the program doesnt spit out any messages on the serial terminal. I am using different pins for serial tx rx and is defined as follows in the dts. 

It works when I try the same project on Raytac dev kit, which has an external 32kHz crystal as well (I cant understand how the external crystal works, if there is one on-board the module).

What could be going wrong for starting a debug session?

Thanks,

Parents Reply Children
Related