Disabling Cores 1,2 and 3. on T1042

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Disabling Cores 1,2 and 3. on T1042

跳至解决方案
2,177 次查看
nakrachi
Contributor II

Hi Everyone,

We are porting our RTOS to the T1042 target and I am wondering how to disable the Cores 1,2 and 3. 

From what I understood from the reference manual, this can be done by configuring (DCFG_CCSR_COREDISR). but this can only be done when the core is in boot-holdoff mode. 

The other way would be setting RCW bit BOOT_HO , but we know that u-boot releases the other cores , the value of DCFG_CCSR_BRR is 0xF after u-boot .

My question is there any way to properly disable the other cores if they are already started ?

p.s : I tested the DCFG_CCSR_COREDISR option, and I confirm that the other cores are not executing any instructions and the timebase is not incrementing. but I want to confirm if it's a proper way to effectively disable the other cores. 

thank you

ZN

0 项奖励
回复
1 解答
2,157 次查看
ufedor
NXP Employee
NXP Employee

> if my understanding is correct, we can stop the other cores with our Kernel at startup ?

Yes.

According to the U-Boot code the RM requirement can be relaxed.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,168 次查看
nakrachi
Contributor II

thanks a lot.

(EDITED)

so u-boot is writing to DCFG_CCSR_COREDISR while cores are not in boot holdoff mode, which contradicts the documentation.

so if my understanding is correct, we can stop the other cores with our Kernel at startup ?

 

0 项奖励
回复
2,158 次查看
ufedor
NXP Employee
NXP Employee

> if my understanding is correct, we can stop the other cores with our Kernel at startup ?

Yes.

According to the U-Boot code the RM requirement can be relaxed.

0 项奖励
回复
2,153 次查看
nakrachi
Contributor II

Thank you

0 项奖励
回复
2,172 次查看
ufedor
NXP Employee
NXP Employee

In the recent SDK, the dynamic boot up mode is used, you could use the u-boot command "cpu <num> disable" to disable the specific cores, for example if you only want to use core0, you could use the following commands, then boot up kernel:
=>cpu 1 disable
=>cpu 2 disable
=>cpu 3 disable

Actually U-Boot "cpu <N> disable" sets corresponding bit in the DCFG_CCSR_COREDISR.

0 项奖励
回复