Hello,
i have a Problem with the Clock generation of the Config Tool.
The Init routine which is generated uses a different type "sim_clock_config_t".
The generated code tries to initialise the following:
const sim_clock_config_t simConfig_BOARD_BootClockRUN =
{
.pllFllSel = SIM_PLLFLLSEL_MCGPLLCLK_CLK, /* PLLFLL select: MCGPLLCLK clock */
.pllFllDiv = 0, /* PLLFLLSEL clock divider divisor: divided by 1 */
.pllFllFrac = 0, /* PLLFLLSEL clock divider fraction: multiplied by 1 */
.er32ksrc=SIM_OSC32KSEL_RTC32KCLK_CLK, /* OSC32KSEL select: RTC32KCLK clock (32.768kHz) */
.clkdiv1 = 0x1020000U, /* SIM_CLKDIV1 - OUTDIV1: /1, OUTDIV2: /2, OUTDIV4: /3 */
};
in fsl_clock.h the type is defined like this:
typedef struct _sim_clock_config
{
uint8_t pllFllSel; /*!< PLL/FLL/IRC48M selection. */
uint8_t er32kSrc; /*!< ERCLK32K source selection. */
uint32_t clkdiv1; /*!< SIM_CLKDIV1. */
} sim_clock_config_t
Of course this fails to compile then.
I use SDK Version 2.4.1 (which is the newest one, though its quite old)
What can I do except commenting this out (because this is reverted every time i use the Config Tools)?
greetings
Roland