STM not work in multi-core application

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

STM not work in multi-core application

2,151件の閲覧回数
gj3526
Contributor III

STM1 work in coreZ40,STM2 work in coreZ41. in multi-core debug, only Z40work,STM1 works well,but when coreZ41 work,STM2 works well,but stm1 stop.

void Timer1_init(void)
{
STM_DRV_Deinit(INST_STM1);
STM_DRV_Init(INST_STM1, &stm1_InitConfig0);
/* Compute the number of ticks from microseconds */
STM_DRV_ComputeTicksByUs(INST_STM1,10000U, &ticks1);//10ms
STM_DRV_InitChannel(INST_STM1, &stm1_ChnConfig0);
/* Enable Interrupt for STM0 channel 0 */
stm1_ChnConfig0.compareValue = ticks1;
INT_SYS_EnableIRQ(STM1_Ch0_IRQn);
/* Start running the common timer counter */
STM_DRV_StartTimer(INST_STM1);
}

void Timer2_init(void)
{
//INT_SYS_DisableIRQGlobal();
//INT_SYS_DisableIRQ_MC_All(STM2_Ch0_IRQn);
STM_DRV_Deinit(INST_STM2);
STM_DRV_Init(INST_STM2, &stm2_InitConfig0);
/* Compute the number of ticks from microseconds */
STM_DRV_ComputeTicksByUs(INST_STM2,10000U, &ticks1);//10ms
STM_DRV_InitChannel(INST_STM2, &stm2_ChnConfig0);
// /* Enable Interrupt for STM0 channel 0 */
stm2_ChnConfig0.compareValue = ticks1;
// //INT_SYS_EnableIRQGlobal();
INT_SYS_EnableIRQ(STM2_Ch0_IRQn);
// /* Start running the common timer counter */
STM_DRV_StartTimer(INST_STM2);
}

void STM1_Ch0_IRQHandler(void)
{
// STM_DRV_StopTimer(0);
/* Clear channel interrupt flag */
STM_DRV_ClearStatusFlags(INST_STM1, stm1_ChnConfig0.channel);
STM_DRV_IncrementTicks(INST_STM1, stm1_ChnConfig0.channel, ticks1);

...............

タグ(1)
4 返答(返信)

1,934件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

which device is that? Could you share your project to reproduce the issue?

Regards,

Lukas

1,934件の閲覧回数
gj3526
Contributor III

thank you for help,

it is spc5748G in S32 Design Studio,I will share the project ,in this project I change the STM2 to PIT.

0 件の賞賛
返信

1,934件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

the project does not work on my side.

I can see that SDK version BETA 1.9.0 is used. There's already BETA 2.9.0 in latest update 10:

S32 Design Studio IDE for Power Architecture based MCUs | NXP 

Could you try the latest version? The best way is to create new project, so we can be sure everything is up to date.

Thanks,

Lukas

0 件の賞賛
返信

1,934件の閲覧回数
gj3526
Contributor III

Hi,

I made a new project and shared ,the coreZ40 also not workes when coreZ40 works,please help me,thank you!

0 件の賞賛
返信