Here's the definition of some functions that is used to allocate variable in D3 SRAM. typedef struct {
uint16_t PackType;
uint8_t Data[8];
uint8_t reserved[2];
}PinBasePack;
#define sMemory(mem,type) ((type *)(sMem(&mem,sizeof(type))))
typede...
I am working on STM32F407ZET6 with DMA+SPI in slave mode. Trying to reset DMA Counter when NSS is high to avoid shifted data transmit.TX and RX DMA are working on Circular mode.This is my tx data typedef struct {
uint8_t InputState[4];
uint8_t re...
I was thinking that DMA starts to transfer data to DR only when NSS is low :thinking_face: which was wrong.It seems that DMA starts to transfer data to DR when DR is emptyActually there's no need to stop and restart SPI. My solution is overwriting th...
this makes sense. I will try your solution.But I'm still confused that why the problem is still there even only do this __HAL_DMA_DISABLE(&hdma_spi1_tx); __HAL_DMA_ENABLE(&hdma_spi1_tx);
TX transfers some data to SPI MasterRX receices some data from SPI MasterI tried to reset DMA counter, because the SPI Master is ESP32.For example, when flashing ESP32, SPI may stopped in the middle of transfer. And cause continuous data byte shifts ...