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.

RTOS/AM4379: Clock Tree Tool where to edit changes in code?

Part Number: AM4379

Tool/software: TI-RTOS

Hi,

i was playing arround with the Clock Tree Tool for research purposes only.

Now i wonder where i have to make the changes for the registers in my example Code.

I am running ethercat_slave_full_AM437x_arm example with idk437xevm. 

Now i want for example: to change the AM43xx.CM_CLKSEL_DPLL_MPU Register for running at 1000MHz.

but i actually cant find the file where i can change these registers in my code?

thx 

  • After some Investigation i found out that in sbl_am43xx_platform_pll.c the Pll initialisation is done in c:\ti\pdk_am437x_1_0_13\packages\ti\starterware\include\hw\am437x.h SOC_CM_WKUP_REG is defined
    and in
    C:\ti\pdk_am437x_1_0_13\packages\ti\starterware\include\am43xx\am437x\hw_cm_wkup.h PRCM_CM_CLKSEL_DPLL_MPU is defined

    SOC_CM_WKUP_REG + PRCM_CM_CLKSEL_DPLL_MPU = shown CTT Register Address 0x44DF2D6C

    so for 1000MHz i have to change to:

    mpuDpllDiv = 2U;
    mpuDpllMult = 125U;
    mpuDpllPostDivM2 = 1U;


    This means i have to rebuild the sbl with edited sbl_am43xx_platform_pll.c , to run the idk at max speed (1000MHz), am i correct?

    thx in advance