STM32 MCUs Products

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
  • 1255 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
  • 1111 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
  • 1857 Views
  • 3 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
  • 963 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
  • 3451 Views
  • 19 replies
  • 0 kudos

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
  • 1488 Views
  • 2 replies
  • 0 kudos