1,452 questions
Advice
0
votes
0
replies
24
views
Change pin settings for the nodic mcu
I'm going to test it using the Nordic mcu board, and I look at the board and I can use 4 spots with spim, but the circuit diagram only shows spi connecting to qspi and flash memory, and the guide ...
4
votes
1
answer
120
views
How can I configure the SPI Peripheral correctly on STM32F103C8T6
I have tried monitoring the output on the mosi pin with and oscilloscope but there is no output, I have followed the process of Initialising the clocks, disable and reset the SPI -> CR1 Register, ...
3
votes
1
answer
129
views
High Frequency MicroSD saving with STM32 Disk Error
For the past few days, I've been iterating through different ways to save a txt file in a microSD using this guide from MicroPeta. Very useful, and it's working fine, but my goal is to have around ...
1
vote
1
answer
105
views
Is it possible to share an SPI bus on the raspberry pi pico in rust?
I have been working on a library for the raspberry pi pico to interface with the MCP2515 CAN controller over SPI. I noticed when initialising the SPI struct from rp2040_hal. In the documentation, it ...
0
votes
1
answer
120
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
1
replies
85
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
114
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
84
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
125
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
135
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
172
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
324
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
166
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
179
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
103
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 ...