1,457 questions
0
votes
1
answer
41
views
STM32H747 SPI+DMA transfer stopping after 8 of 50 bytes
Below is code for an STM32H747 to implement a SPI5 driver that uses DMA. The flow is that initialize is called, then startconveyor, starts SPI and prepares for a series of "bursts" (...
Best practices
0
votes
0
replies
43
views
How to prevent an SD card from blocking the SPI bus
I am writing a system for esp32 with esp-idf that must communicate with an ADC and an SD card over the same SPI bus. Ideally, the ADC reads would be consistently timed, so that if the SD card stalls ...
1
vote
0
answers
75
views
I can't figure out why my stm32 spi peripheral is not working
So i am learning the stm32f103c8t6 board, and after having used the hal, i am trying to create my own peripheral driver, but i can't seem to get the spi working, I am trying to communicate with an spi ...
2
votes
0
answers
81
views
DS3234 incorrect value on STM32
I am trying to use a DS3234 with a STM32. (on STM32CubeIDE)
Is answer me with some value but for some reason,
Every value is divided by 2 except for the month.
Second are updated every two (real)...
0
votes
1
answer
85
views
SPI Communication Issue: MISO Frame Corruption or Overlap Between Two Microcontrollers
I’m currently working on SPI communication between two microcontrollers.
The MOSI frames are working as expected; however, I’m facing an issue on the MISO line. It appears that the end of the frame is ...
0
votes
0
answers
77
views
ESP32 SD card write error: errno 22 (Invalid argument) when using fopen
I am trying to write data to an SD card on an ESP32-WROOM. My function for file creation is:
bool create_file(const char *file_path, const char *data)
{
if (!file_path || !data) {
printf(&...
0
votes
0
answers
149
views
ESP32S3 SPI can not address 2 devices
I am currently facing a problem that I run out of idea.
I have a waveshare ESP32-S3-Touch-LCD-2 (https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2) that features a display, SD cardslot and camera.
...
0
votes
0
answers
180
views
RaspberryPi connection with bno085 through spi connection c++
I have recently tried to connect a bno085 to my raspberryPi 3 B+ through SPI connection but it doesn't work as expected:
For the majority of the sensor running the INT pin is pulled high which means ...
1
vote
1
answer
124
views
SD Card Responses to SPI Commands while in SD Mode
TL;DR: Is there a way, using only SPI commands, to tell if the SD card is in SD mode vs. SPI mode?
Edited TL;DR: Yes. If the SD card doesn't respond at all to your SPI commands, you know it's either ...
0
votes
1
answer
131
views
How to obtain SPI slave transfer (read/write during same clock) using UMFT4222EV-D and its library
I am trying to create a SPI class that contains a member function (transfer) that does an SPI slave transfer in SPI MODE 0. My setup is based on a UMFT4222EV-D USB board using the libft4222.a library ...
1
vote
1
answer
90
views
STM32F103C8T6 (Blue Pill) Can't Get the Register Value In First Read From NRF24L01+ via SPI
I have a STM32F103C8T6 Blue Pill board and NRF24L01+ RF module with 5V to 3.3V NRF24 adapter. I wore a code for reading and writing NRF24 register via SPI serial communication. In order to read any ...
1
vote
1
answer
53
views
Why does my RX_Data in the IDE shows a different results than what I see from the logic analyzer when debugging STM32 <> W5500 connection
I'm trying to debug the connection between my STM32F756ZG and W5500 shield. In order to do so I wrote this function called read_version that is based off of SPI_TransmitReceive function that is like ...
1
vote
1
answer
185
views
STM32 SPI DR register won't clear after read
I have an STM32F103C8T6 microcontroller and NRF24l01+ RF module. I have written driver code for the NRF24 and it fails miserably. There are functions for writing register and reading register.
#...
0
votes
1
answer
97
views
Modifying NVIC table priority [closed]
I have two interrupts SPI and ADC. In the nvic table the ADC has higher priority to SPI and I want to change that. SPI interrupt to have the highest priority. In this case how can I modify the nvic ...
2
votes
2
answers
112
views
ATtiny841 slave SPDR register
Version 1:
I am using a Raspberry Pi Pico as SPI master and an ATtiny841 as SPI slave.
Master code:
#include "pico/stdlib.h"
#include "hardware/spi.h"
#include <stdio.h>
#...