Other Parts Discussed in Thread: AM5716
器件型号: AM5716
尊敬的 TI 专家:
我们使用一个测试任务、该任务在 AM5716 的 DSP (C66) 内核中运行。 我们调用 SPI 读取来读取 16 字节、ocmc-ram、非 DMA 模式、SPI 总线时钟为 12MHz。 该公司的费用为 225us。 时间太长了、您能找出原因吗?

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.
您好 Josue、
RTOS 中运行两个任务:
1.一个任务负责初始化 SPI1 和 W5500、并设置 1ms 计时器。
2.另一个任务等待计时器中断发布信标、然后通过 SPI1 从 W5500 读取寄存器。
SPI 模块使用 DMA 库:/root/ti/pdk_am57xx_1_0_17/packages/ti/drv/spi/lib/am571x/c66/release/ti.drv.spi.dma.ae6
SPI 使用的 TX 和 RX 缓冲区地址如下:
#define CSL_DSP_OCMC_RAM1_REGS (0x40300000U)
Uint8_t *txBuffer =(uint8_t *)(CSL_DSP_OCMC_RAM1_REGS +0x1000);
uint8_t * rxBuffer =(uint8_t *)(CSL_DSP_OCMC_RAM1_REGS +0x6000);
测试代码: