Hello,
Now I use FIRC as clock source. After clock and pin config, I call "CLOCK_DRV_Init(&clockMan1_InitConfig0);" and "PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);" in main function. But when I run the program, when "uint32_t regValue = config->base->PCR[config->pinPortIdx];" is executed in "PINS_Init" function, hardfault happened.
My mcu is S32K146.
Could you please tell me the possible reason of this?
Solved! Go to Solution.
please provided your project and i will help you find the root cause.