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.

Wrong clock source of C6747

Other Parts Discussed in Thread: TMS320C6747

We use the tms320c6747 in a project, which has a nand flash and a 24M crystal. But we made a mistake when we select the clock source. After  selecting  the oscillator , the device couldn't be connect to the CCS3.3 any more. We try to change the boot model, from nand flash to nor flash. Regrettably is, it doesn't work.Now, we don't know how to solve the problem. Can you help me?

  • What's more, there's no condition on the the circuit board to use the emulation mode.

  • Hello Rui,

    Please do response for the below questions.

    What is the clock source you are using in your design ? External oscillator or crystal ?

    Which emulator you are using to connect your board to CCS ?

    Are you able to identify the target device in CCS ?

    Regards,

    Senthil

  • Hello Senthil,

     External crystal.

    ICETEK-5100USB V2.0A.

    Yes.

    It works very well when we select the crystal as clock source, but this time we select the wrong one before loading program.

  • Hello Rui,

    Rui Says said:

    It works very well when we select the crystal as clock source

    Then what is the issue you are facing ? Please elaborate.

    Referring to the above post, i hope you want to run the program with oscillator as clock source. 

    Do you have external oscillator in your board ?

    Please note, you are suppose to use either crystal as clock source to the internal oscillator or external oscillator.

    Since you are using crystal, you do not have option to switch the clock source to external oscillator.

     

    Regards,

    Senthil

  • There is only a 24M crystal in my board, and we know we should use it as the clock source. We did like this before.But this time, we select the wrong one by mistake. We don't mean to do like this. Then, we find the mistake, but the board can't be connected any more. For lack of test points, we can't use emulation mode to restart. What can I do now? 

  • Hello Rui,

    I assume you changed the clock source in CLKMODE register. 

    Setting CLKMODE to 0 or 1 has no impact on the PLL controller functionality, except for the negligible power wasted keeping the internal oscillator enabled. 

    Please ensure all your PLL register settings are correct. Do you have provision in your board to check any of the SYSCLK output ? If so please probe and check the frequency is according to the PLL setting.

    Also please check the power rails and system reset.

     

    Regards,

    Senthil

  • Hi Rui,

    Addition to Senthil points,

    I presume that you want to up the board with "external oscillator" option (not with crystal)

    I think, You have to change your gel file to change the clock source (source the ref clock from external oscillator).

    As Senthil suggested, You have to change the "CLKMODE" bit in gel file.

    OnTargetConnect( )
    {
        Clear_Memory_Map();
        Setup_Memory_Map();

        PSC_All_On_Full_EVM();
        Core_300MHz_mDDR_150MHz();
        Wake_DSP();
    }

    hotmenu Core_300MHz_mDDR_150MHz() {
        Set_Core_300MHz();
        Set_mDDR_150MHz();
        GEL_TextOut("\t---------------------------------------------\n","Output",1,1,1);
    }


    Set_Core_300MHz() {


    //    device_PLL0(0,24,1,0,1,11,5);

       device_PLL0(1,24,1,0,1,11,5);

    /*    CLKMODE -  0---->On Chip Oscilator  1---->External Oscilator */
    /* device_PLL0(unsigned int CLKMODE, unsigned int PLLM, unsigned int POSTDIV,unsigned int PLLDIV1, unsigned int PLLDIV2, unsigned int PLLDIV3, unsigned int PLLDIV7 )*/

        GEL_TextOut("\tPLL0 init done for Core:300MHz, EMIFA:25MHz\n","Output",1,1,1);
    }