Some Problem when use PINS_DRV_Init function in FreeRTOS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Some Problem when use PINS_DRV_Init function in FreeRTOS

1,740件の閲覧回数
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( ;; );
}

ラベル(1)
0 件の賞賛
返信
1 返信

1,634件の閲覧回数
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 件の賞賛
返信