Questions tagged [stm32f0]

Anything related to the STM32F0 series of microcontrollers.

Anything related to the STM32F0 series of microcontrollers.

See STM32F0 series page on ST website.

110 questions
15
votes
1 answer

Addressing registers with I2C STM32F0 HAL libraries

I'm very new to using STM's CUBE and HAL_libraries. I'm using an STM32F0 microcontroller with 32 pins. The schematic for I2C is correct. So I need a little help here. I have a capacitive sensor (FDC1004) that uses I2C communication. I have to…
yest111
  • 153
  • 1
  • 1
  • 6
14
votes
4 answers

When should one use an external crystal for this MCU given that the internal oscillator is much faster?

I am looking at this MCU and was wondering if it makes sense to use an external crystal. Extracted from the datasheet pg1, *Clock management – 4 to 32 MHz crystal oscillator – 32 kHz oscillator for RTC with calibration – Internal 8 MHz RC with x6…
user768421
  • 1,187
  • 6
  • 16
  • 28
11
votes
1 answer

Understanding STM32 datasheet regarding decoupling capacitors

I'm trying to understand what ST recommends for decoupling caps for STM32F030CC. The diagram in the datasheet shows "2x100 nF" caps on the Vdd/Vss pairs. Does this mean 2 parallel 100nF caps per Vdd/Vss pair? Or are they referring to the total…
bizziedog
  • 113
  • 1
  • 4
8
votes
3 answers

STM32F0x1 comparator (COMP) and ADC on same pin simultaneously?

I am putting together a project that takes advantage of the comparator peripheral on the STM32F051 microcontroller. I have read in the documentation that for the comparator to work the input pin needs to be configured for analog... which is the same…
Daniel
  • 6,168
  • 21
  • 33
7
votes
1 answer

LED blinks even when I don't press the button

I have written a program in Keil that blinks a LED via External GPIO Interrupt. Here is how I have configured it in STM32CubeMX: At first, I enabled and configured RCC as you can see and configured PA0 for external interrupt and PB1 as output. For…
Roh
  • 4,598
  • 6
  • 41
  • 86
5
votes
2 answers

STM32F0 - run user program from SPI flash memory

I'm building an application based on the STM32F030F4P6 microcontroller. During the development of the firmware, I realized that the flash memory of the microcontroller is too small. Can I run my firmware from SPI flash memory? If yes, how could I do…
jhon tonini
  • 91
  • 1
  • 7
4
votes
3 answers

STM32F091 Jump to Bootloader from application

I'm trying to implement a jump to the STM32F091 USART1 bootloader from my application. I'm using the following function(based on https://community.st.com/thread/40238-stm32l476rg-jump-to-bootloader-from-software): void SB_SystemBootloaderJump() { …
MarcelNubi
  • 95
  • 2
  • 9
4
votes
0 answers

Master-slave timing on ARM Cortex-M0

I have set up a slave timer that starts counting when the master timer is enabled. I want to know if the slave starts counting when the master timer receives a valid edge (my configuration is count on the rising edge), or does the slave counter…
AJBotha
  • 416
  • 8
  • 17
4
votes
0 answers

STM32F0 USB device - unexpected Device_Qualifier descriptor request

Edit I may not have asked the correct questions here. Please do not attempt to answer before I edit again to remove this message. Summary I'm developing firmware for a USB device, and I can't get it through the enumeration process. My intent is to…
cp.engr
  • 524
  • 5
  • 13
4
votes
3 answers

STM32f0 Low power mode

I have a problem with low power mode on STM32F030F4 (header board stm32f030f4p6 ). When I try to put them in Stop mode they still consume about 5.6mA which is too much ( it should be about 500uA). I put it to Stop mode…
Qasem
  • 43
  • 1
  • 6
4
votes
1 answer

VBAT pin and external crystals in STM32F030R8T6

STM32F030 Datasheet here. On page 14, it's mentioned that: "System clock selection is performed on startup, however the internal RC 8 MHz oscillator is selected as default CPU clock on reset. An external 4-32 MHz clock can be selected, in…
Whiskeyjack
  • 7,946
  • 8
  • 53
  • 91
4
votes
3 answers

Trying to flash STM32f030f4 (ARM, Cortex M0) - what is proper wiring?

I've got STM32F030F4 chips from shop, made a small breadboard adapter for it and tried to connect to its built-in bootloader via USART1. I've failed and I'm somewhat bewildered about wiring. My current schematic is the following: pin 16 (VDD) to…
Alumashka
  • 393
  • 1
  • 3
  • 12
3
votes
2 answers

Multiple(five) alarm time setting in stm32f0 mcu

I am working on my hobbyist project and need to develop the alarm timings. And RTC and Timer are new for me and I am confused in RTC Alarm time setting. I need to make alarm with RTC for five different times(as we are doing in the mobile). So, I am…
3
votes
3 answers

Current consumption in MCU

I am using STM32F051 MCU in my project. System requirement is minimal current consumption. The signals that I am processing are very low frequency (almost DC) I decrease the system frequency from 48 MHz to 8 MHz (turn off PLL)and barely see any…
DDonkey
  • 83
  • 2
  • 8
3
votes
4 answers

How to calculate 4 MHz crystal trace width on PCB?

I have no idea about how to draw crystal trace on pcb. I have stm32f0 chip and 4 MHz external crystal and 15 pF capacitor. Can you help me that how to get suitable trace for crystal trace? Should I use gnd trace around them?
Ali Mutlu
  • 39
  • 4
1
2 3 4 5 6 7 8