STM32 F0 are entry-level ARM Cortex-M0 MCUs from ST Microelectronics.
Questions tagged [stm32f0]
124 questions
11
votes
3 answers
How can I change the start address on flash?
I'm using STM32F746ZG and FreeRTOS.
The start address of flash is 0x08000000. But I want to change it to 0x08040000. I've searched this issue through google but I didn't find the solution.
I changed the linker script like the…

Hans
- 398
- 2
- 4
- 14
11
votes
8 answers
Arduino millis() in stm32
I am trying to port some Arduino library to stm32. In Arduino, millis() returns the number of milliseconds since boot. Is there an equivalent function in stm32? I am using stm32f0 MCU.
user6064424
8
votes
1 answer
EEPROM emulation on stm32 using HAL drivers
I am trying to emulate EEPROM on stm32f0. There is an application note provided by STM.
In the sample main.c,
int main(void)
{
/*!< At this stage the microcontroller clock setting is already configured,
this is done through SystemInit()…
user6064424
5
votes
1 answer
STM32CubeIDE Break at address "xxx" with no debug information available, or outside of program code
I'm busy bring up some new hardware with a STM32F030C8 mcu. I'm using the STM32CubeIDE with gcc. I'm very new to microcontroller development and this is my first project with ST and their tools.
This is a very basic program that just triggers a…

TJ Snyman
- 167
- 1
- 2
- 6
5
votes
4 answers
Calibrating STM32 ADC (VREFINT)
I'm trying to read VDDA on an STM32F042 microcontroller. I'm getting unexpected results with VDD at 3.29V. I must be missing something fundamental.
output:
VREFINT=1917; VREFINT_CAL=1524; VDDA=2623 mV
VREFINT=1885; VREFINT_CAL=1524; VDDA=2668…

iter
- 4,171
- 8
- 35
- 59
5
votes
1 answer
External Interrupt triggered after setting pin
I'm trying to get the external interrupt running on a
Nucleo-F030R8
and hit a wall.
Everything is configured and runs just fine in step mode but when I'm connecting my board to another testboard with a simple jumper wire and run the same code, an…

Heiko Thober
- 47
- 4
5
votes
3 answers
Best way to add delay/do nothing for n cpu cycles
I need to add a delay into my code of n CPU cycles (~30).
My current solution is the one below, which works but isn't very elegant.
Also, the delay has to be known at compile time. I can work with this, but it would be ideal if I could change the…

gugelhüpf
- 85
- 2
- 10
5
votes
1 answer
Why does UART transmit interrupt fail to work in this case?
I am using stm32f0 MCU.
I have a simple UART echo code in which every byte received will be transmitted out. I tested that it works. Here it is;
uint8_t Rx_data[5];
uint32_t tx_timeout = 0;
//Interrupt callback routine
void…

guagay_wk
- 26,337
- 54
- 186
- 295
4
votes
3 answers
Cannot transmit every characters through UART
I am using stm32f0 MCU.
I would like to transmit every single byte received from the uart out of the uart. I am enabling an interrupt on every byte received from uart.
My code is quite simple.
uint8_t Rx_data[5];
//Interrupt callback routine
void…

guagay_wk
- 26,337
- 54
- 186
- 295
3
votes
1 answer
How HAL_UART_Transmit_IT manages sending data on serial on the STM32F091VB
I'm trying to understand how the STM32F091VB manages the send of data via serial protocol with the function HAL_UART_Transmit_IT()
At the moment I've a function called in the main() that creates the packet and send it via serial; it is something…

NicoCaldo
- 1,171
- 13
- 25
3
votes
1 answer
STM32 HID Keyboard
I am trying to use and STM32F0-disco as a keyboard for a Windows PC. I'm having a problem with the characters that are being printed.
The code below waits until the onboard button is pressed then should print the three characters once.
/* USER…

rosmdgl
- 31
- 1
3
votes
3 answers
HAL_SetDate sets the year to wrong value
I'm using STM32F030RCT6 with CubeMX. Device is a datalogger and RTC is the main thing that cannot fail. On Errata Sheet there is something about RTC Shadow Register.
I configured CubeMX to not generate MX_RTC_Init() function and it has been working…

sbtek
- 33
- 1
- 8
3
votes
2 answers
Individually read distinct inputs with STM32F0 ADC
STM32F072CBU microcontroller.
I have multiple inputs to the ADC and would like to read them individually and separately. STMcubeMX produces boilerplate code which assumes I wish to read all of the inputs sequentially, and I have not been able to…

ctag
- 574
- 2
- 4
- 15
3
votes
1 answer
STM32F072RB does not receive/send data over SPI in slave mode
I am using the
STM32F072RB
uC to receive and transmit data over SPI2 in slave mode with the following configuration:
CR1 = 0x0078
CR2 = 0x0700
AFRH = 0x55353500
MODER = 0xa2a0556a
The register APB1ENR is also properly configured.
The current…

Pika
- 51
- 7
3
votes
2 answers
Right formula for calculating temperature sensor using STMF401RE Nucleo?
I'm using STM32F401RE Nucleo board to measure the ambient temperature. After the sampling process, I receive a digital value from ADC_CHANNEL_TEMPERATURE and I want to convert this digital value into C°. I searched on the internet for this and I…

BL_
- 821
- 1
- 17
- 23