KS22 Code generation (clock config) error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KS22 Code generation (clock config) error

1,637 Views
sero
Contributor II

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

0 Kudos
Reply
3 Replies

1,629 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Roland,

You can refer the answer in: SIM Clock Config Error
If you do not use the Clocks tool (only the Pins tool), then you can try to disable the Clocks tool.
Sorry for the inconvenience we bring you!

disable the Clocks tool.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

1,501 Views
CauTran
Contributor I

Hi, I recenty used MCUXpresso Config tool for KS22 but, I see an inconvenience of configuration for KS22. There isn't support peripheral tool. Is it right?

0 Kudos
Reply

1,490 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry for the inconvenience we bring you! The KS22 does not support peripheral tool.

0 Kudos
Reply