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.
在调试EDMA的时候,看到有一段代码,有点没弄明白
/* If parameter checking is enabled... */
#ifndef EDMA3_DRV_PARAM_CHECK_DISABLE
...
/** In FIFO Addressing mode, memory location must be 32 bytes aligned */
if ((addrMode == EDMA3_DRV_ADDR_MODE_FIFO)
&& ((void *)(srcAddr & 0x1Fu) != NULL))
{
/** Memory is not 32 bytes aligned */
result = EDMA3_DRV_E_ADDRESS_NOT_ALIGNED;
}
#endif
意思应该是如果工作在FIFO模式(固定地址),那么这个地址是需要32bytes对齐的,我看了datasheet,,am335x的datasheet没有提到这点。
这段代码是am335x wince bsp的代码.