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

Blue Pill: Enable ssd1306 display via i2c

Hi everyone! I'm trying to learn how to program microcontrollers with C and stuck with trivial task.I have blue pill, stlink v2 and ssd1306 oled displayI'm trying to enable all pixes on the display via i2c: https://gist.github.com/ksevelyar/5e6c0335a...

Resolved! For optimized code, BIN file does not match FLASH contents.

I'm working with STM32F405, not sure if I'm asking question in right place, or if it matters... I'm working on a self-test for CRC FLASH (can't use libraries, just basic code). I notice that, for non-optimized code, the generated BIN file matches FLA...

RGods.1 by Associate
  • 694 Views
  • 3 replies
  • 0 kudos

Alternative to digital Potentiometer?

I have to control several LED signals via PWM (up to 16), whose voltage and current can be above the max 5v tolerant and 20-25ma max current GPIO pins. These LED's can change and are not constant. Meaning they have different voltage and current requ...

Baze by Associate II
  • 1284 Views
  • 6 replies
  • 0 kudos

Resolved! STM32F107 can't correctly wakeup from standby mode

I'm trying to use the standby mode of STM32F and waking it up by WKUP (PA0) pin.Going to standby seems OK, power consumption goes to 4 uA.If I reset MCU with RESET pin, it starts normally: after 250 ms delay it goes to sleep and consumes 4 uA https:/...

ASerg.1 by Associate
  • 532 Views
  • 1 replies
  • 0 kudos

STM32F107 excess power consumption in STOP mode

Firstly, I want to say that there is no error on PCB because if I put MCU into standby, consumption is normal - around 5 uA.I have experience with stop mode on STM32L0, but STM32F1 got to my hand for the first time.For some reason, I can't achieve de...

ASerg.1 by Associate
  • 468 Views
  • 0 replies
  • 1 kudos

How to use SPI with DMA as slave

Hello, I'm trying to understand how the HAL_SPI_TransmitReceive_DMA() function works when my mcu is in slave configuration.If I want to transmit and receive data multiple times do I have to call the HAL_SPI_TransmitReceive_DMA() after each transfer o...

FDi L.228 by Associate II
  • 1133 Views
  • 1 replies
  • 1 kudos

SPI doesn't stop clock after transmission completed.

Hi!Have a problem with SPI.SPI configured as SSI master RX only, and for the first transmission SPI generates additional clock cycle for one more word. What can be cause of such behavior? But it's work fine with less frequency (125 Khz)Here is initia...

Roman by Associate II
  • 717 Views
  • 3 replies
  • 0 kudos

STM32G474 ADC offset

There is only 4 offset registers OFR1...OFR4, does it mean I can set offset for 4 channels only? Or they are dedicated to injected channels?

Tx to Rx UART DMA loopback

Hello,The Tx and Rx pins of UART 4 in my code are shorted. I want to send an incrementing array from the Tx pin and receive it back from the Rx pin.For this I wrote a for loop that increments every element of the array. The for loop is run from the c...

skon.1 by Senior
  • 1071 Views
  • 3 replies
  • 0 kudos

Resolved! Sending data via I2C doesnt work properly

Hi,I want to controll a ST7032 Display Modul via I2C with a STM32G071G8 MCU. Unfortunately I can't manage to send data bytes to the Display. For sending data I use the HAL function HAL_I2C_Master_Transmit() as followed: (for testing)HAL_I2C_Master_Tr...

0693W000004GpfxQAC.png
HReet by Associate
  • 558 Views
  • 2 replies
  • 0 kudos