All Questions
249 questions
0
votes
0
answers
12
views
STM32F4 SPI Communication Issue with RA8875 Display Controller
I'm trying to port Adafruit's RA8875 Arduino library to work with an STM32F4 Discovery board. The SPI communication is failing during device initialization.
During initialization, when reading the ...
0
votes
0
answers
18
views
SPI issue in arduino and STM32F4 connection
I wanted to play with SPI on STM32f4 nucleo (made it MASTER) and communicate with slave - arduino pro micro.
Idea is that whatever i type on serial terminal connected to nucleo is passed to arduino ...
0
votes
0
answers
74
views
STM32 SPI communication issue
I have two STM32 boards. First with STM32H755ZIT6 as SPI transmitter and second STM32F405RGT6 as a receiver.
Here is Transmitter's configuration. As you can see I set Transmitter's SPI clock to 42 MHz ...
1
vote
0
answers
62
views
Strange SPI Flash Memory Behavior [closed]
I'm working on a project in which I use the W25Q128JVSIQ flash memory chip from Winbond to store audio data that will later be output to a speaker. The memory chip interfaces to an STM32 ...
0
votes
1
answer
76
views
Problem with SPI Communication - STM32 Nucleo U575ZI-Q/STEVAL-MKI168V1
I am currently learning by working on a project in which I have to establish a SPI communication between a Nucleo U575ZI-Q and a STEVAL-MKI168V1 (IIS2DH eval board). To set up the Nucleo board and its ...
0
votes
1
answer
85
views
Problem with STM32MP1 SPI using DMA
When running some simple code to test the SPI communication using DMA, the program only works as expected after stopping and restarting the microcontroller.
The first time it runs, instead of sending ...
-1
votes
2
answers
116
views
Can I turn off the transmitter when receiving half-duplex SPI?
I have a STM32F103 Blue Pill-based interface board which is being used to translate from USB to a custom single-wire debugger interface (used by some Telink chips). I didn't write it, but I'm trying ...
0
votes
2
answers
42
views
Discrepancy between SKR Mini E3V2 and documented SD Card Pinout
There is a schematic of the BTT SKR Mini E3 V2 available on the internet and I was taking a look at the SD Card Pinout.
First of all I noticed, that it appears to run in SPI and not SD mode. Fine okay,...
0
votes
0
answers
193
views
Can't enable W25Q for writing (using STM32F103)
I am trying to work with a W25Q128 and previous I got stuck with talking to the chip, but stackoverflow helped me and I was able to communicate with the chip. Now I am unable to bring the chip into ...
0
votes
2
answers
93
views
Can't read data out of SPI device using STM32F1
I am new to STM32 family and trying to work with an SPI chip (W25Q). It seems like the micro is sending the desired bytes to W25Q, but the chip does not respond. Now I have a question with the CLK ...
0
votes
1
answer
146
views
STM32F103 SPI Clock Signal is not generated
I am trying to communicate with a Winbond W25Q (16 MBit) chip with Standard SPI connection. I am using Keil to code and debug. It looks like I am unable to generate the clock signal for the SPI line. ...
0
votes
2
answers
82
views
STM32F446 MCU SPI Problem with CC1120 Device
I'm currently working on a custom PCB with cc1120 datsheet as transceiver and stm32f446RET6 as MCU. I integrate the cc1120 library from IT's library. The device uses SPI as serial communication. Here ...
0
votes
1
answer
46
views
How to correctly shift the wipers of MCP4331 per SPI?
I am using an STM32 F401RE to control a Quad 7-bit digital potentiometer MCP 4331 using SPI Mode 0,0 protocol. You can find the datasheet Here. I can see that the microcontroller sends the correct ...
0
votes
1
answer
126
views
Why is MOSI pulled low during communication?
I am using Allwinner A40i (ARM V7) as SPI master and STM32 as SPI slave. When not communicating with STM32 for SPI, it is correct to use an oscilloscope to capture ...
0
votes
0
answers
261
views
STM32 SPI DMA issue
I have two MCU, STM32H755ZIT6 as Master TRANSMIT ONLY and STM32F103C8T6 as Slave RECEIVE ONLY.
The Master MCU is sending 18 bytes all the time via DMA and the Slave device is receiving it also with ...
1
vote
0
answers
138
views
SPI2 on the bluepill STM32F103C8 doesn't work
For a while, I have been trying to interface a 1.8 TFT ST7735 to my STM32F103C8 bluepill using SPI2 and HAL.
I tried SPI1 and has worked perfectly, but because I am interfacing LoRa to the bluepill ...
0
votes
0
answers
66
views
AD7708 ADC SPI receive problem in STM32
I'm currently working on a ADC AD7708. There is not much document or library for this IC. I'm writing ad7708 driver for stm32f446 mcu. In datasheet register structure of ad7708 shown as below:
I ...
0
votes
0
answers
76
views
Noise in SPI Chip Select when communicating between boards
I'm writing SPI code to communicate between an STM32 Nucleo Board and a TI Dev Board, the CC1310-90. I'm using a manually toggled chip select pin.
The data my TI board is receiving is junk, and after ...
0
votes
1
answer
70
views
Can't write to status register of SST25VF010A flash memory
I'm having trouble writing to the status register of a SST25VF010A-33-4I-SAE 1Mbit SPI flash memory on a board I recently made. I'm using an STM32F401CBU6 to communicate with the memory.
I can read ...
0
votes
2
answers
303
views
Reading BMI270 IMU data with STM32F4 MCU
I have a flight controller with a GYRO in it. The BMI270 is connected to SPI 1, and using STM32CubeIDE for the build, I am trying to read sensor data and send it via UART.
CHIP_ID = 0x24 is the value ...
0
votes
2
answers
1k
views
HAL_SPI_TransmitReceive not working properly
I am trying to use HAL function to drive SPI to read analog voltage from external ADC (adc128s102). I see what I expect to see in first 16 CLK with MISO(Blue) and MOSI(Yellow) line. But what's causing ...
0
votes
2
answers
107
views
I2C with MPU6050 and STM32F407stuck at send address status check
I have the following code for an accelerometer sensor, MPU6050.
...
0
votes
1
answer
95
views
Slave SPI not firing interrupt
I have 2 STM32F407 discovery boards for which I'm trying to setup a multi slave SPI bus. The first slave is working but the other one is making problems once I connect the second CLK input onto the ...
0
votes
1
answer
344
views
Implementing a light software stack on STM32 to send and receive data using 433Mhz RF modules
I need to send a 12-bit data continuously from one system to another using 433MHz RF modules. The transmitter and receiver systems uses STM controllers (STM32L010F4) which are connected to the radio ...
-1
votes
1
answer
244
views
SPI NAND rewrite issue
I'm using Alliance Memory's AS5F38G04SND-08LIN 8Gbit(1 Gbyte) SLC NAND flash with STM32.
Datasheet
So my question is, Can I re-write a page with data already in it? Page size is 4096 bytes.
For ...
-1
votes
2
answers
497
views
SPI. When does the RXNE bit of the SPI_SR register become 0? [closed]
I found information that the RXNE bit is set to 0 when the SPI_DR register is read.
So after ...
0
votes
0
answers
108
views
I can't get the WHO_AM_I address from the LIS3DSH accelerometer. SPI. STM32
I want to get the WHO_AM_I address from the accelerometer LIS3DSH, which is located on the STM32F407VGT6 board.
To be more precise, after I press Hardreset many ...
0
votes
1
answer
406
views
Can't fill the ILI9341 display with color. STM32, SPI
Connecting STM32F407VGT6 to ILI9341 display.
I need to perform a simple task: fill the display with some color.
Current display status: The display backlight lights up.
The display is not filled with ...
3
votes
1
answer
225
views
Synchronous Sampling of ADC over SPI on STM32 (STM32G474)
I have a design incorporating an ADC with an SPI interface that requires:
SPI Transfers of 32-bits to read the conversion results from the
previous conversion.
To be able to sample the ADC at 1 MSps ...
0
votes
1
answer
114
views
Peaks on absolute rotary encoder values graph
I have a rotary encoder AEAT-9922, which is connected using SSI2 mode. The read format is defined on the 16th page of the datasheet.
Encoder is connected to the STM32F373 microcontroller, which runs ...
2
votes
1
answer
626
views
SPI - DOUT (MISO) and Data Ready (~RDY) pin shared
I am attempting to interface to an SPI measurement IC and read data from it.
This makes use of a "data ready" feature, which lets the microcontroller know that a measurement is complete and ...
0
votes
0
answers
251
views
STM32H7 as SPI slave only
I'm moving my project code from STM32F407 to STM32H743 and I am stuck with SPI. First of all STM32H743 has more registers and it also lacks some of them like RXONLY register in CR1.
What I'm trying to ...
3
votes
1
answer
404
views
OctoSPI HyperRAM PCB Routing
I am attempting to route a HyperRAM BGA chip with a HyperBus OctoSPI interface to an STM32 MCU. This is on a 2 layer board. After much consideration, I have determined that the best placement of the ...
0
votes
1
answer
173
views
SPI WRITE for DRV8889
I am not able to write to the registers of DRV8889 using SPI, but I am able to read them, don't know where I am going wrong.
I am using an STM32G431C8T6. I have gone through the datasheet thoroughly ...
1
vote
0
answers
465
views
How do I synchronize SPI DMA transfers to an external ADC using STM32
I am trying to receive data continuously from an ADC using an STM32G4 microcontroller. The ADC has an independent clock, free running from the MCU, and indicates data ready with a DRDY pulse. 18 bytes ...
1
vote
2
answers
679
views
STM32 - While using SPI in write-only mode (MOSI), assign MISO pin to GPIO
While using HW SPI only for write purpose (only STM32 chip as master sends data through MOSI pin), is it possible to assign the MISO pin to general GPIO? I need it because the trace on PCB is already ...
0
votes
0
answers
536
views
Delay between SPI transfers on STM32U5
I have to interface an STM32U575 microcontroller with a very specialized SPI device for which the market offers no alternatives. According to the spec sheet, the chip select must be pulsed between ...
1
vote
1
answer
727
views
Use QSPI or QUAD SPI as a "normal" SPI?
I need high speed SPI peripherals to control some SK9822 LED's (which can be clocked at up to 30 MHz, which I'd like to use (the speed is needed because of the LEDs being in motion)
So I searched for ...
0
votes
0
answers
52
views
interface SD Card using SPI communication in stm32f103c8 [duplicate]
I need to interface SD Card using SPI communication in stm32f103c8. First i to store the temprature value in every one seconds in sd card. It work well after that i try to store temperature value in ...
0
votes
1
answer
314
views
Reading two 16 bit ADC with two MISO lines each for its two channels using an STM32H723ZG
In my current project I am using a STM32H723ZG Nucleo board on a custom shield PCB with two AD7380 ADC's which amount to 4 signal channels.
The goal is for the next PCB revision, to read out all 4 ...
2
votes
2
answers
201
views
SPI data format for daisy-chained AD5207 digital potentiometer control
I am working on a project using two daisy-chained AD5207 digital potentiometer ICs controlled by the SPI interface of an STM32 micro. I'm following the directions given on P.9 of the AD5207 datasheet, ...
0
votes
0
answers
171
views
How to implement addressable LEDs with clock in/out with STM32
I'm extremely new to embedded programming and have to figure out a way to control this specific RGB strip with an STM32 microcontroller.
Here is the communication protocol.
I don't know how to ...
1
vote
2
answers
191
views
How to measure signal with ADC from position sensor 5 meters away?
I want to design a new board that includes an ADC (AD7606C-4) and STM32.
I need to measure 3 analog signals from a position sensor (PDP90A).
The distamce of the position sensor from the A2D is ~5 ...
0
votes
0
answers
117
views
STM32 SPI and mismatched data vectors for TLE5012b encoder
I am having a problem (not strictly a problem since it works but it involves a hack) with data receiving between TLE5012b encoder and STM32f401CC. I believe this is a common problem to all STM32s.
The ...
0
votes
0
answers
95
views
How to set the SPI channel and read the measured values
I want to use the SPI of an STM32 to read several sensor measurements
How can I set up a channel?
I'm looking for it and using it, but I can't see it coming out properly.
They say that you can use ...
0
votes
1
answer
510
views
Flashing STM32 via SPI from STMCubeIDE
I am building a board with STM32F030F4P6TR, TSSOP20 20-pin package and am trying to figure out how I am going to flash my program onto this chip. It seems like there is a SPI interface that I might be ...
0
votes
0
answers
56
views
How to connect EVB- ADC7606BSTZ to MCU (STM32)?
I try to connect the EVAL-7606BSTZ to my application, my MCU -
user guide for EVAL:https://www.analog.com/media/en/technical-documentation/user-guides/EVAL-AD7605-4SDZ_7606SDZ_7606-6SDZ_7606-...
0
votes
0
answers
253
views
External ADC with SPI NUCLEO-H743ZI2
I have an external ADC with a serial interface that has one data_out pin and CLK pin (16 MHz)
the data_out pin transmit 16 bits of valid data then. An all-zero pattern follows the data after all valid ...
2
votes
2
answers
218
views
Use one chip from multiple daisy-chained ADCs
My PCB consists of multiple ADC chips (AD7685) connected in a daisy-chain mode with STM32F303 as MCU and SPI communication. As far as I know, increase in the number of chips in the system results in ...
0
votes
0
answers
147
views
MCP2515 CAN Transceiver Breadboard vs direct PCB Female Header connection
I have experienced a case, where I connect the MCP2515 over jumper wires to uC and everything works as intended.
However, when I plug MCP2515 directly in the PCB (through female headers), the MCP2515 ...