I need to use the dual core function of mpc5746r. I have several questions to ask:
1. after enabling dual cores, two projects are generated. Should the clock frequencies of the CPUs of the two cores be set separately?
2. how to transfer data between the two cores? For example, I define a global variable "VarTest" in the project of core0. I need to use this variable "VarTest" in the project of core1. How should I operate?
In addition, are there any related introduction materials and application examples based on s32ds IDE available?
解決済! 解決策の投稿を見る。
1) No, it is needed to configure just once, usually by booting core.
2) Access to shared resource goes over Crossbar Switch, so you can access variable in the memory by both cores, it is just need to have it defined on the same address.
Another point is to ensure data coherency. It is discussed in the following appnote, for instance:
1) No, it is needed to configure just once, usually by booting core.
2) Access to shared resource goes over Crossbar Switch, so you can access variable in the memory by both cores, it is just need to have it defined on the same address.
Another point is to ensure data coherency. It is discussed in the following appnote, for instance: