STM not work in multi-core application

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

STM not work in multi-core application

681 Views
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);

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

4 Replies

464 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

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

Regards,

Lukas

464 Views
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 Kudos

464 Views
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 Kudos

464 Views
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 Kudos