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.

Programming board with non standard crystal from CSS

Other Parts Discussed in Thread: LM3S8962

Hi, 

I developed project on the LM3S8962 evaluation board, and everything (Programming/Debugging from the CCS4) worked fine. Now, I switched to a custom board with LM3S8738 and 7.3728 Mhz crystal, and cannot program/debug project from CCS. I believe I did all required changed in a project settings, but flash programming fails with "CORTEX_M3_0: Error connecting to the target: Frequency is out of range." message.

I tried to set proper frequency in the Debug Settings->Target->Flash Settings->Crystal, but it seems like it only expects frequency to be set as integer number in Mhz. 

Can I program the board with not integer-frequency?

Thanks!

  • Can you provide more details on your debug setup? What are you using as your JTAG debug interface to the custom board? Is it one of the EK evaluation kits?

    Which specific version of CCS are you using?

  • Sure, 

    I have LM3S8962 evaluation board connected to a PC (through a USB cable), and my target (LM3S8738 with 7.3728 crystal) connected to the LM3S8962 using JTAG cable. 

    CCS  Version: 4.2.3.00004 

     

    Also I forgot to mention: that I have have different project that I can open, build, and program to the board with non-standard crystal. I just can't figure out what settings I should change to make my project work with "LM3S8738 @ 7.3728 crystal" board. That other project, that works, has Crystal Frequency in Flash Settings set to 8Mhz.

     

  • mmaaxx said:
    that I have have different project that I can open, build, and program to the board with non-standard crystal.

    Is it the same LM3S8738 board that you can program this different project to?

    mmaaxx said:
    I just can't figure out what settings I should change to make my project work with "LM3S8738 @ 7.3728 crystal" board.

    What frequencies have you tried setting in the CCS Flash settings? Have you tried both 7 and 8Mhz?

    How is your target configuration file (.ccxml) set up for your project?

  • >Is it the same LM3S8738 board that you can program this different project to?

    Yes, I basically have 2 projects: one can program the board and another cannot.

    > Have you tried both 7 and 8Mhz?

    I tried only 7 and 8Mhz. 

     

    I actually copied taget config from the working project to the non-working, and here is what I'm getting this time:

    CORTEX_M3_0: GEL Output: 
    Memory Map Initialization Complete
    CORTEX_M3_0: GEL Output: Watchdog Timer Enabled
    CORTEX_M3_0: GEL Output: UARTs Enabled
    CORTEX_M3_0: Flash Programmer: Timed out while writing to Flash memory
    CORTEX_M3_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x45d0 
    Cannot write to target

     

    Here is target_config.ccxml:

  • mmaaxx said:

    Yes, I basically have 2 projects: one can program the board and another cannot.



    Ok, so now you made sure the target configuration file is the same for both projects, and now the error is different. This error shows that the connection to the board is successful, but the flash programmer is not quite working.

    I would suggest trying the troubleshooting steps under the "General IDE" and "Debugger" sections of this page:
    http://processors.wiki.ti.com/index.php/Troubleshooting_CCS

    The few times I have seen/heard of this type of error in the past, it was either resolved with clean/re-installations of CCS or attributed to corrupted workspace or incorrect target configuration.

    Another interesting data point would be to see if the program can be downloaded using LM Flash programmer.

  • Thanks for the suggestion AartiG ,

    Here is how I solved the problem: took project where programming worked, and manually replaced source code and settings, with code and config from my project where programming didn't worked. 

     

  • Glad to hear you were able to get things working. There was probably something corrupted or not quite set right in your previous non-working project, but I'm glad to hear you're back on track now.