CC3200:udma 错误信息在哪里能找的到?
时间:10-02
整理:3721RD
点击:
static void spi_interrupt_handler()
{
UART_PRINT("Error: %08x \n\r",uDMAErrorStatusGet());
}
Echo : 0x0000001;
请问有人知道这个错误信息是什么吗? 我在哪里能找的到 错误列表?
可以用CCS的全局搜索,查看错误代码,找到对应的位置,一般都会有错误说明
感谢回复!
不过,
//*****************************************************************************
//
//! Gets the uDMA error status.
//!
//! This function returns the uDMA error status. It should be called from
//! within the uDMA error interrupt handler to determine if a uDMA error
//! occurred.
//!
//! \return Returns non-zero if a uDMA error is pending.
//
//*****************************************************************************
unsigned long
uDMAErrorStatusGet(void)
{
//
// Return the uDMA error status.
//
return(HWREG(UDMA_BASE + UDMA_O_ERRCLR));
}
他是直接读取寄存器里面的错误码。 还有 在CC3200 SimpleLink Wi-Fi Wireless MCU Technical Reference Manual
这个手册中也没有说明啊, 谢谢
