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.

F28M35 SCI

Other Parts Discussed in Thread: CONTROLSUITE

您好!我有几个问题想请教下关于SCI的几个问题,我的SCI是分配给M3核的。

1、我如果用查询的方式来接受和发送数据,那么我分别要查询哪些状态位?

2、我想把数据存放在共享RAM中,以便C28能读取。那么我如何确保我定义的变量(主要是数组)是在共享RAM中?用的什么程序语句啊?

谢谢您的解答!

 

  • timeberrain,

    1, 查询TXRDY,RXRDY。

    2. 类似这种定义

    在C28文件中

    long int c28_r_array[2048];     // mapped to S2 of shared RAM owned by M3

     long int c28_r_w_array[2048];   // mapped to S0 of shared RAM owned by c28

    #pragma DATA_SECTION(c28_r_array,"SHARERAMS2");

    #pragma DATA_SECTION(c28_r_w_array,"SHARERAMS0");

    在M3文件中

    int m3_r_array[2048]; // this array is mapped to S0

    int m3_r_w_array[2048]; // this array is mapped to S2

    #pragma DATA_SECTION(m3_r_array,"SHARERAMS0");

    #pragma DATA_SECTION(m3_r_w_array,"SHARERAMS2");

    可以查看例程:C:\ti\controlSUITE\device_support\f28m35x\v201\F28M35x_examples_Dual\RAM_management

    Eric