AnsweredAssumed Answered

MQX Vybrid BSP Clock Configuration

Question asked by Ioseph Martinez Pelayo Employee on Jan 2, 2014
Latest reply on Jan 10, 2014 by alejandrolozano

Hello MQX team,


(using MQX 4.1.0 Beta, Vybrid Auto EVB)

I am trying to configure clock frequency other than default one on my Vybrid AutoEVB (anyways, this may apply also to Vybrid TWR board)


Finding 1: Seems the definitions in \source\bsp\<board>\<board.h> are merely informative. THIS in vybrid_autoevb_a5.h

/* Init startup clock configuration is CPU_CLOCK_CONFIG_0 */

#define BSP_CLOCK_SRC                       (24000000)

#define BSP_CORE_CLOCK                      (396000000)

#define BSP_BUS_CLOCK                       (132000000)

#define BSP_IPG_CLOCK                       (66000000)

#define BSP_SYSTEM_CLOCK                    (BSP_CORE_CLOCK)

Question 1: If I change those values, no clock dividers or registers will be changed, correct? (after navigating on the bsp code, I found those definitions are used only for returning information about clocks)


Finding 2: only \source\bsp\<board>\init_hw.c seems to be the only instance which intializes/changes the CCM_CACRR register which controls the dividers for the different clocks in the System (i.e. clock definitions highlighted above)

Question 2: What is the propper/official way to modify the BSP to work at a different frequency than the ones highlighted above? (i.e. I want CPU and DDR to run at 320MHz)