STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Can I have two different callbacks? (to use two buffers)

I want use two or more buffers with IO functions. One way I could imagine was if I use two different callbacks. I would call HAL_UART_Receive_IT using buffer A which calls HAL_UART_RxCpltCallback A which calls HAL_UART_Receive_IT using buffer B which...

LMI2 by Lead
  • 578 Views
  • 5 replies
  • 0 kudos

How to continuously store data into SD card?

I have SD card interfaced with stm32f407 through 4bit SDIO. I am writing data from I2S _DMA_receive buffer into the sd card. This write should happen continuously,but it happens only once.Here is the piece of the code:FATFS myFATAFS;FATFS *myFATAFS1;...

UART DMA TX complete callback issue

Hello, In the uart driver code of STM32 CUBE layer i found this, static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma){ UART_HandleTypeDef* huart = ( UART_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent; /* DMA Normal mode*/ if((hdma->Instanc...

RN by Senior
  • 1781 Views
  • 5 replies
  • 0 kudos

I2C Fast Mode 400KHz

Posted on July 11, 2011 at 21:13I'd like to use a Connectivity Line STM32's (STM32F107) I2C peripheral in the 400Khz fast mode. I'm using a Olimex STM32-H107, which has a 25MHz external crystal. I am confused by what the reference manual says (RM000...

STM32L432 Power Problem with NRF24L01 and USART

I made NRF24L01 module using STM32L432. I supplied 3.3V to MCU and NRF24L01. So, I checked USART communication from STM32L432 to PC. But I failed checking SPI to NRF24L01.Below, Problems I have, If I supply 3.3V to MCU(Actually whole module), GPIO Ou...

0690X000006CLHOQA4.jpg

STM32F407 timer question?

Hi,I am trying to use either TIM13 or TIM14 but the ISR never get trigger.My questions areWhy the ISR routine never trigger? Is there anything else need be set?how to control the timer? what's the prescaler, period mean? If I want setup the timer tri...

Can __HAL_LOCK in stm32 code cause race condition issues

Posted on March 19, 2018 at 10:24The __HAL_LOCK macro is defined as in stm32f1xx_hal_def.h#define __HAL_LOCK(__HANDLE__) \ do{ \ if((__HANDLE__)->Lock == HAL_LOCKED) \ { \ return HAL_BUSY; \ } \ else \ { \ (__HANDLE__)->Lock = HAL_LOCKED; \ } \ }whi...

Kefei Yao by Associate III
  • 3127 Views
  • 18 replies
  • 0 kudos