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.

CCS/TMS570LS1224: configure the systemREG1 about OSCIN

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN,

Tool/software: Code Composer Studio

I try to configure the systemREG1 about OSCIN

/** - Enable PLL(s) to start up or Lock */
systemREG1->CSDIS = 0x000000F9U;

then 
error message show below
[ Unable to access DAP]

so Could anyone help me to recover the osc configure??

systemREG1->CSDIS = 0x00000088U;


thanks.

Gullfoss Lin

  • Hello Lin,

    You are going to disable all the clock sources except for PLL1 by writing 0xF9 to CSDIS register.

    TMS570 and RMx devices have a clock detect module which consists of a clock monitor and an internal LPO. The clock monitor is a supervisor circuit for OSCIN. In case the OSCIN frequency fails out of a valid window, the clock monitor will set OSC fail flag in GLBSTAT register, and switches all the clock domains sourced by OSCIN to the internal HPO.

    By default, the clock monitoring circuit is enabled and checks for the main oscillator frequency to be within a certain range using the HF LPO as a reference. If OSCIN and/or the HF LPO are disabled with the clock monitoring still enabled, the clock monitor will indicate an oscillator fault. The clock monitoring must be disabled before disabling the main oscillator or the HF LPO clock source(s).

    Can you please use the code generated by HALCoGen?

  • thanks for your reply Mr. QJ Wang.


    Now I have configured my Hercules board with TMS570LS1224 DSP yesterday.

    systemREG1->CSDIS = 0x000000F9U;

    then 
    error message show below
    [ Unable to access DAP]

    I would not undate my flash to systemREG1->CSDIS = 0x00000088U;
    so this Hercules board already could not debugg anymore.
    could you tell me how to configure to systemREG1->CSDIS = 0x00000088U;
    thanks.
    Gullfoss Lin

  • Your code in the flash is making the OSC failed and enter an exception state repeatedly. This prevents the CPU from entering a debug state. You need to try to erase the part, assert and release nRST to see if the erase command is able to halt the CPU and erase the flash.

    Please try this procedure to let CPU enter a debug state:

    1. Open the target configuration window, and launch the selected the configuration

    2. Switch to debug window

    3. Press the reset (nRST) button and hold it

    4. Click “Connect Target” immediately after you release the nRST button

    5. The board should be connected after couple tries

    After the JTAG is connected, please program the update code to the flash.

  • thanks Mr. QJ Wang
    According to your instruction to erase the older flash and then 
    reconfigure 

    systemREG1->CSDIS = 0x00000088U;

    it is successful to saving my Hercules board.

    thanks so much .
    Gullfoss Lin