cancel
Showing results for 
Search instead for 
Did you mean: 

H743 I2S half-duplex slave receive mode, SDI pin should map to MOSI not MISO, cubeMX v6.15, FW_H7 v1.12.1

KimbleYoung
Visitor

Created a STM32H743II prj with I2S2 enabled, half-duplex slave receive mode, and DMA1 S0 bounded to SPI2_RX, to work with an ADC in master mode.

 

Can't get data from the ADC ( DMA linked mem area always zero ), while my oscillograph can properly decode the ADC I2S data output pin ( CK & WS pin also connected between the ADC board and the H743 board, and the oscillograph ).

 

In cube, the SDI pin is mapped to SPI2_MISO, PB14. But as a slave, shouldn't the correct SDI pin map to SPI2_MOSI, PB15?

 

So I modified the cubeMX generated code manually, by changing PB14 to PB15 in the I2S2 GPIO initialization sector, and it worked, the DMA linked mem area shows the same value on my oscillograph.

 

Is this a cubeMX bug?

0 REPLIES 0