Hot answers tagged

4 votes
Accepted

Can I implement QSPI (quad SPI) communication using an MCU that only supports ordinary SPI

Probably not, if it supports only spi then you could bit-bang quad-spi, but you won't have the speed of hardware controlled quad spi and dma. This could limit the bandwidth so if you need quad spi ...
Voltage Spike's user avatar
  • 78.1k
2 votes

SPI protocol master CS pulled low

CS is the only signal in the SPI protocol that is guaranteed to keep the master and slave state machines synchronized. Synchronized in the sense that most slaves require knowledge about where the byte ...
Dave Tweed's user avatar
  • 171k
2 votes
Accepted

HAL_SPI_TransmitReceive not working properly

You have configured your SPI peripheral to work with 16-bit instead of 8-bit data. Then you request transmitting 2 units of data which result to 2x16-bit => 32-bit transmission. Alternatively you ...
Misaz's user avatar
  • 365
1 vote

SPI protocol master CS pulled low

That won't work, because CS is an output from master, and there will be a short circuit if master pulls it high. And most communication on SPI bus is not a continuous stream, but transactions that ...
Justme's user avatar
  • 138k
1 vote

HAL_SPI_TransmitReceive not working properly

There is no SPI initialization code so it may be wrong. But you have TX and RX buffers with length of 1 byte. Yet your code tells to transmit and receive 2 bytes so it transmits out one garbage byte ...
Justme's user avatar
  • 138k
1 vote

PL230 DMA & PL022 SPI transmit only 9 bytes

You enable both TX and RX DMA, but there is only a TX channel set up. Either don't enable RX DMA or set up another channel for the RX data. The SPI peripherial runs until the RX buffers are full.
Turbo J's user avatar
  • 10.1k
1 vote

I2C with MPU6050 and STM32F407stuck at send address status check

It happened twice and now it doesn't work anymore, and I am unable to figure out why. The other answer notes there are no external pull-up resistors shown on the bus lines nor on the schematics for ...
Chester Gillon's user avatar
1 vote

I2C with MPU6050 and STM32F407stuck at send address status check

I²C needs pullup resistors on the bus lines, I see none in the schematic. Otherwise you may need an oscilloscope or logic analyser...
Turbo J's user avatar
  • 10.1k

Only top scored, non community-wiki answers of a minimum length are eligible