Hello,
First question which of the -device flags to use for my device? Here are flags I got from Segger's list :
MCIMX7D3_M4
MCIMX7D5_M4
MCIMX7D7_M4
MCIMX7U3_M4
MCIMX7U5_M4
The xDx's must be for iMX7 Dual? But whats the difference between D3 , D5, D7? I have tried all these flags on my iMX7Dual SoM, and Segger's GDBServer fails to connect with same error for all 3 of D flags.
opt/SEGGER/JLink/JLinkGDBServer -device MCIMX7D3_M4
SEGGER J-Link GDB Server V6.18 Command Line Version
JLinkARM.dll V6.18 (DLL compiled Aug 3 2017 16:21:09)
Command line: -device MCIMX7D3_M4
-----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: off
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: none
J-Link settings file: none
------Target related settings------
Target device: MCIMX7D3_M4
Target interface: JTAG
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V10 compiled Jul 28 2017 08:59:01
Hardware: V10.00
S/N: 600000226
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 3.33 V
Listening on TCP/IP port 2331
Connecting to target...
J-Link found 1 JTAG device, Total IRLen = 4
JTAG ID: 0x5BA00477 (Cortex-M4)
WARNING: CPU could not be halted
Halting target device failed. Trying again with reset
WARNING: CPU could not be halted
Failed to halt target device on connect
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.
And similarly for D5, D7, only difference is the target device flag , otherwise
The error seems always same:-->
...
JTAG ID: 0x5BA00477 (Cortex-M4)
WARNING: CPU could not be halted
Halting target device failed. Trying again with reset
WARNING: CPU could not be halted
Failed to halt target device on connect
ERROR: Could not connect to target.
.....
Same with my Solo SOM, tried all flags, fails to connect similarly.
Please help
First question which of the -device flags to use for my device? Here are flags I got from Segger's list :
MCIMX7D3_M4
MCIMX7D5_M4
MCIMX7D7_M4
MCIMX7U3_M4
MCIMX7U5_M4
The xDx's must be for iMX7 Dual? But whats the difference between D3 , D5, D7? I have tried all these flags on my iMX7Dual SoM, and Segger's GDBServer fails to connect with same error for all 3 of D flags.
opt/SEGGER/JLink/JLinkGDBServer -device MCIMX7D3_M4
SEGGER J-Link GDB Server V6.18 Command Line Version
JLinkARM.dll V6.18 (DLL compiled Aug 3 2017 16:21:09)
Command line: -device MCIMX7D3_M4
-----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: off
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: none
J-Link settings file: none
------Target related settings------
Target device: MCIMX7D3_M4
Target interface: JTAG
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V10 compiled Jul 28 2017 08:59:01
Hardware: V10.00
S/N: 600000226
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 3.33 V
Listening on TCP/IP port 2331
Connecting to target...
J-Link found 1 JTAG device, Total IRLen = 4
JTAG ID: 0x5BA00477 (Cortex-M4)
WARNING: CPU could not be halted
Halting target device failed. Trying again with reset
WARNING: CPU could not be halted
Failed to halt target device on connect
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.
And similarly for D5, D7, only difference is the target device flag , otherwise
The error seems always same:-->
...
JTAG ID: 0x5BA00477 (Cortex-M4)
WARNING: CPU could not be halted
Halting target device failed. Trying again with reset
WARNING: CPU could not be halted
Failed to halt target device on connect
ERROR: Could not connect to target.
.....
Same with my Solo SOM, tried all flags, fails to connect similarly.
Please help