Some Problem when use PINS_DRV_Init function in FreeRTOS

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

Some Problem when use PINS_DRV_Init function in FreeRTOS

1,109 Views
geekfuns
Contributor I

Hi,I got some Trouble in use function PINS_DRV_Init().

I opened a example Project called freertos_s32k144, when i configued pin mux and generate code automaticly,Then i called function PINS_DRV_Init() and debug the program , there are a assert occured:

QQ截图20220506194508.png

It seems not none in the structure

QQ截图20220506193657.png

 

There is my code:

void rtos_start( void )
{
CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,
g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);
CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);
CLOCK_DRV_Init(&clockMan1_InitConfig0);


PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);

vTaskStartScheduler();

/* If all is well, the scheduler will now be running, and the following line
will never be reached. If the following line does execute, then there was
insufficient FreeRTOS heap memory available for the idle and/or timer tasks
to be created. See the memory management section on the FreeRTOS web site
for more details. */
for( ;; );
}

Labels (1)
0 Kudos
1 Reply

1,003 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @geekfuns,

The g_pin_mux_InitConfigArr0 struct is generated by the CT.

Is it set correctly in the GUI?

danielmartynek_0-1653038037573.png

 

BR, Daniel

 

0 Kudos