STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

New possibilities for the ultra-low power segment!

STM32U0 is the first Cortex-M0+ with a static consumption of only 160 nA in standby mode with RTC (Real-Time Clock) and 16 nA in shutdown. It also achieves 118 points in CoreMark and targets SESIP level 3 and PSA level 1 focusing on firmware code pro...

gif-stm32u0.gif

Array initialization

I know that the question will be trivial, however, I do not understand why the instruction uint8_t dataRx[4] = { 1 }; does not initialize all the elements of an array to 0 ... but only the first one:I have programmed little in the last while so I wil...

stm32 array 2.png

Understanding STM32F103C8 AD Vref and AD range.

Do I understand the datasheet correctly when I believe the internal 2.1v reference is something internal, and the AD is still operating within VCC/3.3v as upper limit? Copilot suggested this:  // Enable ADC1 and configure itRCC->APB2ENR |= RCC_APB2EN...

pilot by Associate
  • 66 Views
  • 4 replies
  • 1 kudos

rider7 can't change hex file

I'm working on various examples using rider7. However, sometimes I encounter unexplained errors. The issue is that the hex file doesn't change. It seems like there might be garbage values in the hex file, as nothing works. Even if I change the main.c...

sa11 by Visitor
  • 68 Views
  • 2 replies
  • 0 kudos

STM32L0 STOP and STANDBY mode.

I have some questions. I read that STOP mode has a "RAM retention", so when it wakes up it the whole data is still intact (not cleared).When the RAM retention is off then the data is gone when it goes to STOP mode. So when it Wakes up does it restart...

Xenon02 by Senior
  • 433 Views
  • 13 replies
  • 3 kudos

STM32H7B0 How to get input frequency of timer 3

Dear,Used MCU: STM32H7B0, 100 pins.In the datasheets we had found that TIM3 use the APB1 peripheral clock.In our case is this 120MHz. But when we use the function "HAL_RCC_GetPCLK1Freq()" we become 60MHz.This isn't correct. So what function should we...

OGhis_0-1730552934505.png
OGhis by Senior
  • 104 Views
  • 4 replies
  • 1 kudos

STM32G0B1 USB clocking

I am working with am STM32G0B1CB for USB communications, using Zephyr as my OS.  I am trying to have multiple CDC ACM serial ports, so that they will show up as /dev/ttyACM0, /dev/ttyACM1... on Linux.  Everything seems to work fine if I have only one...

Screenshot from 2024-11-02 21-07-56.png
rm5248 by Visitor
  • 90 Views
  • 1 replies
  • 0 kudos

Resolved! STM32H7B0 ADC 2 incorrect sample rate.

Dear,Using STM32H0B0, 100 pins version.we wish to sample 1 input with ADC2 at a fixed frequency. This must not deviate and for this we use timer 3 set to the desired sample rate.In the pictures we use 100Khz, but later to go to 1Msps.So the timer 3 i...

OGhis_3-1730578411629.png OGhis_0-1730577254510.png OGhis_1-1730577267859.png OGhis_2-1730577285068.png
OGhis by Senior
  • 72 Views
  • 1 replies
  • 0 kudos

STM32 SPI master and slave issue

Hello everyone.I am working on a project and I have two stm32 MCU connected over SPI interface. One acting as a master (STM32H743VIT6) and the second acting as a slave (STM32C011U6) in full duplex.When sending data between the two devices the receive...

sousa_1-1730544656409.png
sousa by Associate II
  • 125 Views
  • 5 replies
  • 0 kudos

Unexpected timing with nops

Hi,I am confused with pin toggle timings, why I am getting non equal pulse widths like in the picture, I turn off all compiler optimizations and disable all of the interrupts, code is simple pin toggling. My controller is STM32L431 running on 80MHz.T...

pic2.png
tompa by Associate II
  • 401 Views
  • 14 replies
  • 6 kudos