This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28377D在CPU1中可以正常运行的程序,放在CPU2中无法正常运行

我有一个W5300网卡通信的例程,在CPU1里可以正常工作,但是放在CPU2中就无法正常工作了。该例程就是将GPIO配置为EMIF,将网卡与GPIO口连接作为扩展外设使用。现在的问题是CPU2可以往网卡寄存器中写值,但是读取不了寄存器里的值,求大神们帮助啊!

  • Eric:
    EMIF1有没有分配给CPU2呢?
    EMIF1MSEL
    MSEL_EMIF1 R/W 0h Master Select for EMIF1:
    00: CPU1 is master but not grabbed. CPU2 can grab the master
    ownership by changing this value to "10".
    01: CPU1 is master.
    10: CPU2 is master.
    11: CPU1 is master but not grabbed. CPU2 can grab the master
    ownership by changing this value to "10"
  • Emif1ConfigRegs.EMIF1MSEL.all = 0x93A5CE72;
    EMIF1已经分配给CPU2了,CPU2已经能通过EMIF向网卡寄存器里写值了,但是CPU2无法读取寄存器里的值。