2020-03-06 06:01 AM
I am trying to get the SPI communication with DMA enabled mode for STM32F303 controller using nucleo board NUCLEO-F303RE. For this, I am using one board as SPI master and other as SPI slave.
On master side, I configured SPI1 and on slave side, I used SPI3 as per our requirement.
I used STM32 Cube based HAL example code available in the folder \en.stm32cubef3\STM32Cube_FW_F3_V1.11.0\Projects\STM32F303RE-Nucleo\Examples\SPI\SPI_FullDuplex_ComDMA\EWARM and modified it to use for SPI1 (on master side) and SPI3 (on slave side).
The observation is, with this configuration, I am not able to transmit anything from master to the slave and thus not able to get data back as well.
Few observations :
Note: I used the example code as it is at first to verify above details which checks the two way full duplex communication.
Also, I tried with only data transmission from master (by using Tx Complete callback) and reception on slave (by using Rx Complete callback). But also failed to achieve the result.
Wanted to have help on SPI1 (DMA enabled) configuration with pins PA5, PA6 and PA7.
2020-03-06 06:40 AM
Maybe there are some solder bridges to configure:
Check MB1136 schematic. close SB40,SB41,SB42, open SB20,SB24,SB29
2020-03-06 06:49 AM
SB40, SB41, SB42 are closed as I could see on Nucleo board, and even SB20, SB24, SB29 are seen to be open.
Do I need to configure them in program by any means?
2020-03-06 07:00 AM
Check the HAL_SPI_MspInit( ) function in stm32f3xx_hal_msp.c and reroute the SPI1 to te right pins if not done.
2020-03-06 07:18 AM
2020-03-06 07:19 AM
This is the configuration of SPI1 pins used.
2020-03-06 03:53 PM
Read out and check/post relevant GPIO and SPI registers content.
JW
2020-07-02 12:25 PM
Was this issue ever resolved? I'm seeing similar issues using SPI1 DMA Tx, no output on pins...