Question
SPI Interrupt & DMA not working, polling is
hi, I m using H7A3 nucleo, manage to get SPI polling working, enclose code below, when i try in implement Interrupt and DMA , the code compile successfully with no error, but SPI output no signal, SPI slave device is a TI ADC...I have set SPi global interrupt and DMA circular
HAL_StatusTypeDef spi_write(reg, *pData)
{
HAL_StatusTypeDef ret;
uint8_t sendData[2] = {reg, *pData};
HAL_GPIO_WritePin(...); // CS pull low
ret = HAL_SPI_Transmit_IT(&hspi1, sendData, 2, 20);
// ret = HAL_SPI_Transmit_DMA(&hspi1, sendData, 2, 20);
if (ret != HAL_OK)
{
HAL_GPIO_WritePin(..); // CS pull high
return ret;
}in .ioc. Anyone can kindly advice?
