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.

Err0r 182 - Frequency mismatch - Now flash and TMS570 USB

Other Parts Discussed in Thread: HALCOGEN

 I am using TMS570 USB kit.

After the code is built in Code composer studio, when i try to download it into the MCU using NowFlash, i get an error

Error 182 - Measured frequency 210.17 MHz not within +/-30% of target 140.00 MHz

There is no explanation as to how to correct this.

Please help me correct this problem.

 

Thanks,

satish

  • Hi Satish,

    Was there any code programmed in to the micro which uses PLL?
    Some times giving a Reset will solve this issue. Try repeating the download after reset.

    Best Regards
    Prathap

     

  • Hi Prathap,

    I tried resetting the board and then downloading, but no use. The error still comes.

    Presently the mcu has a code that is modified from the demo code that was present in it earlier.I modified it to just do led blinking and send a character in serial port.So i dont think any PLL is being used in it.

    There is a mention of certain JTAG settings in nowFlash user's guide on pg-39,Section 3.8.(Dont know if its relevant to this prob,but still tried it).But such an option is not present in Code composer studio to do.The pdf says - ........select"debug" then "reset emulator"..."save environment".....Though debug is there in CCS but "reset emulator"..."save environment"...is not there in it.

    Kindly help .

    Thanks,

    satish

     

  • Hello Satish,

    The frequency calculation in nowFlash is very finicky to USB latency.  We are working on a new version that will be more robust, but in the interim, you can override the expected frequency in nowFlash by setting the Frequency in the GUI to the calculated result nowFlash is generating.

  • Hello john,

    I have tried setting hte frequency in the GUI to the result the now flash is generating.

    But the error is still there.When the value entered in the now flash gui is different then i get an "error 167 frequency out of range ".

    I am unable to program the tms570 now. Every time it return the "error 182". Kindly tell if there is some solution to this problem..

    Satish

  • Hello Satish,

    The new error is due to the frequency you are having to specify exceeds the limit specified in the nowFlash.cfg file.  The work around for this would be to change the allowable frequency range in the config file.

    We are working on a new version of nowFlash that should resolve these speed issues.  It should be released within the next couple of weeks.

  • Hi John

    I have the same problem with my USB Stick...

    Just wanna ask if there is a solution to this problem, or  in which time will be a new release of the nowFlash?

    Regards

    Burim

  • Hi Burim,

     

    Please try a new PLL1 Config setting: 0x21098600 (the default value is 0x21058600).

     

    Regards,

    QJ

  • Hi Prathap, John Hall, and QJ Wang,

     

    EDIT:

    PLL1 value from QJ Wang worked for my problem.

    But often the measured frequency is ~90 MHz which is less than 30% of target 140 MHz.

     

    I have MCBTMS570 board from keil/ti.

    There's a problem just like mentioned by satish. But sometimes I was lucky to successfully download the firmware using nowFlash v3.39.

    Currently the problem has appeared again.

    I have generated the code by using Halcogen and use Freertos.

    Everytime I try to flash, Error reporting from measured frequency always differen ranging from 190~210MHz.

    The PLL value is generated using halcogen. I am using default value provided by halcogen.

    This default value sometimes working(flash is success), and sometimes it is not.

    Is there any solution?

    using windows xp sp2 and default xds100v2.

    thank you

     

    regards,

     

    agfa

  • Please try the version 3.40 that was just released to see if this corrects your issue.

  • Thank you John,

    That version resolved my issues.

     

    I have another problem, hope you have some idea how to resolve it. Here's the link:

    http://e2e.ti.com/support/microcontrollers/tms570/f/312/t/129361.aspx

     

    Best Regards,

     

    Agfa

  • Agfa,

     

    Unfortunately, that issue is out of the realm of my expertise.