jlinkgdbserver with SAMICE for AT91sam9260

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • jlinkgdbserver with SAMICE for AT91sam9260

    hi all,

    I am trying to debug linux device driver using GDB.I have AT91SAM9260 eval kit ,a SAM-ICE jtag and a working linux kernel.I downloaded the linux jlink drivers from the website and the version is SEGGER J-Link Commander V4.15b.

    There were 2 programs inside the tar.gz folder which is jlink.exe and jlinkgdbserver.

    when i execute the start script jlink.exe gets invoked and everything was running successfully with jlink connected to usb 0.

    when i quit jlink.exe using the command qc and try jlinkgdbserver,the gdbserver is able to listen in the port 2331 but....

    when i invoke my gdb and try to connec to the gdb server,gdb connection fails.

    here is the output......

    [root@localhost bin]# ./arm-linux-gdb
    GNU gdb 6.6
    Copyright (C) 2006 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "--host=i386-pc-linux-gnu --target=arm-linux-uclibc".
    (gdb) target remote 127.0.0.1:2331
    Remote debugging using 127.0.0.1:2331
    Ignoring packet error, continuing...
    Reply contains invalid hex digit 116


    on the jlinkgdbserver command window it says SAM-ICE cannot be used in big-endian mode.But to change the mode i am not able to connect to the target itself.

    whenever i give the command in the GDB window.

    (gdb):target remote localhost:2331

    it says....
    ignoring packet error, continuing...
    Reply contains invalid hex digit 116

    here is the output on the jlinkgdbserver window...

    SEGGER J-Link GDB Server V4.15b (beta)

    JLinkARM.dll V4.15b (DLL compiled Jun 16 2010 14:32:52)

    Listening on TCP/IP port 2331


    J-Link connected
    Firmware: J-Link compiled Jul 30 2008 11:24:37 ARM Rev.5
    Hardware: V5.30
    S/N: 20003496
    OEM: SAM-ICE
    Feature(s): RDI

    J-Link found 1 JTAG device, Total IRLen = 4
    JTAG ID: 0x0792603F (ARM9)

    Connected to 127.0.0.1
    Reading register (PC = 0x00000000)
    ERROR: SAM-ICE can not be used in big endian mode
    Connection to debugger closed !


    WARNING: Failed to read cacheable memory @ address 0x00000000
    Read 4 bytes @ address 0x00000000 (Data = 0x51831100)

    J-Link connected
    Firmware: J-Link compiled Jul 30 2008 11:24:37 ARM Rev.5
    Hardware: V5.30
    S/N: 20003496
    OEM: SAM-ICE
    Feature(s): RDI

    J-Link found 1 JTAG device, Total IRLen = 4
    JTAG ID: 0x0792603F (ARM9)

    I read in one of the posts that SAM-ICE has limited capabilities than jlink.Please guide me where i am going wrong.Is it possible to make SAM-ICE work on linux.?

    Regards,
    Rohit
  • jlinkgdbserver with SAMICE for AT91sam9260

    Hello,

    I am having a very similar issue with both a custom target board and an AT91SAMG45EVEK evaluation board. Did you ever figure out your problem. It looks to me like the SAM-ICE is not reading data back properly, but I am debugging now with a logic analyzer.

    Thanks
  • Hi Macdog,

    sorry for the late reply.
    The SAM9G45 is a bit special because it is running on the internal RC oscillator by default,
    which has a speed between 22 kHz and 42 kHz, so connecting with 5 kHz can make problems.

    Regarding the "big endian" problem:
    How did you start-up the GDB Server?
    It should look somewhat like this: JLinkGDBServer -endian little -speed 1
    Initially connect with 1 kHz JTAG speed, to be on the safe side. Endianess is set to little.


    Best regards
    Alex