This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Failed to measure cpu clock frequency

Other Parts Discussed in Thread: SEGGER

Hello Everyone,

                                Am using SM470R1B1M as my target device  Jlink base as my debugger and IAR workbench as my IDE. But, when i press the icon of download and debug it is giving me the below error. So, can anyone help me out with this issue??

Waiting for your reply at the earliest!!

"failed to measure cpu clock frequency
could not detect CPU clock speed.verification of test code downloaded into RAM failed"

 

Thanks & Regards

Naveen Chandra

  • Naveen,
    Can you provide some details?
    Is this a first time board bring up? Change of behavior?
    Do you have multiple boards, and do all respond same way?

    Can you provide schematic for review?
    Can you provide the complete IAR log?

    Regards,
    Wade
  • Hi Wade,

                     We have developed the custom board for our requirement.For the first two days i was able to download the code to the target. But, from yesterday am unable to download the code because of this error.I have only board for my project. Please find the screen shots attached to the conversation.

    Waiting for your reply at the earliest!!

    Thanks & Regards

    Naveen Chandra

  • Naveen,
    I am assuming this is same issue sent via email to Richard and Brent.
    I have responded to this question via email. Let me know if this is two separate issues.
    Regards,
    Wade
  • Hi, there

    Please post the answer here, I got the same problem on IAR KickStart Kit™ for Texas Instruments’ SM470R1B1M, when I run the example project (FlashingLight).

    I just installed the IDE workbench from IAR and used the J-Link.

    Regards!
    Wen

  • The root cause of this was related to expired trial 30 day license and possible corruption of IAR software.
    Regards,
    Wade
  • Here is the detailed information from the IDE Log window :

    Mon Mar 21, 2016 12:32:49: Loaded macro file: C:\Users\500005\Documents\IAR Embedded Workbench\arm\7.50.3\TexasInstruments\TMS470R\SM470R1B1M\FlashingLight\..\..\Configuration_Files\B1M_Files\RAMSM470R1B1M.mac
    Mon Mar 21, 2016 12:32:49: JLINK command: ProjectFile = C:\Users\500005\Documents\IAR Embedded Workbench\arm\7.50.3\TexasInstruments\TMS470R\SM470R1B1M\FlashingLight\settings\flashinglight_RAM.jlink, return = 0
    Mon Mar 21, 2016 12:32:49: Device "SM470R1B1M" selected.
    Mon Mar 21, 2016 12:32:49: DLL version: V5.10m, compiled Feb 15 2016 18:47:57
    Mon Mar 21, 2016 12:32:49: Firmware: J-Link ARM Lite V8 compiled Oct 29 2014 09:03:16
    Mon Mar 21, 2016 12:32:49: JTAG speed is initially set to: 32 kHz
    Mon Mar 21, 2016 12:32:49: Initial reset was performed
    Mon Mar 21, 2016 12:32:49: TotalIRLen = 4, IRPrint = 0x01
    Mon Mar 21, 2016 12:32:50: Found 1 JTAG device, Total IRLen = 4:
    Mon Mar 21, 2016 12:32:50: #0 Id: 0x3100E02F, IRLen: 4, IRPrint: 0x1 ARM7TDMI Core
    Mon Mar 21, 2016 12:32:50: J-Link found 1 JTAG device(s). ARM core Id: 3100E02F ARM7
    Mon Mar 21, 2016 12:32:50: Executing memory setup macro dddd B1M Flash
    Mon Mar 21, 2016 12:32:50: Adaptive clocking not supported for selected CPU core. Only supported for -S cores.
    Mon Mar 21, 2016 12:32:50: Auto JTAG speed: 1334 kHz
    Mon Mar 21, 2016 12:33:00: Fatal error: Failed to measure CPU clock frequency Could not detect CPU clock speed. Verification of test code downloaded into RAM failed. Session aborted!
    Mon Mar 21, 2016 12:33:00: Failed to load debugee: C:\Users\500005\Documents\IAR Embedded Workbench\arm\7.50.3\TexasInstruments\TMS470R\SM470R1B1M\FlashingLight\RAM\Exe\tms470.out
  • I installed the IDE today. Should I re-stall it and try again?

    Wen
  • Hi Wen,
    U need uninstall the IAR IDE and install full software and that will be limited to 30 days only. If you intall 30 day license version software then you will be able to flash it to the controller.
    Thanks & RegardsNaveen Chandra
  • I have the same problem with a production board (for several years now) and the IAR 6.70 and IAR 7.10 tools.  Trying to port the code developed under IAR4.41 to the newer tools.  Using the "flashing light" project as a test for IAR 7.1, I could download and run RAM version successfully, but not able to successfully load the Flash version.  So I downloaded the latest Segger JLink drivers (5.21), having exhausted modified project options.  This is strange -- now I can't download the RAM version because of the "Failed to measure CPU clock frequency".

    This board can be successfully flashed from JFlash and latest drivers.  Using JLink Plus USB adapter.  I can go back to IAR4.41 and works all day.  Cannot get either IAR 6.70 or IAR 7.1 to download to RAM or Flash.

    I have full pro-level IAR license.  Nothing is expired.  Ideas?????

  • Doug,
    I would suggest opening a support request with IAR.
    Regards,
    Wade