Question
SPI slave mode send data after transaction complete
I'm trying to send a fixed length packet in SPI slave mode from the STM32 via DMA. The SPI master may send/recv longer than that fixed length packet. It would be nice if the STM32 just sends 0 one the transactions is complete, but it seems to want to send 0x02 or 0x80. I'm wondering where this is coming from and if there are any ways to get it to send 0.
init_struct_.txDmaChannel->CCR &= ~DMA_CCR_EN;
init_struct_.txDmaChannel->CNDTR = descriptor.length;
init_struct_.txDmaChannel->CMAR = (uint32_t)descriptor.txBuffer;
init_struct_.txDmaChannel->CCR |= DMA_CCR_EN;dma configuration
init_struct_.txDmaChannel->CPAR = (uint32_t)&init_struct_.spi->DR;
init_struct_.txDmaChannel->CNDTR = 0;
init_struct_.txDmaChannel->CCR = DMA_CCR_DIR | DMA_CCR_MINC;
init_struct_.txDmaMuxChannel->CCR = init_struct_.txDmaMuxId;
