STM32 F1 are entry-level ARM Cortex-M3 MCUs from ST Microelectronics.
Questions tagged [stm32f1]
144 questions
0
votes
0 answers
STM32F103 keeps on rebooting
I am using STM32F103. I observed one of my boards keeps on rebooting. I flashed the same code into another board and everything works fine on another board.
I erased and flashed the faulty board as well but doesn't help. Is it possible by chance to…

dev_eng
- 126
- 1
- 12
0
votes
0 answers
STM32F103C8 resets after a couple of hours
I have an STM32F103C8 board and my program is switching the GPIOB1 with frequency of 500KHz.
At first, microcontroller runs the program perfectly but the main problem is that MCU resets after a couple of hours and stays at reset mode until I…
0
votes
0 answers
stm32F1 DMA freezes when using 2 UARTs without any error
I am interfacing TFmini S LIDAR with nucleo STM32F103, I am using 2 UARTS, uart1 and uart3 to receive LIDAR data. I am using DMA for that. LIDAR frequency is 1000Hz and data length is 9 bytes. uart 1 and 3 baudrate is set to 256000. I am using…

Schrodinger95
- 25
- 1
- 4
0
votes
1 answer
C argument of type * is incompatible with parameter of type *
I'm trying to make HID on STM32 board. But i stuck with next problem: I don't understand where my mistake, i passing a pointer to struct which contains data for report function, but when i try to compile code i get next messsage: argument of type…

Pablo
- 9
- 1
0
votes
1 answer
Problem programming and running STM32F103C8
I'm facing an unexpected problem with stm32f103c8. I'm programming the chip and after reset, it starts to run the program, but after a few seconds the microcontroller getting mixed up and stops running the program. After that when I try to reprogram…
0
votes
0 answers
Error "Not enough RAM 'ucHeap' for STM32F103
i remade an empty project with Freertos STN32F107 for myself, but now there was a problem in the form of "Not enough RAM 'ucHeap'". The trick is that if you set the value configTOTAL_HEAP_SIZE ((size_t) (17 * 1024)) the error "Not enough RAM…

user374707
- 1
- 1
0
votes
1 answer
PWM Signals not generating correctly on stm32 f767zit
I am working with an stm32 f767zit and I am trying to generate PWM signals to control servos, but they are not generating correctly. I followedd the tutorial from here Deep Blue Embedded and was able to generate the PWM signals just fine on an stm32…

Andrew Majors
- 1
- 1
0
votes
1 answer
stm32f1 RTC Alarm
I'm using stm32f103RBT6 and I want to set RTC alarm event every one hour by using codes below
RTC_Alarm_Time.Alarm =…

tariq
- 13
- 3
0
votes
1 answer
Cortex-M3 SysTick double interrupt
I'm creating a rtos system, with system tick (1ms) for real-time and trigger pendsv-which used for switch task. Priority of systick and pendsv same as 0 (group = 16; ). PendSv also trigger by when…

Thạch Duy
- 1
- 2
0
votes
1 answer
STM32CubeIDE and OpenOCD: Error: timed out while waiting for target halted
Hardware/IDE Context:
Part/board: Genuine STM32F103C8 (BluePill)
Programmer: ST-Link V2
IDE: STM32CubeIDE 1.5.1 on fully-updated Windows 10
Flashing utility/debugger: OpenOCD
In attempting to build/flash a simple PC_13 LED blinky program to my…

ifconfig
- 6,242
- 7
- 41
- 65
0
votes
0 answers
STM32F103 RTOS Delay in between threads
I am creating a project using STM32F103C8T6 controller in which I am using RTOS. I have 4 threads in it. The functions in each of these threads experiences a significant amount of delay (eg: if any sensor is connected for the value to be read from…
0
votes
1 answer
Setting GPIOC->ODR[13] = 1 is not tuning up the user LED, rather it is turned up by leaving it to default (i.e. 0). [STM32F103C8T6 (blue pill)]
I have recently started learning bare metal embedded development using CMSIS Core framework. I do not understand why the user LED is not turning on by setting the ODR[13] to 1 but rather it is turned on by leaving it to default i.e. 0.
Here is the…

Cogno-Slayer
- 13
- 3
0
votes
0 answers
stm32 pin assignment in Arduino IDE
I have a multi-cooker which is not working so I decided to use its PCB for my project. It has an STM32f103c8t7 chip on it. some LEDs and a buzzer and a display, which I may not need though. I have found the connection between chip pins and elements…

M.Navidi
- 113
- 1
- 10
0
votes
2 answers
why __attribute__((weak)) in IAR can't compile?
I am working on STM32F1 on IAR, I write a weak function using
__attribute__((weak))
main.c
#include "tmp.h"
#include
#include
#include
int testfunc1(int a)
{
return true;
}
int main(void)
{
while (1)
{
…

Olly
- 23
- 6
0
votes
1 answer
How to compile StdPeriph Library examples for BluePill?
I am trying to compile the example with GNU arm eabi gcc: and I got this from the compiler:
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
I have then added -DSTM32F10X_MD to the command line…

exebook
- 32,014
- 33
- 141
- 226