STM32 F0 are entry-level ARM Cortex-M0 MCUs from ST Microelectronics.
Questions tagged [stm32f0]
124 questions
1
vote
1 answer
IWDG not stopping on debug when CAN Receive interrupt triggered
I'm having a significant problem debugging my board with CAN traffic. Whenever the debugger is paused, and a CAN message is received, the independent watchdog is being reset. As far as I can tell, I'm disabling that peripheral on debug correctly,…

sonic1015
- 31
- 4
1
vote
0 answers
smartcard reader with stm32f072 without ST8024
ST give the example of CCID example using ST8024.
https://www.st.com/en/embedded-software/stsw-stm32092.html
I am trying CCID device without ST8024 only with smartcard interface of STM32F072.
I connected ISO7816 pins such as followings
The pin…

sehon song
- 45
- 8
1
vote
1 answer
RM0091 interrupt priority > 4
in RM0091 I found Table36 which defines priorities > 4 (I believe that for CortexM0 maximum interrupt priority = 3). Does anyone know what these numbers are?

Michał Zych
- 149
- 1
- 8
1
vote
0 answers
enable can interrupt missing in STM32CUBEIDE
In every guide I see (e.g. https://www.dailyduino.com/index.php/2020/06/01/stm32-can-bus/) it states that I need to enable can interrupts by going (on the ioc) to pinout and configuration-> connectivity -> CAN -> NVIC Settings -> enable can…

Ivan Viti
- 271
- 2
- 11
1
vote
1 answer
Generic option bytes on STM32F4
I'm currently tuning some code written for an STM32F070, where we use one byte on user option byte to keep some flags between Resets, using:
FLASH_ProgramOptionByteData(ADRESSE_OPTION_BYTE_DATA0, status_to_store);
Reading carefully the datasheet…

C. MARIN
- 95
- 9
1
vote
0 answers
STM32 TSC Slider_3 Ch_Capacitive Touch_STM32F072 Discovery_ Resolution and Calculation of Position in the range of 0...255
To understand capacitive touch / TSC library based application, I’ve been studying the polling based sample code given in AN5105 for STM32F072B-Disco evaluation board. After tweaking the code to customize for the application, I’ve a few questions as…

user116646
- 11
- 2
1
vote
0 answers
correct use of ADC by writing registers directly?
I am trying to use the ADC without using HAL (except for in the setup) on a STM32F031K6, using cubeIDE. Im using the ADC in discontinuous mode - as far as I can tell, the sequence of events should be
ADC is setup, then enabled with ADEN
ADC start…

prune
- 77
- 1
- 9
1
vote
0 answers
STM32F030x sends ST20033000022056000063227OV every 5 seconds and cannot be programmed
I built 2 baremetal development boards, both using the STM32F030K6T6. The MCU on one board can be programmed as indicated in the datasheet using the boot pin selection and via USART pins PA14 and PA15. The second does not respond to flashing command…

Game Instance
- 11
- 2
1
vote
2 answers
Unable to SET or RESET GPIO PA12 on STM32F030
I am having some trouble trying to SET or RESET one of my GPIO pins on the STM32F030.
I'm using the STM32F0xx_HAL_Driver and I initialize GPIO PA12 like this:
GPIO_InitStruct.Pin = GPIO_PIN_12;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
…

Ruben van Leeuwen
- 66
- 8
1
vote
1 answer
STM32G0 problems with Timer Interrupt PWM doesnt work correctly
I want to use a stm32 to generate a PWM-signal, but i have to be able to change the duty cycle after every signal.
My problem is, if i try that it doens't work correctly. It sendes 3-5 pulses with the same duty cycle and after that it changes the…

Allinev
- 21
- 4
1
vote
1 answer
STM32F0. How do I assign values from variables in RAM to a separate variable?
I am doing a project on a bootloader for an STM32F051, which jumps to an application in a different memory location. This part works fine. The issue I'm having is that I've defined a location in FLASH to place variables for the Application. These…
1
vote
2 answers
Consumption of SRAM for cortex-M3 and cortex-M7
I migrate from M3 to M7. M3 used STM32F103VE and has 64 KB of SRAM. The M7 is STM32F746ZG and it has 240KB of SRAM. I moved most of the M3 code to M7. Additional LWIP is being used for the Ethernet function in M7. But I found that heap memory was…

Hans
- 398
- 2
- 4
- 14
1
vote
1 answer
STM32CubeIDE stuck on SysTick_Handler
I created a new STM32CubeIDE project for the STM32F030CC mcu. I added a GPIO output port on PA8 to enable/disable an LED. Now I tried to delay the toggle by calling HAL_Delay. But my problem is, that the interrupt SysTick_Handler does not get…

Pascal
- 2,175
- 4
- 39
- 57
1
vote
1 answer
Jump to System Bootloader from User Code with STM32F042K6
EDIT:
Inorder to devan's solution, i manage to jump system bootloader from user code with STM32F042K6.
boot.h
/* boot.h */
#include "stm32f0xx_hal.h"
#if defined(STM32F042x6) || defined(STM32F048xx)
#define SYSTEM_MEMORY_ADDRESS …

yvzsaglam
- 13
- 1
- 4
1
vote
4 answers
Place bootloader after the Application in Flash Memory
I wrote a Bootloader for my STM32F042k6 board that functions pretty well. On System Reset the Bootloader is launched and can later jump to the Application. That was great:). Now I wish to do the opposite in my Flash. I wish Launch my Bootloader at a…

McSteve
- 13
- 3