Hi,
I am using OSX and v4.82 of the J-Link drivers and after each time I flash the target processor (I am using the STK-3600 to debug my own design), almost every time I lose communications and have to disconnect the STK-3600 for a minute or two and then reconnect.
If I plug the same STK-3700 into a Windows machine, I do not have this issue.
Here is an example where the code downloads, but the fails to start the CPU:
Display All
here is and example where it simple refuses to connect:
Display All
If again unplug and replug after several minutes, it works again.
I have used Apples "USB Prober" Dev tool and note that I have to wait until the device completely disappears from the "Bus Probe" before it will work again.
This is extremely frustrating.
I tried to find the J-Link Commander tool listed on the downloads, but I cannot find it for OSX, does it exist four OSX?
Cheers
Douglas
I am using OSX and v4.82 of the J-Link drivers and after each time I flash the target processor (I am using the STK-3600 to debug my own design), almost every time I lose communications and have to disconnect the STK-3600 for a minute or two and then reconnect.
If I plug the same STK-3700 into a Windows machine, I do not have this issue.
Here is an example where the code downloads, but the fails to start the CPU:
Source Code
- SEGGER J-Link GDB Server V4.82 Command Line Version
- JLinkARM.dll V4.82 (DLL compiled Mar 10 2014 19:13:25)
- -----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: on
- Silent mode: off
- Single run mode: on
- Target connection timeout: 5 sec.
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: EFM32LG330F128
- Target interface: SWD
- Target interface speed: 4kHz
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Firmware: Energy Micro EFM32 compiled Nov 6 2012 20:02:43
- Hardware: V7.00
- S/N: 440004343
- Feature(s): GDB
- Checking target voltage...
- Target voltage: 3.34 V
- Listening on TCP/IP port 2331
- Connecting to target...Connected to target
- Waiting for GDB connection...Connected to 127.0.0.1
- Reading all registers
- Read 4 bytes @ address 0x00000000 (Data = 0x20008000)
- Target interface speed set to 30 kHz
- Resetting target
- Halting target CPU...
- ...Target halted (PC = 0x000000DC)
- R0 = 40088000, R1 = 00000000, R2 = 00000010, R3 = 00000000
- R4 = 100006FC, R5 = 10000754, R6 = 10000754, R7 = 00000000
- R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
- R12= 10000670, R13= 20008000, MSP= 20008000, PSP= 20001B78
- R14(LR) = FFFFFFFF, R15(PC) = 000000DC
- XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
- CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
- Reading all registers
- Select auto target interface speed (2000 kHz)
- Flash breakpoints enabled
- Semi-hosting enabled (VectorAddr = 0x08)
- Semihosting I/O set to TELNET Client
- SWO disabled succesfully.
- SWO enabled succesfully.
- Downloading 16112 bytes @ address 0x00000000 - Verified OK
- Downloading 16176 bytes @ address 0x00003EF0 - Verified OK
- Downloading 16176 bytes @ address 0x00007E20 - Verified OK
- Downloading 16144 bytes @ address 0x0000BD50 - Verified OK
- Downloading 16144 bytes @ address 0x0000FC60 - Verified OK
- Downloading 16208 bytes @ address 0x00013B70 - Verified OK
- Downloading 4428 bytes @ address 0x00017AC0 - Verified OK
- Downloading 4 bytes @ address 0x00018C0C - Verified OK
- Downloading 8 bytes @ address 0x00018C10 - Verified OK
- Downloading 3776 bytes @ address 0x00018C18 - Verified OK
- Downloading 1536 bytes @ address 0x00019AD8 - Verified OK
- Read 4 bytes @ address 0x000000DC (Data = 0x47804801)
- Read 2 bytes @ address 0x00000122 (Data = 0xE7F6)
- Read 2 bytes @ address 0x000000E2 (Data = 0x4700)
- Read 2 bytes @ address 0x0000014C (Data = 0xF2C0)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB24 (Data = 0xF249)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB56 (Data = 0xF00A)
- Read 2 bytes @ address 0x0000B7D4 (Data = 0xF44F)
- Read 2 bytes @ address 0x0000B8CE (Data = 0xF04F)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000B920 (Data = 0xF640)
- Read 2 bytes @ address 0x0000B922 (Data = 0x0381)
- Read 2 bytes @ address 0x0000B924 (Data = 0xF2C2)
- Read 2 bytes @ address 0x0000B926 (Data = 0x0300)
- Read 2 bytes @ address 0x0000B920 (Data = 0xF640)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB52 (Data = 0xF7FF)
- Read 2 bytes @ address 0x0000B95E (Data = 0xF89D)
- Read 2 bytes @ address 0x0000B95E (Data = 0xF89D)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB56 (Data = 0xF00A)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB20 (Data = 0xF000)
- Read 2 bytes @ address 0x000000DC (Data = 0x4801)
- Read 4 bytes @ address 0x000000E4 (Data = 0x00000379)
- Read 2 bytes @ address 0x000000DE (Data = 0x4780)
- Read 2 bytes @ address 0x000000DE (Data = 0x4780)
- Read 2 bytes @ address 0x00004D16 (Data = 0x2051)
- Read 2 bytes @ address 0x00004D16 (Data = 0x2051)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000ABE6 (Data = 0xF249)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB56 (Data = 0xF00A)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB52 (Data = 0xF7FF)
- Read 2 bytes @ address 0x000099B8 (Data = 0x9B01)
- Read 2 bytes @ address 0x000099B8 (Data = 0x9B01)
- Read 2 bytes @ address 0x000000F0 (Data = 0x4901)
- Read 4 bytes @ address 0x000000F8 (Data = 0x20008000)
- Read 2 bytes @ address 0x000000F2 (Data = 0x468D)
- Read 2 bytes @ address 0x000000F2 (Data = 0x468D)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Read 2 bytes @ address 0x0000AB18 (Data = 0xF7FE)
- Resetting target
- Halting target CPU...
- ...Target halted (PC = 0x000000DC)
- R0 = 40088000, R1 = 00000000, R2 = 00000010, R3 = 00000000
- R4 = 100006FC, R5 = 10000754, R6 = 10000754, R7 = 00000000
- R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
- R12= 10000670, R13= 20008000, MSP= 20008000, PSP= 20001B78
- R14(LR) = FFFFFFFF, R15(PC) = 000000DC
- XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
- CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
- Reading all registers
- Read 4 bytes @ address 0x000000DC (Data = 0x47804801)
- Setting breakpoint @ address 0x000000DE, Size = 2, BPHandle = 0x0002
- Setting breakpoint @ address 0x000099B8, Size = 2, BPHandle = 0x0003
- Setting breakpoint @ address 0x0000AB18, Size = 2, BPHandle = 0x0004
- Setting breakpoint @ address 0x0000AB56, Size = 2, BPHandle = 0x0005
- Setting breakpoint @ address 0x0000ABE6, Size = 2, BPHandle = 0x0006
- Starting target CPU...
- ERROR: Communication timed out: Requested 24 bytes, received 0 bytes !
- Could not start CPU core. (ErrorCode: -1)
- ...Target halted (PC = 0x00000000)
- Reading all registers
- Removing breakpoint @ address 0x000000DE, Size = 2
- WARNING: Could not remove breakpoint @ address 0x000000DE
- Removing breakpoint @ address 0x000099B8, Size = 2
- WARNING: Could not remove breakpoint @ address 0x000099B8
- Removing breakpoint @ address 0x0000AB18, Size = 2
- WARNING: Could not remove breakpoint @ address 0x0000AB18
- Removing breakpoint @ address 0x0000AB56, Size = 2
- WARNING: Could not remove breakpoint @ address 0x0000AB56
- Removing breakpoint @ address 0x0000ABE6, Size = 2
- WARNING: Could not remove breakpoint @ address 0x0000ABE6
- WARNING: Failed to read memory @ address 0x00000000
- Read 4 bytes @ address 0x00000000 (Data = 0x00007FFF)
- WARNING: Failed to read memory @ address 0x00000000
- Read 4 bytes @ address 0x00000000 (Data = 0x00007FFF)
- Reading 140 bytes @ address 0x00000000
- WARNING: Failed to read memory @ address 0x00000000
- WARNING: Failed to read memory @ address 0x00000000
- Read 2 bytes @ address 0x00000000 (Data = 0x7FFF)
- Reading 100 bytes @ address 0x00000001
- WARNING: Failed to read memory @ address 0x00000001
- WARNING: Failed to read memory @ address 0x00000000
- Read 2 bytes @ address 0x00000000 (Data = 0x7FFF)
- Reading 100 bytes @ address 0x00000002
- WARNING: Failed to read memory @ address 0x00000002
- WARNING: Failed to read memory @ address 0x00000002
- Read 2 bytes @ address 0x00000002 (Data = 0x7FFF)
- Reading 100 bytes @ address 0x00000003
- WARNING: Failed to read memory @ address 0x00000003
- WARNING: Failed to read memory @ address 0x00000002
- Read 2 bytes @ address 0x00000002 (Data = 0x7FFF)
- Reading 100 bytes @ address 0x00000004
- WARNING: Failed to read memory @ address 0x00000004
- WARNING: Failed to read memory @ address 0x00000004
- Read 2 bytes @ address 0x00000004 (Data = 0x7FFF)
- Reading 100 bytes @ address 0x00000005
- WARNING: Failed to read memory @ address 0x00000005
- WARNING: Failed to read memory @ address 0x00000004
- Read 2 bytes @ address 0x00000004 (Data = 0x7FFF)
here is and example where it simple refuses to connect:
Source Code
- SEGGER J-Link GDB Server V4.82 Command Line Version
- JLinkARM.dll V4.82 (DLL compiled Mar 10 2014 19:13:25)
- -----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: on
- Silent mode: off
- Single run mode: on
- Target connection timeout: 5 sec.
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: EFM32LG330F128
- Target interface: SWD
- Target interface speed: 4kHz
- Target endian: little
- Connecting to J-Link...
- Connecting to J-Link failed. Connected correctly?
- GDBServer will be closed...
- Shutting down...
If again unplug and replug after several minutes, it works again.
I have used Apples "USB Prober" Dev tool and note that I have to wait until the device completely disappears from the "Bus Probe" before it will work again.
This is extremely frustrating.
I tried to find the J-Link Commander tool listed on the downloads, but I cannot find it for OSX, does it exist four OSX?
Cheers
Douglas
The post was edited 1 time, last by Douglas ().