Part Number: LAUNCHXL-F28379D
Hi,
I want to change the sysclk from 200Mhz to 1Mhz. IS there any way to change it? If so, can anyone explain how?
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.
Part Number: LAUNCHXL-F28379D
Hi,
I want to change the sysclk from 200Mhz to 1Mhz. IS there any way to change it? If so, can anyone explain how?
Hi Silsio,
The Launchpad comes with a 12MHz crystal. Normal applications use the internal PLL to produce higher clock rates for SYSCLK (typically 200MHz in the example codes). You can bypass the PLL and divide the clock to /12 to produce a 1MHz SYSCLK. To do this, you need to clear SYSPLLCTL1[PLLCLKEN] to 0 and need to assign the value 6 (0x0110 - div by 12) to SYSCLKDIVSEL[PLLSYSCLKDIV]. Make sure also to source the clock from the external crystal. This will be done through register CLKSRCSEL[OSCCLKSRCSEL] by setting the value to '1'. You can refer to the system clocking scheme in the "Clocking" chapter of the TRM and registers section for details.
Hope this helps.
Best regards,
Joseph
No I does not execute. I keeps giving the same error again and again. II tried running other example programs on the same board and it gives the same error.
EDIT: Now, I have a different set of errors:
C28xx_CPU1: GEL Output: 
Memory Map Initialization Complete
C28xx_CPU1: Flash Programmer: Warning: The configured device (TMS320F28379D), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc0eb: (Error -1066 @ 0xC0EB) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 8.0.803.0) 
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
C28xx_CPU1: Error writing the PLL values. (Flash algorithm returned error code). Operation cancelled.
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: ....: Load failed.
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc056: (Error -1066 @ 0xC056) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 8.0.803.0) 
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xc056: (Error -1066 @ 0xC056) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 8.0.803.0) 
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
You first need to isolate what is causing you not to be able to program the code to the Launchpad. If you are using CCS to edit, compile, debug and load your code, make sure that on the on-chip flash tool, you need to ensure that erase is done first before programming.
Regards,
Joseph
when i try to change it to:
#ifdef _LAUNCHXL_F28379D InitSysPll(XTAL_OSC,IMULT_24,FMULT_0,PLLCLK_BY_24);
it is supposed to reduce the sysclk to 10MHz, which is supposed to be attainable. I declared:
#define CPU_RATE 8.333L // for a 120MHz CPU clock speed (SYSCLKOUT)
and:
ClkCfgRegs.LOSPCP.bit.LSPCLKDIV = 0;
SciaRegs.SCIHBAUD.all =0x0000; // 9600 baud @LSPCLK = 10MHz
//(10 MHz SYSCLK).
SciaRegs.SCILBAUD.all =0x0082;
However, it doesnt execute when i run the code. When i terminate the code, it starts publishing the data over uart. What might be the cause?
Coluld this be the cause for it?
// // Set waitstates according to frequency // // *CAUTION* // Minimum waitstates required for the flash operating at a given CPU rate // must be characterized by TI. Refer to the datasheet for the latest // information. // #if CPU_FRQ_200MHZ Flash0CtrlRegs.FRDCNTL.bit.RWAIT = 0x3; #endif #if CPU_FRQ_150MHZ Flash0CtrlRegs.FRDCNTL.bit.RWAIT = 0x2; #endif #if CPU_FRQ_120MHZ Flash0CtrlRegs.FRDCNTL.bit.RWAIT = 0x2; #endif
This code is present in initFLash. How do i change it?