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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
spi × 1688stm32 × 255
microcontroller × 242
arduino × 132
i2c × 126
sd × 121
pic × 113
flash × 92
avr × 89
adc × 83
raspberry-pi × 66
embedded × 60
c × 58
fpga × 52
uart × 52
atmega × 52
serial × 45
communication × 41
usb × 36
clock × 34
dma × 34
dac × 33
microchip × 30
pcb × 29
digital-logic × 28