STM32 F0 are entry-level ARM Cortex-M0 MCUs from ST Microelectronics.
Questions tagged [stm32f0]
124 questions
2
votes
1 answer
Change timer period without re initialize it STM32
I'm currently using a timer on my STM32F091VB as below
void MX_TIM3_Init(void)
{
htim3.Instance = TIM3;
htim3.Init.Prescaler = 400;
htim3.Init.Period = 1000;
HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_1);
}
...
__HAL_TIM_SET_COMPARE(&htim3,…

NicoCaldo
- 1,171
- 13
- 25
2
votes
2 answers
Rust embedded application is not linked correctly under AArch64 system
I'm trying to compile and debug an embedded rust application for stm32f0 using an ARM system as host.
The application already compiles and works under an Intel installation.
I am running on a Pinebook Pro, powered by a Quad Cortex-A53, 64-bit CPU.…

Maldus
- 10,548
- 4
- 24
- 36
2
votes
1 answer
How to add a string descriptor
I'd like to add a string to my HID project (to store information about the firmware revision). I've read about string descriptors https://www.beyondlogic.org/usbnutshell/usb5.shtml and my understanding is that a Configuration descriptor or report…

Indigo
- 962
- 1
- 8
- 23
2
votes
0 answers
Keil uVision compiles my code into 0xfff-s
I have a weird problem. For some reason, my compiler generates 0xfff-s instead of real code. This happens for a whole file (see screenshot, sim800.c is whole like this), other files are compiled fine.
This does not necessarily happens to this…

larts
- 67
- 8
2
votes
1 answer
OpenOCD exit on breakpoint
I'm developing an application on an STM32F042.
I drive everything from a makefile, including my unit tests.
I use OpenOCD and ST-LINK to flash the target.
My unit tests run on the host and on the target.
The host unit test driver returns 0 from…

iter
- 4,171
- 8
- 35
- 59
2
votes
2 answers
STM32F030F4P6 runs interrupt handler only when booting from flash. Resets when booting from bootloader
The code -
#include
void _delay_ms(unsigned int del) {
//Delay with systick
}
void sys_init() {
//Set Clock to 6 * 8MHz crystal
}
void TIM14_IRQHandler(void) {
//If UEV was generated, toggle PA4 (Connected to LED)
…

Shahe Ansar
- 314
- 2
- 12
2
votes
0 answers
STM32F0 ADC in DMA Mode and EOC/EOS Interrupts
According tot the datasheet, the ADC generates a DMA request at the end of each conversion:
Does the ADC use an interrupt to generate this DMA request? Or is it done in the background using hardware automatically? I am asking this today because in…

Ken Lin
- 986
- 1
- 8
- 22
2
votes
1 answer
ARM GCC compiler "buggy" conversion
Problem
I am working with flash memory optimization of STM32F051. It's revealed, that conversion between floatand int types consumes a lot of flash.
Digging into this, it turned out that the conversion to int takes around 200 bytes of flash…

drkr
- 186
- 2
- 7
2
votes
1 answer
** OpenOCD init failed ** While using VS Code, platformio, stlink v2, and stm32 f030r8t6
(I put links in my question but I will explain in as much detail what my problem is so that you won't need to use the links, they are just for reference)
Hi,
I am trying to follow this youtube tutorial…

Bzeeno
- 23
- 1
- 4
2
votes
1 answer
STM32F0 TIMx prescale settings has no effect on update interrupt
I generated my code from STM32CubeMx and wanted to generate a update event every 1µs. I work with the internal clock at 48MHz, which should be with Prescaler:0 and Autoreload:47 result to 1µs.
I use a STM32F030 with TrueStudio V.9.0.0
generated code…

K0ertis
- 121
- 1
- 9
2
votes
1 answer
Using external interrupt on port B of stm32f030
I am using STM32F0308 Dicovery Board. I want to use external interrupt on PIN11 of PORTB. Problem is that I am not able to invoke the PORTB. Microcontroller is still uses PIN11 of PORTA. I know that pins of ports are clubbed together but I am…

Vikas Singh
- 21
- 2
2
votes
0 answers
Reading quadrature encoder output using NUCLEO-F072RB
I am using the NUCLEO-F072RB board in conjunction with X2C to read the output of a DC motor encoder, in order to measure its speed. According to the datasheet, using timers TIM2 and TIM3 it is possible to perform this read. For that purpose, I…

Nicolás Arias
- 1,053
- 1
- 12
- 29
2
votes
1 answer
STM32 Hardfault exception when writing globally declared buffer to FLASH
I am trying to write a bootloader application for STM32F030x8. I write the bin file to the controller via UART. when data is present on the UART RDR register, I put it in a globally declared buffer of 1Kb. Everytime the buffer is full, I am trying…

BertVano
- 219
- 3
- 11
1
vote
0 answers
Re-locating App in FLASH not working, entry point unclear (STM32F072)
I'm currently trying to understand how bootloaders work and wanted to create a small example for this.
My first step was to just re-locate my application code into a different area of the FLASH for my STM32F072RB Nucleo board.
But here I already…

Evox402
- 111
- 1
- 13
1
vote
0 answers
how do i send data from an stm32f0 to an max7219 dot matrix to make the pong game
dear helpers and coding gods, i want to make an pong game with spi connection to the dot matrix on a stm32f0 with the program aplication keill, and the hardware, MAX7219 Dot matrix module 8x8 Communicate with SPI1 communication to the 8x8 LED…

jmneedshelp
- 11
- 3