STM32 F0 are entry-level ARM Cortex-M0 MCUs from ST Microelectronics.
Questions tagged [stm32f0]
124 questions
0
votes
0 answers
Use DWT library with STM32F091
So I'm trying to get a rough measure of the execution of a certain function.
I'm trying to use the DWT library with the code
CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
DWT->LAR = 0xC5ACCE55;
DWT->CYCCNT = 0;
DWT->CTRL |=…

NicoCaldo
- 1,171
- 13
- 25
0
votes
1 answer
STM32F031 - Code runs in line-by-line debugging but not otherwise. Some functions only run if defined as macros
I am writing code for the STM32F031K6T6 MCU using the Keil uVision. The IDE information is shown in the image below:
enter image description here
The C/C++ options for Target are configured as shown here:
enter image description here
I started a new…
0
votes
0 answers
stm32f030k6 printf float problem in stm32cubeIDE
enter image description here
errore: printf("Temp : %5.2f", Temp);
compile error
IDE : STM32CUBEIDE
MICRO : STM32F030K6t6

Masoud
- 1
- 1
0
votes
0 answers
error:that the header files are not present in the library files of STM32f0 standard peripheral driver files
I installed the STM32F0 stand_perip driver library and I wanted to add the driver files to my project on keil software. I did include the header and C files of the STM32F0 stand_perip driver library but this error popped that many header files are…

Sakshi
- 1
- 2
0
votes
3 answers
STM32f sending uint16_t via uart
im trying to send uint16_t data with this code
uint16_t ADCValue;
uint8_t lowerMessage;
uint8_t upperMessage;
uint8_t message[2];
while (1)
{
ADCValue = 2375;
lowerMessage = (uint8_t)ADCValue;
upperMessage = (uint8_t)(ADCValue >>…

aspq
- 33
- 1
- 5
0
votes
0 answers
Issue With I2C Library
I'm not sure someone can help me, but I try.
I'm working with an I2C library created by a ex collegue and I found some problems with that library.
Sometimes, during the communication with a CCS811 sensor, the communication stuks inside a while…

Andrea
- 89
- 9
0
votes
1 answer
STM32 Uart Bridge
I am workin in a proyect where i need to make a bridge between to uart's. I am using the STM32F072CB Basically, all the data that I receive to the uart1 rx must be sent by uart2 tx. In the same way, what I receive in uart2 rx I must send through…

Ignacio Islas
- 3
- 1
0
votes
1 answer
STM32F0 with ADC and DMA with Renode
I'm trying to run an application on Renode that uses ADC and DMA for the STM32F030F4P, I created a stm32f0.repl file with the dma and adc as follows:
dma: DMA.STM32LDMA @ sysbus 0x40020000
[0] -> nvic@[9]
adc: Analog.STM32F0_ADC @ sysbus…
0
votes
1 answer
Restore stm32 discovery kit to Factory Condition
I have a stm32f072 discovery kit to use as a debugger for my project. I accidentally programmed the MCU of that discovery kit and now when I try to debug with IAR embedded workbench it stuks in busy without writing the falsh. The four LEDs are…

Andrea
- 89
- 9
0
votes
0 answers
Problem with selfmade bare-metal startup procedure for STM32F072-Nucleo Board
I'm currently trying to get a better understanding of what is happening after power-on until I reach the main() function of an embedded project. Furthermore I'll try to understand how startup code and linker scripts are incorporated during build and…

Evox402
- 111
- 1
- 13
0
votes
1 answer
second use of function cause to stop program
I create function for manipulating ports for drive 1602 LCD.
#include "delay.h"
#include
#include "stm32f0xx.h"
#ifndef LCD1602A_H_
#define LCD1602A_H_
#define DATA_PORT GPIOA
#define CONTROL_PORT GPIOA
…

peyman khalili
- 167
- 14
0
votes
1 answer
Program stop working as I activated ADC interrupt on STM32
I wrote code for generation square pulse. Everything works fine till I activate ADC Interrupt by NVIC commands. Is ADC IRQ Handler wrote correctly?(I am specious on Handler). ADC Sets on continuous mode by only one channel is using.…

peyman khalili
- 167
- 14
0
votes
0 answers
STM32F042K6: region `FLASH' overflowed by 1212 bytes
I am trying to program STM32F042K6 nucleo using CubeIDE and STM32 HAL but the compiler throws an error:
region `FLASH' overflowed by 1212 bytes.
Here is the exact console output:
09:55:03 **** Incremental Build of configuration Debug for project…

Kyle
- 1
- 1
- 1
0
votes
1 answer
How to debug stm32F0 Can RX
I have a custom stm32F0 board attached over can to a raspberry pi with a CAN shield, terminating resistors and everything. I can initiate a message on the STM32F0 and see it on the RPI side, but not vice-versa. Putting an oscilloscope on the can…

Ivan Viti
- 271
- 2
- 11
0
votes
1 answer
STM32 HAL UART receive by interrupt cleaning buffer
I'm working on an application where I process commands of fixed length received via UART.
I'm also using FreeRTOS and the task that handles the incoming commands is suspended until the uart interrupt handler is called, so my code is like this
void…

EserRose
- 142
- 8