Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
462 views

SPI Daisy-chain with paralleled DIN

I'm trying to use daisy-chaining feature on three MAX5318 DAC's. However, I'm not sure how to do it properly. Do I need to turn CS low, then write 9 byte to SPI DIN, then double-trigger LDAC? Or to ...
Andrii's user avatar
  • 105
0 votes
2 answers
3k views

Sine Wave generator with DAC

i want to create a 40KHz sine wave with a STM32 Controller and an external DAC. I created my SPI connection to the MCP4922 and sending a sine wave table to it. The init function of the SPI interface ...
Walter Nazarenus's user avatar
1 vote
2 answers
1k views

Inconsistent SPI communication between STM32F4 (Slave) and Raspberry Pi (Master)

I've been having a very specific issues with large SPI transaction and after few days of debugging and trying different approaches I haven't progressed anywhere. To briefly explain the system: Slave: ...
Amudsen's user avatar
  • 11
0 votes
1 answer
453 views

strange RFM95 SPI behaviour with STM32L4 [closed]

I am using CubeMX and HAL to program an STM32L4. I am trying to communicate with RFM96 module using SPI, but I am getting nonsensical results. According to the RFM96 datasheet, in order to read a ...
jbird's user avatar
  • 11
2 votes
2 answers
1k views

STM32F722ZE SPI communication with LSM6DS33 using HAL

For a long time I can not read the correct data from the LSM6DS33 control register (accelerometer + gyroscope). As I read in the datasheet, the control register address WHO_I_AM is 0x0f. In order to ...
R. Griffin's user avatar
1 vote
1 answer
13k views

How to receive bytes from SPI with interrupts using HAL on STM32?

Background I am trying to make a SPI connection between two STM32F103C8T6's. Measurements According to my logic analyzer I get a signal that looks ok (sending 10 bytes with values 0x55): Results ...
Michel Keijzers's user avatar
0 votes
3 answers
2k views

STM32 SPI SCLK stops ticking

I have STM32L052K8T6 (master) and I am trying to communicate with AD7124-4 ADC (slave) via SPI. My problem is that STM stops transmiting clock pulses on SCLK immediately after it transfers all data ...
Jardo421's user avatar
0 votes
1 answer
1k views

Misunderstanding of hal_spi Communication Functions

The hal_spi communication function returns HAL_OK while nothing is OK. I use HAL_SPI_Receive, HAL_SPI_TransmitReceive, and ...
Ramo's user avatar
  • 103
3 votes
1 answer
2k views

STM32F072 - Working with HAL and FatFS

I am trying to make small data logger project with STM32F072 as an opportunity to get more familiar with STM's HAL. With CubeMX I generated HAL code that has SPI and also includes FatFS. Right now I ...
Calculon's user avatar
  • 152
0 votes
1 answer
2k views

how to set up SPI communication between a STM32F746ZG and a MCP2515

I am trying to communicate my STM32F746ZG microcontroller with a MCP2515 and am having a problem where I don't believe the MCP2515 is receiving anything I have sent via SPI. The reason I have come ...
Nicholas Lloyd's user avatar
0 votes
2 answers
5k views

SPI wrong received data

I'm trying to execute the SPI example from STM32Cube using a STM32F429 board and a STM32F4 board. The first has 180MHz of clock and the second one has 168MHz, both with similar Arm cortex-M3 ...
Leandro Lima's user avatar