About PINS_DRV_Init

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

About PINS_DRV_Init

Jump to solution
312 Views
hongmei
Contributor I

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?

0 Kudos
1 Solution
299 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@hongmei

please provided your project and i will help you find the root cause.

View solution in original post

0 Kudos
2 Replies
290 Views
hongmei
Contributor I

Hello,  Senlent

Thank you very much for your kindly.

I have solved this problem.

0 Kudos
300 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@hongmei

please provided your project and i will help you find the root cause.

0 Kudos