Sync_flags occurs when using SMP in multi-core controllers

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

Sync_flags occurs when using SMP in multi-core controllers

487 Views
Zyp
Contributor II

hello,NXP’s engineer, when i debug s32K324 some problem occurs. i use the freertos6.0.0 and open SMP ,Sync_flags occurs when using SMP in multi-core controllers.

Zyp_0-1758700061019.png

however , i also write 

 
IP_MC_ME->PRTN0_CORE1_ADDR = (uint32)0x00600000;
IP_MC_ME->PRTN0_CORE1_PCONF = 0x00000001;
IP_MC_ME->PRTN0_CORE1_PUPD = 0x00000001;
IP_MC_ME->CTL_KEY = 0x5AF0U;
IP_MC_ME->CTL_KEY = 0xA50FU;
while (IP_MC_ME->PRTN0_CORE1_PUPD == 1) { };
while ((IP_MC_ME->PRTN0_CORE1_STAT & MC_ME_PRTN0_CORE1_STAT_CCS_MASK) == 0) { };

 

,so What could be the problem?

0 Kudos
Reply
6 Replies

443 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Zyp 

Isn't that just data cache issue? Did you follow user manual for Freertos package? Here's a screenshot from page 7:

lukaszadrapa_0-1758786383313.png

Regards,

Lukas

0 Kudos
Reply

358 Views
Zyp
Contributor II

This is my project,I hope you can help me take a look. I used the method of starting from the kernel in the demo, but I feel that the kernel did not start successfully

0 Kudos
Reply

319 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

I can see in your code that core 1 is enabled right in the boot configuration word, so it's started immediately after reset:

lukaszadrapa_0-1759233303641.png

 

lukaszadrapa_1-1759233330324.png

However, you are trying to enable core 1 in main function of core 0 again with some delay loop after that:

lukaszadrapa_2-1759233386909.png

Isn't this the root cause of your troubles? 

 

0 Kudos
Reply

199 Views
Zyp
Contributor II

I have tried your method, but it is still stuck in sync_flag. I have a question, does freertos 11.0 only need to use RTD 6.0 version? My version is RTD4.0.

0 Kudos
Reply

90 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

It's highly recommended to use RTD version which is mentioned in the release notes file:

lukaszadrapa_0-1760337760732.png

 

lukaszadrapa_1-1760337770459.png

 

Regards,

Lukas

0 Kudos
Reply

438 Views
Zyp
Contributor II

I disabled the D_CACHE_ENABLE,but the program is still stuck there.

Zyp_1-1758790020092.pngZyp_2-1758790049111.png

You can tell me what additional information is needed to solve this problem?

0 Kudos
Reply