我运行CH372-HSPI-Slave程序,进入HSPI中断了,但是老是提示CRC错误,我想打印DMA中接到的数据,看看错哪里了,
这种方法能取到吗???
UINT32V *buffer = (UINT32V *)(R32_HSPI_RX_ADDR0&0x1ffff);
for (int i = 0; i < 5; i++) {
UINT32V value = buffer[i];
DUG_PRINTF("BUFFER[%d]: %x\n",i,value);
}
热门产品 :
CH592: RISC-V内核BLE5.4无线MCU