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.

TMS320F28388D: TMS320F28388D IPC例程,从CM发送数据到CPU1

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

最近在用28388的以太网接口与电脑通信。由于以太网只能用CM核心访问,所以得实现从CPU到CM核的通信。

C2000ware例程里面ex1是从CPU1发送指令到CM。调试时候发现直接换成CM到CPU1会有一些问题。

感觉注释写的挺详细的。就不过多解释了。给需要的人参考一下。

CPU1的代码:

2ipc_ex1_basic_c28x1.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//#############################################################################
//F28388C2000wareIPCex1
//CPU1CMCMCPU1
// FILE: ipc_ex1_basic_c28x1.c
//
// TITLE: IPC example with interrupt
//
//! \addtogroup driver_cm_c28x_dual_example_list
//! <h1> IPC basic message passing example with interrupt </h1>
//!
//! This example demonstrates how to configure IPC and pass information from
//! C28x to CM core without message queues.
//! It is recommended to run the C28x1 core first, followed by the CM core.
//!
//! \b External \b Connections \n
//! - None.
//!
//! \b Watch \b Variables \n
//! - pass
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

CM代码

2ipc_ex1_basic_cm.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//#############################################################################
////F28388C2000wareIPCex1
//CPU1CMCMCPU1
// FILE: ipc_ex1_basic_cm.c
//
// TITLE: IPC example with interrupt
//
//! \addtogroup driver_cm_c28x_dual_example_list
//! <h1> IPC basic message passing example with interrupt </h1>
//!
//! This example demonstrates how to configure IPC and pass information from
//! C28x to CM core without message queues
//! It is recommended to run the C28x1 core first, followed by the CM core.
//!
//! \b External \b Connections \n
//! - None.
//!
//! \b Watch \b Variables \n
//! - None.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX