Forum Posts
STM32F722RE UART DMA RX not working properly
Hello all,I have an STM32F722RETx that is receiving data on UART from an ESP8266. This data is variable in length and I use DMA + IDLE interrupt to know when to process it. When debugging the code I can only see the first byte in the buffer as no oth...
Read and write TLE5012b registers with stm32g431
Hi. I'm new to st programming so I want to ask some questions. I'm trying to initialize an angle sensor TLE5012b on stm32g431 MCU but it seems that it has problems with writing and reeding registers. What I'm doing wrong?//spi initialization static v...
Capture IRQ is called but interrupt flag is not set
We are using STM32G051 to measure duty cycle of the actuator PWM signal.TIM1 is configured in slave reset mode, with CH1 direct capture on rising edge and CH2 indirect capture on falling edge. Two DMA channels transfer results into two memory buffers...
Resolved! [Solved] STM32F4 I2C Master Clock Stretching Fail
Posted on September 26, 2017 at 02:56Hi there,I am attempting to get an STM32F411CE microcontroller to interface with a BNO055 IMU using the I2C peripheral. This particular IMU uses clock stretching which doesn't seem to work with the HAL_I2C librar...
Resolved! Configuring pins PA5 or PA6 as output push-pull pins on STM32L432KC causes I2C1 peripheral to stall
I'm using STM32L432KC on Nucleo-L432KC board with the following set up:I2C -- PB6=I2C1_SCL, PB7=I2C1_SDASPI -- PA1=SPI1_SCK, PA11=SPI1_MISO, PA12=SPI1_MOSI, PB0=software CS for SD card readerEXTI - PB1=EXTI1It all works fine until I want to configure...
SD CpltCallback not called after DMA completion
Hey, I am working on a project using the STM32F746 chip and writing and reading to/from an SD card. When reading from the card is completed, HAL_SD_RxCpltCallback is executed, which provides output by sending bytes over UART 8 line. When I read from ...
how to erase the previous data in SD card(SPI communication) by using erase command in stm32f103c8(HAL library)
in this condition using to continuously erase the data.uint8_t erase_cmd[6]={0x20, 0x00, 0x00, 0x00, 0x00, 0x95};HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET); // Chip select pinHAL_SPI_Transmit(&hspi1, erase_cmd, sizeof(erase_cmd), HAL_MAX_DE...
Resolved! STM32H7xx HAL_SPI_TransmitReceive_DMA() should abort RX DMA when TX DMA fails
HAL_SPI_TransmitReceive_DMA() can lead to non-functional DMA when the following happens:RX DMA state readyTX DMA state busyHAL_SPI_TransmitReceive_DMA() gets calledThe result is that RX DMA will become busy and never recovers due to the logic in line...
Why is no data being written to the DMA receive buffer in memory while using I2S in Master Recieve Mode with 24-bit data in STMH743ZI2?
Hello everyone,I am facing an issue while trying to interface a 24-bit PCM mic with the STMH743ZI2 microcontroller using I2S2 in master receive mode with 24-bit data in a 32-bit frame(set using CubeMX). Although I have placed the I2S buffer in the ad...