STM32 F1 are entry-level ARM Cortex-M3 MCUs from ST Microelectronics.
Questions tagged [stm32f1]
144 questions
12
votes
2 answers
How to use LL (low level) drivers in CubeMX STM32?
I'm creating a blank project for a STM32F103 microcontroller using STM32CubeMX. Using HAL drivers (the default), I got a blinky example working pretty quickly, but I'd like to try out LL (low level) drivers instead of HAL.
When I go to Project >…

Alex I
- 19,689
- 9
- 86
- 158
4
votes
1 answer
STM32 µC: SysTick delay doesn't work inside interrupt handler
So I wrote a program for the STM32F103C8T6 microcontroller in C, using the RTC (Real Time Clock) and a display module.
The RTC and the display both work fine, but when I try to update the display from inside the RTC interrupt handler, it doesn't…

Marcel
- 51
- 1
- 4
4
votes
1 answer
Setting nss_soft in Master (SPI)
I want to set the NSS pin to software mode in master using Nucleo STM32F103RB.
In the reference manual, they say,
In NSS Software mode, set the SSM and SSI bits in the SPI_CR1 register. If the NSS pin is required in output mode, the SSOE bit only…

Muzahir Hussain
- 1,009
- 2
- 16
- 35
4
votes
1 answer
Light the LED on STM32F103C8T6
I'm trying the light an LED (on port c, pin 13) on STM32F103C8T6. I'm not using IDE. Code:
#include "include/stm32f10x.h"
int main()
{
RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
GPIOC->CRH &= ~GPIO_CRH_CNF13;
GPIOC->CRH |= …

Олег
- 67
- 1
- 5
3
votes
5 answers
ST LINK Error (DEV_TARGET_HELD_UNDER_RESET)
So I'm using an STM32F103C8T6 board and it was working fine a few days ago but then tried to load a code with keil vision compiler these days and it showed this message STLINK Error(DEV_TARGET_HELD_UNDER_RESET).
After that using the…

Juliane
- 31
- 1
- 2
- 5
3
votes
1 answer
STM32 PWM DMA only works properly if I re-init every time I transfer, otherwise drops first few pulses
As the title says, if I don't include the call to HAL_DMA_Init(&hdma_tim2_ch1) in WS2812_DMA_Stop, my first transfer works fine but all subsequent transfers are missing the first (1-4, usually 3) pulses.
DMA settings:
hdma_tim2_ch1.Instance =…

Erik Johnson
- 858
- 1
- 7
- 29
3
votes
2 answers
Issue in transmitting data over UART in STM32F103C8 ('Blue Pill')
I am beginner in embedded systems. I am trying to write data on UART2 of STM32F103C8 (i. e., the Blue Pill board) and want to see the data in one of the ports of my computer using an FTDI adapter, which is connected to UART2 of the STM32F103C8…

Tushar Yadav
- 31
- 5
3
votes
0 answers
Could not set Option bytes! Please reset the target and retry
When I try to remove the Read Out Protection from stm32f103c8t6 I get an error
Could not set Option bytes! Please reset the target and retry.
Сonnect like this:
The problem is not in the controller, as it is completely new. Please tell me what…

dmitry klemenkov
- 203
- 1
- 9
3
votes
2 answers
Atollic couldn't verify ST device?
trying to program and debug STM32F103 (Bluepill) from Atollic TrueStudio 9.3 I got following message:
STMicroelectronics ST-LINK GDB server. Version 5.1.0 Copyright (c)
2018, STMicroelectronics. All rights reserved.
Starting server with the…

user505160
- 1,176
- 8
- 25
- 44
2
votes
2 answers
Can a STM32 microcontroller board be connected to AWS IoT core without its discovery kit?
I was searching in the net about connection between STM32 microcontroller and AWS IoT core, didnt come across any. I cam across articles where the discovery board of STM32 is used to connect to AWS IoT core. But I want a simple way to connect the…

coder1999
- 21
- 2
2
votes
1 answer
STM32F10x Flash size mismatch
I have a bunch of Blue Pill boards I'm re-animating (ye olde chippe shortage, y'know). Attacking them with stm32flash reports a flash size of 128 kBytes. On the other hand, 0x1FFFF7E0 contains 0x40, indicating 64 kBytes of flash as per ST's RM0008…

Matthias Urlichs
- 2,301
- 19
- 29
2
votes
1 answer
I2C alternative GPIO pins STM32F103C8T6
I'm using the Bluepill STM32F103C8T6.
Is it possible to configure the GPIO in such a way that the I2C can be enabled on other pins than:
PB6,7,8,9 for I2C1
PB10,11 for I2C2

shivani
- 23
- 4
2
votes
1 answer
How to Use the VREFINT in stm32f103 bluepill?
I'm not able to understand the use of VREFINT in stm32f103 board. Can anyone explain me how to get adc value in stm32f103 using VREFINT?
if(HAL_ADC_PollForConversion(&hadc1, 100) == HAL_OK)
{
adcVrefInt = HAL_ADC_GetValue(&hadc1);
…

Satyam Miri
- 33
- 1
- 6
2
votes
1 answer
Problem related to programing STM32 microcontroller with CAN bus
I am new to STM32 microcontrollers and CAN bus communication protocol and I am working on programing an
STM32F103xx
microcontroller.
I want to use CAN bus for transmitting data to another microcontroller from the same family.
I set up all the…

Ward Mas
- 43
- 2
- 6
2
votes
0 answers
My driver for ILI9325 on stm32f103 works in Atollic TrueStudio, but doesn't work in Arduino IDE
I'm trying to connect stm32f103c8t6 board with ILI9325 LCD display.
I have created a driver for it in Atollic TrueStudio and run it successfully. Now, I am trying to transfer the driver to the Arduino IDE, because here it will be easier to integrate…

Aliaksei Laurynovich
- 185
- 1
- 1
- 9