[SOLVED]LM3S9B96 + GDB-Server = "Failed to measure CPU clock frequency"

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

  • [SOLVED]LM3S9B96 + GDB-Server = "Failed to measure CPU clock frequency"

    Hi I have just received my GSB server and I still can't use it

    I have a DK-LM3S9B96 with the FTDI ICDI Interface on the board I debug and download without problem but

    Why I can't debug with my J-LINK GDBServer ???

    here you can see my log :



    SEGGER J-Link GDB Server V4.12

    JLinkARM.dll V4.12 (DLL compiled Feb 26 2010 19:22:53)

    Listening on TCP/IP port 2331

    J-Link connected
    Firmware: J-Link ARM V8 compiled Dec 1 2009 11:42:48
    Hardware: V8.00
    S/N: 58003004
    Feature(s): RDI, GDB

    J-Link found 1 JTAG device, Total IRLen = 4
    JTAG ID: 0x4BA00477 (Cortex-M3)

    Connected to 127.0.0.1
    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
    JTAG speed set to 1000 kHz
    Select flash device: LM3S9B96
    CPU clock frequency set to 16000000 Hz
    Flash breakpoints enabled
    Flash download enabled
    Read 2 bytes @ address 0x00000150 (Data = 0xFFFF)
    Read 2 bytes @ address 0x00000134 (Data = 0xFFFF)
    Downloading 464 bytes @ address 0x00000000 - Verified OK
    Writing register (PC = 0x8C010000)
    ERROR: Failed to measure CPU clock frequency: second loop count is less than first one! (0<=0)

    Connection to debugger closed !



    and I use the following instructions (those mentionned in the user guide for Cortex M3) :



    target remote localhost:2331
    monitor speed 1000
    monitor flash device = LM3S9B96
    monitor flash cpuclock = 16000000
    monitor flash breakpoints = 1
    monitor flash download = 1

    load C:/Dev_LUMINARY/B96/StellarisWare/boards/dk-lm3s9b96/blinky/gcc/blinky.axf
    monitor reg r13 = (0x00000000)
    monitor reg pc = (0x00000004)


    Furthermore the chip doesn't seems to be programmed
    What's wrong ??
  • Hi,

    could you please upload a sample project for the LM3S9B96
    which shows this problem on the eval board (In general ELF file + GDB Init script should be enough for quick-test)?

    I tested flash download via J-Link DLL + GDB on an EK-LM3S9B90 without any problems.


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.