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

Resolved! A nother STM32G071 bare metal question on SPI

Hello,here is another bare metal question on STM32G071. I am trying to get the SPI to work. But it is not generating any clock signal or MOSI signal. Here is my init code trying to get it to work on GPIOB 6 to 8:void init_spi(SPI_TypeDef* SPI) { if(...

LPTIM repetition counter not work

Hi , I am trying to use lptim on NUCLEOL412RB.I want to use lptim repetition counter to fire a interrupt which period is 5 secs.My lptim clock source is 32k LSI.Here is my config:hlptim1.Instance = LPTIM1; hlptim1.Init.Clock.Source = LPTIM_CLOCKSOUR...

clee.10 by Associate III
  • 3074 Views
  • 5 replies
  • 0 kudos

NOR Flash memory Quad SPI initialization

Hello,i need to use this flash memory with Quad SPI. I read the STM32 user manual and some examples of random evaluation boards.I think that this first step initialization should be okstatic void MX_QUADSPI_Init(void) {   /* USER CODE BEGIN QUADSPI...

AMerc.4 by Senior
  • 2568 Views
  • 3 replies
  • 0 kudos

Resolved! Two questions on I2C flags SB and BTF in STM32F446RE

Hi, I'm stepping through the code on Nucleo-F446RE board and doing the following:LL_I2C_GenerateStartCondition(I2C1); step++; while(!LL_I2C_IsActiveFlag_SB(I2C1)); LL_I2C_TransmitData8(I2C1,BMP180_ADDRESS_WRITE); step++; while(!LL_I2C_IsActiveFlag_A...

kj.obara by Associate III
  • 3234 Views
  • 3 replies
  • 0 kudos

Newbie Needs Help Installing NuttX RTOS on STM32F446 Board

Hi all. I'm a CS major with a decent knowledge of C, C++, and Python, but my summer internship has tasked me with installing NuttX onto an STM board and I'm a bit lost. I have never used Linux before and I have never dealt with real time operating sy...

BGibs.1 by Associate
  • 1466 Views
  • 1 replies
  • 0 kudos

SD (read-only) memory leaks issue

Hi, I hope you are well!I get stuck on the same issue since a few months:I stream multiple audio files (.wav), at the same time and continuously. After 24 hours of streaming, SD card files start to be corrupted (data is wrong) and when I inspect the ...

jean by Senior
  • 3005 Views
  • 8 replies
  • 0 kudos

STM32F2 RXNE flag FROM SR register clear without reason

Hello,I am using UART4 from a STM32F2. I am sending a data then my RXNE FLAG from SR register go from 0 to 1. Without doing anything (no read of the DR register and no clearing manually the flag) it go back to 0 after some time. So I am missing the d...

haye by Associate II
  • 5773 Views
  • 19 replies
  • 0 kudos

SD Init Failure on STM32H743I-EVAL2 with Example Code

I am using the STM32H743I-EVAL2 and have been trying to get the SD card initialization working. During the execution of HAL_SD_Init() --> HAL_SD_InitCard() --> SD_PowerON(), HAL_SD_ERROR_CMD_RSP_TIMEOUT is returned.I was originally using code generat...

I2C controller getting false arbitration lost

I've enabled the I2C controller and ask it to send a start condition on the bus, and it does, however, as soon as I write a data byte to the TX register, it releases the bus and raises an arbitration lost flag. How can this be possible when there is...

psusi by Associate II
  • 2743 Views
  • 2 replies
  • 0 kudos