Disabling Cores 1,2 and 3. on T1042

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

Disabling Cores 1,2 and 3. on T1042

ソリューションへジャンプ
2,003件の閲覧回数
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 解決策
1,983件の閲覧回数
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 返答(返信)
1,994件の閲覧回数
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 件の賞賛
返信
1,984件の閲覧回数
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 件の賞賛
返信
1,979件の閲覧回数
nakrachi
Contributor II

Thank you

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