Questions tagged [stm32]

The STM32 is the third ARM family by STMicroelectronics. It follows their earlier STR9 family based on the ARM9E core, and STR7 family based on the ARM7TDMI core. The STM32 is based on the ARM Cortex-M family of cores.

More information and relevant links on the STM32 can be found on this Wikipedia article.

3594 questions
26
votes
1 answer

What is the STM32 event EVENTOUT?

In the manual of my STM32, one of the GPIO Alternate Functions (namely AF15, see page 138) is called EVENTOUT. At no point is the event defined, or a use case given. What is the EVENTOUT alternate function of my STM32?
Randomblue
  • 11,003
  • 31
  • 106
  • 178
11
votes
2 answers

STM32 GPIO Speed

Why do we need to set speed for GPIO Output pins in STM32? Just for remind : For Input pins, The STM32F4 Reference Manual on page 278 says that: The data present on the I/O pin are sampled into the input data register every AHB1 clock cycle. So…
Amin Rostami
  • 939
  • 3
  • 12
  • 31
10
votes
1 answer

STM32 HAL vs LL

I'm exploring the world of STM32 microcontrollers. I must say, so far it's a huge puzzle. I find that there are many documents provided by ST, but none of them really teach me anything. And it's really confusing that there is so much information…
bas
  • 571
  • 2
  • 8
  • 22
8
votes
5 answers

Set STM32 GPIO clock and data pins as fast as possible

I have an STM32 that toggles nine GPIO pins repeatedly (one clock pin and eight data pins to load an FPGA image using SelectMap). I am doing this using the standard library function GPIO_WriteBit that modifies one GPIO bit, and changing one pin at a…
Randomblue
  • 11,003
  • 31
  • 106
  • 178
7
votes
1 answer

STM32F0xx UID decoding

In my project, I need to make readable 96-bit UID. In STM32F0xx reference manual RM0091 section 33.1 Unique device ID register, it is described how the number is encoded: struct Uid { uint16_t X; // x-coordinate uint16_t Y; //…
vlk
  • 458
  • 8
  • 16
7
votes
1 answer

Can the USB module of STM32F103 be clocked by the HSI?

There is a board of STM32F103CBT6 without external high speed crystal. I want to use the USB module on this board. The input of the PLL is 4MHZ as I configured PLL source to internal RC oscillator (8MHZ typically with 2x division), then I configures…
user123179
  • 465
  • 1
  • 7
  • 15
6
votes
2 answers

Overwrote STM32F4 ST-Link pins

I overwrote by mistake ST-Link programming pins PA13 and PA14. Now I cannot reprogram my chip. How could I fix the problem? Datasheet
Arturs Vancans
  • 775
  • 1
  • 13
  • 23
4
votes
1 answer

Which microcontroller for a program with many floating point operations

I'm using the STM32 uC for quite a long time, from F1,F2,F3,F4 to F7. In one application I changed from the F4 (100 MHz) to the F7 (200 MHz), but this seems like it was a mistake. The application run on the F4 with around 15kHz, on the F7 with…
HansPeterLoft
  • 1,038
  • 1
  • 22
  • 40
4
votes
2 answers

Circuit design - usage of BOOT0 on STM32G474

I'm involved in a collaboration to develop a motor driver circuit based on the 48 pin STM32G474 microcontroller. I'm using TIM8 timers to drive the PWM of a DRV8323RH chip. My question is about the use of BOOT0 pin. My understanding of the BOOT0…
Owen White
  • 71
  • 1
  • 5
4
votes
2 answers

STM32 Min. clock speed whilst sleeping

I am looking at using the STMF103RB ( ST product page ) for a use case involving being asleep for 1 second and UARTing 500 ADC samples and then going back to sleep. I have a 50mAh battery and need it to last atleast 10 hours, i.e. 5mA…
Barker76
  • 43
  • 2
4
votes
3 answers

How can I measure the VBAT voltage throuth ADC of STM32F103?

I've got a board with a MS621 rechargeable backup battery. Some data should be kept in the memory after the device is powered-down. Sometimes the battery will be discharged to a voltage below that which the STM32 backup registers require. In that…
user123179
  • 465
  • 1
  • 7
  • 15
4
votes
1 answer

Full duplex slave SPI, DMA and interrupts on STM32F103

I am looking for a bit of help with SPI and DMA on an STM32F103C8 board. I have it working as an SPI slave using interrupts and am have trouble getting DMA to work. I'm aiming to get full duplex 16 bit transactions, with a DMA interrupt being…
law
  • 81
  • 1
  • 2
  • 4
3
votes
1 answer

STM32 - phase angle control concept

I'm using a STM32 for PAC (phase-angle control) of a mains load (cos phi > 0.95) and I'm unsure how I should implement the firing of the pulses. My first try was to use two timers and a EXTI pin which measures the zero-crossing. When I detect a…
HansPeterLoft
  • 1,038
  • 1
  • 22
  • 40
3
votes
2 answers

Periodic Wake Up in VBAT Mode STM32

Is it possible to periodically wake up while you're in VBAT mode with STM32 devices that support it? I want to be able to wake up every so often (say, every 5 minutes) and log the time in the backup SRAM that is provided. The problem is, I can't…
Dan
  • 45
  • 4
3
votes
2 answers

What to do to stop PWM after N pulses in STM32?

I am using an STM32Cube IDE and HAL library to generate two PWM using two timers. I want these two PWMs to stop i.e go LOW after one of the PWMs has generated N pulses. I don't know what to use in what mode. Should I use a third timer with a mode or…
cm64
  • 2,139
  • 1
  • 19
  • 46
1
2 3
10 11