We're trying to integrate the RT117x series into our established development environment, that being GCC and GDB on Linux.We're facing some issues, as the articles describing the setup of the RT117x Eval board are for windows:
We're able to flash our own programs using DAPLink ontoQSPI. We now want to flash and debug using SWD. We're unable to get the GDBServer to connect to the target. The board is not modified, the SW1 is on [0,0,1,0], the SW2 is [all zero]. I have the following output when using a J-Link BASE:
$ JLinkGDBServer -endian little -noir -speed 4000 -port 2331 -vd -device MIMXRT1176xxxA_M7 -if SWD -halt -reportuseraction -JLinkScriptFile evkmimxrt1170_connect_cm4_cm7side.jlinkscript
SEGGER J-Link GDB Server V6.98a Command Line Version
JLinkARM.dll V6.98a (DLL compiled Mar 5 2021 17:04:29)
Command line: -endian little -noir -speed 4000 -port 2331 -vd -device MIMXRT1176xxxA_M7 -if SWD -halt -reportuseraction -JLinkScriptFile evkmimxrt1170_connect_cm4_cm7side.jlinkscript
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: yes
Generate logfile: off
Verify download: on
Init regs on start: off
Silent mode: off
Single run mode: off
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: evkmimxrt1170_connect_cm4_cm7side.jlinkscript
J-Link settings file: none
------Target related settings------
Target device: MIMXRT1176xxxA_M7
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
$$UserActionStart$$: Terms of use
$$UserActionEnd$$: Terms of use
J-Link is connected.
Device "MIMXRT1176XXXA_M7" selected.
Firmware: J-Link V11 compiled Feb 4 2021 12:59:17
Hardware: V11.00
S/N: 261003783
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Checking target voltage...
Target voltage: 3.31 V
Listening on TCP/IP port 2331
Connecting to target...
InitTarget() start
InitTarget() end
InitTarget() start
InitTarget() end
ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
Could not connect to target.
Please check power, connection and settings.
Can someone point me in the right direction, if we're having an incorrect GDBServer setting or some setting on the board is incorrect?
Solved! Go to Solution.
Solved the issue: Setting the jumpers J6 and J7 to OFF.
They are on by default when boards ship from the factory. Setting the OFF ensures that SWD signals are disconnected from the OpenSDA microcontroller. The Jumpers J5 and J8 connect the UART1 to the OpenSDA microcontroler. Switch them to OFF as well, if you wan't to send UART1 via the J1 instead of the J11 (Debug USB)
Solved the issue: Setting the jumpers J6 and J7 to OFF.
They are on by default when boards ship from the factory. Setting the OFF ensures that SWD signals are disconnected from the OpenSDA microcontroller. The Jumpers J5 and J8 connect the UART1 to the OpenSDA microcontroler. Switch them to OFF as well, if you wan't to send UART1 via the J1 instead of the J11 (Debug USB)