6 Replies Latest reply on Nov 14, 2019 2:33 AM by NiBe_3829331

    Using JLink to debug CX3 in Ubuntu

    NiBe_3829331

      Dear all,

       

      This thread refers to debugging the DENEBOLA CX3 evaluation board using SEgger J-Link when using Linux (Ubuntu) Platform.

      I follow both EzUsbSuite_UG.pdf and  FX3_SDK_Linux_Support.pdf document sfor that matter.

       

      From eclipse I tried to debug the sample application that demonstrates data transfer from the FX3 GPIF port to the USB port with no success.

      It looks like the debugger is stuck - cannot step over \ step into.

      please see console log below:

       

      ./JLinkGDBServer -device ARM9

      SEGGER J-Link GDB Server V6.54c Command Line Version

       

       

      JLinkARM.dll V6.54c (DLL compiled Nov  7 2019 17:05:41)

       

       

      Command line: -device ARM9

      -----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:                 ARM9

      Target interface:              JTAG

      Target interface speed:        4000kHz

      Target endian:                 little

       

       

      Connecting to J-Link...

      J-Link is connected.

      Firmware: J-Link V10 compiled Oct 22 2019 16:28:15

      Hardware: V10.10

      S/N: 50119080

      Feature(s): GDB

      Checking target voltage...

      Target voltage: 3.32 V

      Listening on TCP/IP port 2331

      Connecting to target...

      J-Link found 1 JTAG device, Total IRLen = 4

      JTAG ID: 0x07926069 (ARM9)

      Connected to target

      Waiting for GDB connection...Connected to 127.0.0.1

      Reading all registers

      Read 4 bytes @ address 0xF0000048 (Data = 0xEAFFFFFE)

      Received monitor command: speed 1000

      Target interface speed set to 1000 kHz

      Received monitor command: clrbp

      Received monitor command: reset

      WARNING: PC of target system has unexpected value of 0xF00002A8 after reset.

      Resetting target

      Received monitor command: halt

      Halting target CPU...

      ...Target halted (PC = 0x00000000)

      Received monitor command: regs

      PC = 00000000, CPSR = 000000D3 (SVC mode, ARM FIQ dis. IRQ dis.)

      R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000

      R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000

      USR: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000

           R13=00000000, R14=00000000

      FIQ: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000

           R13=00000000, R14=00000000, SPSR=00000010

      SVC: R13=00000000, R14=00000000, SPSR=00000010

      ABT: R13=00000000, R14=00000000, SPSR=00000010

      IRQ: R13=00000000, R14=00000000, SPSR=00000010

      UND: R13=00000000, R14=00000000, SPSR=00000010

      Reading all registers

      Received monitor command: speed auto

      Select auto target interface speed (7827 kHz)

      Received monitor command: flash breakpoints 1

      Flash breakpoints enabled

      Received monitor command: semihosting enable

      Semi-hosting enabled (SVC Addr = 0x08)

      Received monitor command: semihosting IOClient 1

      Semihosting I/O set to TELNET Client

      Downloading 9512 bytes @ address 0x00000100

      Downloading 11416 bytes @ address 0x40003000

      Downloading 16 bytes @ address 0x40005C98

      Downloading 92 bytes @ address 0x40005CA8

      Downloading 232 bytes @ address 0x40005D04

      Downloading 212 bytes @ address 0x40005DEC

      Downloading 68 bytes @ address 0x40005EC0

      Downloading 536 bytes @ address 0x40005F04

      Downloading 80 bytes @ address 0x4000611C

      Downloading 132 bytes @ address 0x4000616C

      Downloading 84 bytes @ address 0x400061F0

      Downloading 752 bytes @ address 0x40006244

      Downloading 152 bytes @ address 0x40006534

      Downloading 620 bytes @ address 0x400065CC

      Downloading 1016 bytes @ address 0x40006838

      Downloading 180 bytes @ address 0x40006C30

      Downloading 212 bytes @ address 0x40006CE4

      Downloading 456 bytes @ address 0x40006DB8

      Downloading 848 bytes @ address 0x40006F80

      Downloading 820 bytes @ address 0x400072D0

      Downloading 288 bytes @ address 0x40007604

      Downloading 140 bytes @ address 0x40007724

      Downloading 248 bytes @ address 0x400077B0

      Downloading 100 bytes @ address 0x400078A8

      Downloading 436 bytes @ address 0x4000790C

      Downloading 220 bytes @ address 0x40007AC0

      Downloading 416 bytes @ address 0x40007B9C

      Downloading 492 bytes @ address 0x40007D3C

      Downloading 544 bytes @ address 0x40007F28

      Downloading 236 bytes @ address 0x40008148

      Downloading 304 bytes @ address 0x40008234

      Downloading 420 bytes @ address 0x40008364

      Downloading 268 bytes @ address 0x40008508

      Downloading 276 bytes @ address 0x40008614

      Downloading 240 bytes @ address 0x40008728

      Downloading 52 bytes @ address 0x40008818

      Downloading 412 bytes @ address 0x4000884C

      Downloading 128 bytes @ address 0x400089E8

      Downloading 16 bytes @ address 0x40008A68

      Downloading 592 bytes @ address 0x40008A78

      Downloading 248 bytes @ address 0x40008CC8

      Downloading 696 bytes @ address 0x40008DC0

      Downloading 108 bytes @ address 0x40009078

      Downloading 152 bytes @ address 0x400090E4

      Downloading 336 bytes @ address 0x4000917C

      Downloading 152 bytes @ address 0x400092CC

      Downloading 1168 bytes @ address 0x40009364

      Downloading 128 bytes @ address 0x400097F8

      Downloading 44 bytes @ address 0x40009878

      Downloading 244 bytes @ address 0x400098A4

      Downloading 208 bytes @ address 0x40009998

      Downloading 156 bytes @ address 0x40009A68

      Downloading 64 bytes @ address 0x40009B04

      Downloading 120 bytes @ address 0x40009B44

      Downloading 192 bytes @ address 0x40009BC0

      Downloading 960 bytes @ address 0x40009C80

      Downloading 1536 bytes @ address 0x4000A040

      Downloading 1516 bytes @ address 0x4000A640

      Downloading 1684 bytes @ address 0x4000AC2C

      Downloading 80 bytes @ address 0x4000B2C0

      Downloading 248 bytes @ address 0x4000B310

      Downloading 64 bytes @ address 0x4000B408

      Downloading 412 bytes @ address 0x4000B448

      Downloading 276 bytes @ address 0x4000B5E4

      Downloading 60 bytes @ address 0x4000B6F8

      Downloading 60 bytes @ address 0x4000B734

      Downloading 100 bytes @ address 0x4000B770

      Downloading 112 bytes @ address 0x4000B7D4

      Downloading 352 bytes @ address 0x4000B848

      Downloading 160 bytes @ address 0x4000B9A8

      Downloading 224 bytes @ address 0x4000BA48

      Downloading 16 bytes @ address 0x4000BB28

      Downloading 104 bytes @ address 0x4000BB38

      Downloading 156 bytes @ address 0x4000BBA0

      Downloading 256 bytes @ address 0x4000BC3C

      Downloading 164 bytes @ address 0x4000BD3C

      Downloading 144 bytes @ address 0x4000BDE0

      Downloading 628 bytes @ address 0x4000BE70

      Downloading 340 bytes @ address 0x4000C0E4

      Downloading 56 bytes @ address 0x4000C238

      Downloading 132 bytes @ address 0x4000C270

      Downloading 160 bytes @ address 0x4000C2F8

      Downloading 40 bytes @ address 0x4000C398

      Downloading 416 bytes @ address 0x4000C3C0

      Downloading 296 bytes @ address 0x4000C560

      Downloading 80 bytes @ address 0x4000C688

      Downloading 304 bytes @ address 0x4000C6D8

      Downloading 216 bytes @ address 0x4000C808

      Downloading 132 bytes @ address 0x4000C8E0

      Downloading 12 bytes @ address 0x4000C964

      Downloading 12 bytes @ address 0x4000C970

      Downloading 16 bytes @ address 0x4000C97C

      Downloading 16 bytes @ address 0x4000C98C

      Downloading 20 bytes @ address 0x4000C99C

      Downloading 16 bytes @ address 0x4000C9B0

      Downloading 12 bytes @ address 0x4000C9C0

      Downloading 20 bytes @ address 0x4000C9CC

      Downloading 60 bytes @ address 0x4000C9E0

      Downloading 40 bytes @ address 0x4000CA1C

      Downloading 124 bytes @ address 0x4000CA44

      Downloading 336 bytes @ address 0x4000CAC0

      Downloading 356 bytes @ address 0x4000CC10

      Downloading 80 bytes @ address 0x4000CD74

      Downloading 688 bytes @ address 0x4000CDC4

      Downloading 388 bytes @ address 0x4000D074

      Downloading 96 bytes @ address 0x4000D1F8

      Downloading 160 bytes @ address 0x4000D258

      Downloading 224 bytes @ address 0x4000D2F8

      Downloading 224 bytes @ address 0x4000D3D8

      Downloading 72 bytes @ address 0x4000D4B8

      Downloading 172 bytes @ address 0x4000D500

      Downloading 116 bytes @ address 0x4000D5AC

      Downloading 212 bytes @ address 0x4000D620

      Downloading 356 bytes @ address 0x4000D6F4

      Downloading 232 bytes @ address 0x4000D858

      Downloading 176 bytes @ address 0x4000D940

      Downloading 16 bytes @ address 0x4000D9F0

      Downloading 36 bytes @ address 0x4000DA00

      Downloading 120 bytes @ address 0x4000DA28

      Downloading 4 bytes @ address 0x4000DAA0

      Downloading 584 bytes @ address 0x4000DAA4

      Downloading 16 bytes @ address 0x4000DCEC

      Downloading 204 bytes @ address 0x4000DCFC

      Downloading 192 bytes @ address 0x4000DDC8

      Downloading 16 bytes @ address 0x4000DE88

      Downloading 1360 bytes @ address 0x4000DE98

      Downloading 132 bytes @ address 0x4000E3E8

      Downloading 456 bytes @ address 0x4000E46C

      Downloading 344 bytes @ address 0x4000E634

      Downloading 248 bytes @ address 0x4000E78C

      Downloading 372 bytes @ address 0x4000E884

      Downloading 148 bytes @ address 0x4000E9F8

      Downloading 188 bytes @ address 0x4000EA8C

      Downloading 440 bytes @ address 0x4000EB48

      Downloading 180 bytes @ address 0x4000ED00

      Downloading 300 bytes @ address 0x4000EDB4

      Downloading 4 bytes @ address 0x4000EEE0

      Downloading 16 bytes @ address 0x4000EEE4

      Downloading 16 bytes @ address 0x4000EEF4

      Downloading 76 bytes @ address 0x4000EF04

      Downloading 104 bytes @ address 0x4000EF50

      Downloading 108 bytes @ address 0x4000EFB8

      Downloading 124 bytes @ address 0x4000F024

      Downloading 180 bytes @ address 0x4000F0A0

      Downloading 588 bytes @ address 0x4000F154

      Downloading 892 bytes @ address 0x4000F3A0

      Downloading 12 bytes @ address 0x4000F71C

      Downloading 4 bytes @ address 0x4000F728

      Downloading 800 bytes @ address 0x4000F72C

      Downloading 212 bytes @ address 0x4000FA4C

      Downloading 120 bytes @ address 0x4000FB20

      Downloading 592 bytes @ address 0x4000FB98

      Downloading 244 bytes @ address 0x4000FDE8

      Downloading 456 bytes @ address 0x4000FEDC

      Downloading 436 bytes @ address 0x400100A4

      Downloading 168 bytes @ address 0x40010258

      Downloading 340 bytes @ address 0x40010300

      Downloading 1008 bytes @ address 0x40010454

      Downloading 940 bytes @ address 0x40010844

      Downloading 128 bytes @ address 0x40010BF0

      Downloading 128 bytes @ address 0x40010C70

      Downloading 120 bytes @ address 0x40010CF0

      Downloading 440 bytes @ address 0x40010D68

      Downloading 528 bytes @ address 0x40010F20

      Downloading 640 bytes @ address 0x40011130

      Downloading 224 bytes @ address 0x400113B0

      Downloading 60 bytes @ address 0x40011490

      Downloading 160 bytes @ address 0x400114CC

      Downloading 160 bytes @ address 0x4001156C

      Downloading 1272 bytes @ address 0x4001160C

      Downloading 316 bytes @ address 0x40011B04

      Downloading 1572 bytes @ address 0x40011C40

      Downloading 196 bytes @ address 0x40012264

      Downloading 164 bytes @ address 0x40012328

      Downloading 144 bytes @ address 0x400123D0

      Downloading 360 bytes @ address 0x40012460

      Downloading 132 bytes @ address 0x400125C8

      Downloading 608 bytes @ address 0x4001264C

      Downloading 48 bytes @ address 0x400128B0

      Downloading 544 bytes @ address 0x400128E0

      Downloading 696 bytes @ address 0x40012B00

      Downloading 184 bytes @ address 0x40012DB8

      Downloading 24 bytes @ address 0x40012E70

      Downloading 280 bytes @ address 0x40012E88

      Downloading 1204 bytes @ address 0x40012FA0

      Downloading 248 bytes @ address 0x40013454

      Downloading 304 bytes @ address 0x4001354C

      Downloading 96 bytes @ address 0x40013680

      Downloading 540 bytes @ address 0x400136E0

      Downloading 84 bytes @ address 0x400138FC

      Downloading 16 bytes @ address 0x40013950

      Downloading 96 bytes @ address 0x40013960

      Downloading 376 bytes @ address 0x400139C0

      Downloading 80 bytes @ address 0x40013B38

      Downloading 568 bytes @ address 0x40013B88

      Downloading 480 bytes @ address 0x40013DC0

      Downloading 424 bytes @ address 0x40013FA0

      Downloading 528 bytes @ address 0x40014148

      Downloading 2128 bytes @ address 0x40014358

      Downloading 80 bytes @ address 0x40014BA8

      Downloading 304 bytes @ address 0x40014BF8

      Downloading 824 bytes @ address 0x40014D28

      Downloading 260 bytes @ address 0x40015060

      Downloading 92 bytes @ address 0x40015164

      Downloading 32 bytes @ address 0x400151C0

      Downloading 104 bytes @ address 0x400151E0

      Downloading 40 bytes @ address 0x40015248

      Downloading 32 bytes @ address 0x40015270

      Downloading 276 bytes @ address 0x40015290

      Downloading 12 bytes @ address 0x400153A4

      Downloading 16 bytes @ address 0x400153B0

      Downloading 20 bytes @ address 0x400153C0

      Downloading 20 bytes @ address 0x400153D4

      Downloading 12 bytes @ address 0x400153E8

      Downloading 64 bytes @ address 0x400153F8

      Downloading 64 bytes @ address 0x40015438

      Downloading 24 bytes @ address 0x40015478

      Downloading 404 bytes @ address 0x40015490

      Downloading 16 bytes @ address 0x40015624

      Downloading 16 bytes @ address 0x40015634

      Downloading 16 bytes @ address 0x40015644

      Downloading 16 bytes @ address 0x40015654

      Downloading 628 bytes @ address 0x40015664

      Downloading 168 bytes @ address 0x400158D8

      Downloading 116 bytes @ address 0x40015980

      Downloading 40 bytes @ address 0x400159F4

      Downloading 40 bytes @ address 0x40015A1C

      Downloading 40 bytes @ address 0x40015A44

      Downloading 40 bytes @ address 0x40015A6C

      Downloading 40 bytes @ address 0x40015A94

      Downloading 40 bytes @ address 0x40015ABC

      Downloading 40 bytes @ address 0x40015AE4

      Downloading 48 bytes @ address 0x40015B0C

      Downloading 104 bytes @ address 0x40015B3C

      Downloading 20 bytes @ address 0x40015BA4

      Downloading 84 bytes @ address 0x40015BB8

      Downloading 48 bytes @ address 0x40015C0C

      Downloading 24 bytes @ address 0x40015C3C

      Downloading 24 bytes @ address 0x40015C54

      Downloading 68 bytes @ address 0x40015C6C

      Downloading 48 bytes @ address 0x40015CB0

      Downloading 44 bytes @ address 0x40015CE0

      Downloading 128 bytes @ address 0x40015D0C

      Downloading 148 bytes @ address 0x40015D8C

      Downloading 184 bytes @ address 0x40015E20

      Downloading 88 bytes @ address 0x40015ED8

      Downloading 112 bytes @ address 0x40015F30

      Downloading 100 bytes @ address 0x40015FA0

      Downloading 264 bytes @ address 0x40016004

      Downloading 376 bytes @ address 0x4001610C

      Downloading 132 bytes @ address 0x40016284

      Downloading 120 bytes @ address 0x40016308

      Downloading 276 bytes @ address 0x40016380

      Downloading 256 bytes @ address 0x40016494

      Downloading 452 bytes @ address 0x40016594

      Downloading 1540 bytes @ address 0x40016758

      Downloading 324 bytes @ address 0x40016D5C

      Downloading 236 bytes @ address 0x40016EA0

      Downloading 580 bytes @ address 0x40016F8C

      Downloading 80 bytes @ address 0x400171D0

      Downloading 272 bytes @ address 0x40017220

      Downloading 400 bytes @ address 0x40017330

      Downloading 128 bytes @ address 0x400174C0

      Downloading 140 bytes @ address 0x40017540

      Downloading 320 bytes @ address 0x400175CC

      Downloading 128 bytes @ address 0x4001770C

      Downloading 192 bytes @ address 0x4001778C

      Downloading 104 bytes @ address 0x4001784C

      Downloading 376 bytes @ address 0x400178B4

      Downloading 128 bytes @ address 0x40017A2C

      Downloading 212 bytes @ address 0x40017AAC

      Downloading 160 bytes @ address 0x40017B80

      Downloading 440 bytes @ address 0x40017C20

      Downloading 160 bytes @ address 0x40017DD8

      Downloading 160 bytes @ address 0x40017E78

      Downloading 160 bytes @ address 0x40017F18

      Downloading 612 bytes @ address 0x40017FB8

      Downloading 116 bytes @ address 0x4001821C

      Downloading 160 bytes @ address 0x40018290

      Downloading 52 bytes @ address 0x40018330

      Downloading 64 bytes @ address 0x40018364

      Downloading 64 bytes @ address 0x400183A4

      Downloading 136 bytes @ address 0x400183E4

      Downloading 456 bytes @ address 0x4001846C

      Downloading 64 bytes @ address 0x40018634

      Downloading 712 bytes @ address 0x40018674

      Downloading 208 bytes @ address 0x4001893C

      Downloading 600 bytes @ address 0x40018A0C

      Downloading 588 bytes @ address 0x40018C64

      Downloading 440 bytes @ address 0x40018EB0

      Downloading 712 bytes @ address 0x40019068

      Downloading 460 bytes @ address 0x40019330

      Downloading 588 bytes @ address 0x400194FC

      Downloading 720 bytes @ address 0x40019748

      Downloading 1512 bytes @ address 0x40019A18

      Downloading 168 bytes @ address 0x4001A000

      Downloading 472 bytes @ address 0x4001A0A8

      Downloading 732 bytes @ address 0x4001A280

      Downloading 756 bytes @ address 0x4001A55C

      Downloading 136 bytes @ address 0x4001A850

      Downloading 1236 bytes @ address 0x4001A8D8

      Downloading 524 bytes @ address 0x4001ADAC

      Downloading 956 bytes @ address 0x4001AFB8

      Downloading 1120 bytes @ address 0x4001B374

      Downloading 940 bytes @ address 0x4001B7D4

      Downloading 828 bytes @ address 0x4001BB80

      Downloading 424 bytes @ address 0x4001BEBC

      Downloading 416 bytes @ address 0x4001C064

      Downloading 752 bytes @ address 0x4001C204

      Downloading 464 bytes @ address 0x4001C4F4

      Downloading 156 bytes @ address 0x4001C6C4

      Downloading 212 bytes @ address 0x4001C760

      Downloading 76 bytes @ address 0x4001C834

      Downloading 176 bytes @ address 0x4001C880

      Downloading 968 bytes @ address 0x4001C930

      Downloading 360 bytes @ address 0x4001CCF8

      Downloading 108 bytes @ address 0x4001CE60

      Downloading 320 bytes @ address 0x4001CECC

      Downloading 300 bytes @ address 0x4001D00C

      Downloading 508 bytes @ address 0x4001D138

      Downloading 628 bytes @ address 0x4001D334

      Downloading 60 bytes @ address 0x4001D5A8

      Downloading 164 bytes @ address 0x4001D5E4

      Downloading 428 bytes @ address 0x4001D688

      Downloading 148 bytes @ address 0x4001D834

      Downloading 208 bytes @ address 0x4001D8C8

      Downloading 208 bytes @ address 0x4001D998

      Downloading 628 bytes @ address 0x4001DA68

      Downloading 232 bytes @ address 0x4001DCDC

      Downloading 1048 bytes @ address 0x40030000

      Writing register (PC = 0x4000bcf8)

      Read 4 bytes @ address 0x4000BCF8 (Data = 0xE59F1034)

      Read 2 bytes @ address 0x40003F1A (Data = 0x2300)

      Read 2 bytes @ address 0x40003F4E (Data = 0x6BFB)

      Read 2 bytes @ address 0x40003F1A (Data = 0x2300)

      Read 2 bytes @ address 0x40003F1A (Data = 0x2300)

      Read 2 bytes @ address 0x40003F1A (Data = 0x2300)

      Received monitor command: clrbp

      Received monitor command: reset

      WARNING: PC of target system has unexpected value of 0xF001C144 after reset.

      Resetting target

      Received monitor command: halt

      Halting target CPU...

      ...Target halted (PC = 0x00000000)

      Received monitor command: regs

      PC = 00000000, CPSR = 000000D3 (SVC mode, ARM FIQ dis. IRQ dis.)

      R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000

      R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000

      USR: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000

           R13=00000000, R14=00000000

      FIQ: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000

           R13=00000000, R14=00000000, SPSR=00000010

      SVC: R13=00000000, R14=00000000, SPSR=00000010

      ABT: R13=00000000, R14=00000000, SPSR=00000010

      IRQ: R13=00000000, R14=00000000, SPSR=00000010

      UND: R13=00000000, R14=00000000, SPSR=00000010

      Reading all registers

      Reading all registers

      Read 4 bytes @ address 0x00000000 (Data = 0x17B514D7)

      Setting breakpoint @ address 0x40003F1A, Size = 2, BPHandle = 0x0002

      Setting breakpoint @ address 0x40003F4E, Size = 2, BPHandle = 0x0003

      Starting target CPU...

       

      Please advise,