Hello.
I'm trying to initiate a GDB session with a Digi CC-WMX53-LX board which has a ConnectCore Wi-i.MX53 module on it.
Connection seems to work but programming does not. Anyone know anything about halting issues? At the same time jlink commander seems able to halt the target.
Display All
Display All
I'm trying to initiate a GDB session with a Digi CC-WMX53-LX board which has a ConnectCore Wi-i.MX53 module on it.
Connection seems to work but programming does not. Anyone know anything about halting issues? At the same time jlink commander seems able to halt the target.
Source Code
- SEGGER J-Link GDB Server V6.00e GUI Version
- JLinkARM.dll V6.00e (DLL compiled Aug 4 2016 09:37:38)
- -----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: localhost only
- Generate logfile: off
- Verify download: on
- Init regs on start: off
- Silent mode: off
- Single run mode: off
- Target connection timeout: 5000 ms
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: iMX535
- Target interface: JTAG
- Target interface speed: auto
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Firmware: J-Link Pro V4 compiled Aug 3 2016 18:51:26
- Hardware: V4.00
- S/N: 174301086
- Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
- Checking target voltage...
- Target voltage: 1.80 V
- Listening on TCP/IP port 2331
- Connecting to target...WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 3, NumBitsSet = 2)
- WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 3, NumBitsSet = 2)
- J-Link found 3 JTAG devices, Total IRLen = 13
- JTAG ID: 0x1BA00477 (Cortex-A8)
- Connected to target
- Waiting for GDB connection...Connected to 127.0.0.1
- Reading all registers
- Read 4 bytes @ address 0x77817148 (Data = 0xE3110020)
- Read 4 bytes @ address 0x77851209 (Data = 0x4D574343)
- Read 4 bytes @ address 0x4D57433A (Data = 0x00000000)
- WARNING: CPU not halted after Reset, halting using Halt request
- WARNING: CPU could not be halted
- ERROR: Bad JTAG communication: Write to IR: Expected 0x1, got 0xF (TAP Command : 10) @ Off 0x5.
- Resetting target
- Downloading 4096 bytes @ address 0x70000000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70001000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70002000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70003000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70004000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70005000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70006000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70007000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70008000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x70009000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x7000A000WARNING: CPU could not be halted
- WARNING: CPU could not be halted
- - Verify failed
- Downloading 4096 bytes @ address 0x7000B000WARNING: CPU could not be halted
Source Code
- SEGGER J-Link Commander V6.00e (Compiled Aug 4 2016 09:38:11)
- DLL version V6.00e, compiled Aug 4 2016 09:37:38
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link Pro V4 compiled Aug 3 2016 18:51:26
- Hardware version: V4.00
- S/N: 174301086
- License(s): RDI, FlashBP, FlashDL, JFlash, GDB
- IP-Addr: DHCP (no addr. received yet)
- VTref = 1.804V
- Type "connect" to establish a target connection, '?' for help
- J-Link>device imx535
- J-Link>connect
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- TIF>J
- Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
- JTAGConf>
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>1000
- Device "IMX535" selected.
- TotalIRLen = 13, IRPrint = 0x0101
- **************************
- WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1
- 149.1, 7.1.1.d, IR-cells). (NumDevices = 3, NumBitsSet = 2)
- **************************
- ARM AP[0]: 0x44770001, AHB-AP
- ARM AP[1]: 0x24770002, APB-AP
- ROMTbl 0 [0]: 00001003, CID: B105900D, PID:04-000BB907 ETB
- ROMTbl 0 [1]: 00002003, CID: B105900D, PID:04-104BB921
- ROMTbl 0 [2]: 00003003, CID: B105900D, PID:04-004BB912 TPIU
- ROMTbl 0 [3]: 00004003, CID: B105900D, PID:04-104BB922
- ROMTbl 0 [4]: 00005003, CID: B105900D, PID:04-000BB906 ECT / CTI
- ROMTbl 0 [5]: 00006003, CID: B105900D, PID:04-003BB906 ECT / CTI
- ROMTbl 0 [6]: 00007003, CID: B105900D, PID:04-003BB906 ECT / CTI
- ROMTbl 0 [7]: 00008003, CID: B105900D, PID:04-104BBC08 Cortex-A8
- Found Cortex-A8 r2p5
- 6 code breakpoints, 2 data breakpoints
- Debug architecture ARMv7.0
- Data endian: little
- Main ID register: 0x412FC085
- I-Cache L1: 32 KB, 128 Sets, 64 Bytes/Line, 4-Way
- D-Cache L1: 32 KB, 128 Sets, 64 Bytes/Line, 4-Way
- Unified-Cache L2: 256 KB, 512 Sets, 64 Bytes/Line, 8-Way
- System control register:
- Instruction endian: little
- Level-1 instruction cache enabled
- Level-1 data cache enabled
- MMU enabled
- Branch prediction enabled
- Found 3 JTAG devices, Total IRLen = 13:
- #0 Id: 0x1BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)
- #1 Id: 0x00000001
- #2 Id: 0x1190D01D
- Cortex-A8 identified.
- J-Link>h
- PC: (R15) = 77817148, CPSR = 200001D3 (SVC mode, ARM FIQ dis. IRQ dis.)
- Current:
- R0 =00000000, R1 =00000060, R2 =53FBC0B4, R3 =53FBC000
- R4 =77861BE4, R5 =00000000, R6 =77860784, R7 =7785B53C
- R8 =77817150, R9 =77817150, R10=7740061C, R11=00000000, R12=00000001
- R13=77851209, R14=53FBC0B4, SPSR=773FFE70
- USR: R8 =7740061C, R9 =00000000, R10=00000001, R11=77851209, R12=53FBC0B4
- R13=7C9B7FE6, R14=5D8D5C97
- FIQ: R8 =A4BD3EEC, R9 =BC268EB7, R10=F925BB74, R11=7C75B317, R12=34F73FDE
- R13=9FBFCFAF, R14=6D7B9865, SPSR=00000000
- IRQ: R13=C04B9076, R14=C40F16B7, SPSR=00000000
- SVC: R13=773FFE70, R14=77826FA0, SPSR=00000000
- ABT: R13=AC1763BE, R14=AFAFCCDF, SPSR=00000000
- UND: R13=BC67FFF6, R14=9C37F67A, SPSR=00000000
- J-Link>loadfile test.hex
- Downloading file [test.hex]...
- O.K.
- J-Link>setpc 0x70000000
- J-Link>s
- 70000000: 18 F0 9F E5 LDR PC, [PC, #+0x18] ; 0x70000020
- J-Link>s
- 700001C0: 70 10 9F E5 LDR R1, [PC, #+0x70] ; 0x70000238
- J-Link>s
- 700001C4: 10 1F 0C EE MCR p15, 0, R1, c12, c0, 0
- J-Link>h
- PC: (R15) = 700001C8, CPSR = 200001D3 (SVC mode, ARM FIQ dis. IRQ dis.)
- Current:
- R0 =00000000, R1 =70000000, R2 =53FBC0B4, R3 =53FBC000
- R4 =77861BE4, R5 =00000000, R6 =77860784, R7 =7785B53C
- R8 =700001D0, R9 =700001D0, R10=7740061C, R11=00000000, R12=00000001
- R13=77851209, R14=53FBC0B4, SPSR=773FFE70
- USR: R8 =7740061C, R9 =00000000, R10=00000001, R11=77851209, R12=53FBC0B4
- R13=7C9B7FE6, R14=5D8D5C97
- FIQ: R8 =A4BD3EEC, R9 =BC268EB7, R10=F925BB74, R11=7C75B317, R12=34F73FDE
- R13=9FBFCFAF, R14=6D7B9865, SPSR=00000000
- IRQ: R13=C04B9076, R14=C40F16B7, SPSR=00000000
- SVC: R13=773FFE70, R14=77826FA0, SPSR=00000000
- ABT: R13=AC1763BE, R14=AFAFCCDF, SPSR=00000000
- UND: R13=BC67FFF6, R14=9C37F67A, SPSR=00000000
- J-Link>