下面的代码 需要在CPU1 和CPU2 都要写吗? 为什么有的样例中比如 blinky的双核样例 只有cpu2中有这段代码,但是RAMmanagement的样例中 cpu1和cpu2 中都有?
extern Uint16 RamfuncsLoadStart;
extern Uint16 RamfuncsLoadSize;
extern Uint16 RamfuncsRunStart;
memcpy(&isrfuncRunStart, &isrfuncLoadStart, (uint32_t)&isrfuncLoadSize);
Eric Ma:
CPU1和CPU2都是非常独立的,也是非常相似的,地址空间都一样。
这个memcpy函数是将一些需要运行在RAM中的函数复制过去,如Initflash.
看了一下,其实这个memcpy函数都在InitSysCtrl()这个函数里面。CPU2写多了。
Eric
下面的代码 需要在CPU1 和CPU2 都要写吗? 为什么有的样例中比如 blinky的双核样例 只有cpu2中有这段代码,但是RAMmanagement的样例中 cpu1和cpu2 中都有?
extern Uint16 RamfuncsLoadStart;
extern Uint16 RamfuncsLoadSize;
extern Uint16 RamfuncsRunStart;
memcpy(&isrfuncRunStart, &isrfuncLoadStart, (uint32_t)&isrfuncLoadSize);
同大同:
回复 Eric Ma:
既然 InitSysCtrl()中有,那么是否cpu1 和cou2 多不需要写了??
下面的代码 需要在CPU1 和CPU2 都要写吗? 为什么有的样例中比如 blinky的双核样例 只有cpu2中有这段代码,但是RAMmanagement的样例中 cpu1和cpu2 中都有?
extern Uint16 RamfuncsLoadStart;
extern Uint16 RamfuncsLoadSize;
extern Uint16 RamfuncsRunStart;
memcpy(&isrfuncRunStart, &isrfuncLoadStart, (uint32_t)&isrfuncLoadSize);
Eric Ma:
回复 同大同:
是啊,只要初始化执行了就可以。
ERIC
TI中文支持网

![[FAQ] 【分享】F28x FAQ-TI中文支持网](https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_C2000_148.jpg)