STM32 F1 are entry-level ARM Cortex-M3 MCUs from ST Microelectronics.
Questions tagged [stm32f1]
144 questions
0
votes
0 answers
STM32F105RB GPIO PB8 PB15 PB9 and PB3 Toggles together
please.
I am having weird behavior with STM32F105RB (64pins) board, the issue is on GPIO PB8, PB15, PB9 and PB3.
GPIO_InitTypeDef BOARDPINS;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,…

avong
- 21
- 4
0
votes
0 answers
How to send CAN communication to Stm32f1 MCU?
I'm trying to CAN transmit on my target board.
My board is not to send CAN message on stm32cubeide but I confirmed that my board send CAN message on mbed.
How can I send CAN message on stm32cubeide??
I intended CAN baudrate 500kbps, sampling point…

sml
- 1
0
votes
0 answers
Reading serial data using interrupt
I am trying to read a series of bytes from the serial pin, the interrupt is being called but I only read the first byte of the data each time.
I am using the library stm32f1xx-hal.
The idea is to store the data I receive in a buffer to use it…
0
votes
0 answers
Warn : GDB connection 1 on target STM32F103C8Tx.cpu not halted undefined debug reason 8 - target needs reset in Linux Ubuntu 21.10
I'm using STM32CubeIDE on Kubuntu Linux and when I want to program my microcontroller it gives me this error
Image
Error while trying to upload the code
CubeIDE console error
Open On-Chip Debugger 0.11.0+dev-00443-gcf12591 (2022-02-09-13:30) [ST…
0
votes
1 answer
how to send many float from stm32f103 to PC through UART?
I want my PC to receive float value from the microcontroller so as to plot graph based on the value. I already can let microcontroller to receive value from PC. I am using union decode the float into bytes.
My union in both microcontroller and PC…

wps
- 39
- 5
0
votes
0 answers
stm32f103c8t6 timer interrupt not working
I am trying to use timer interrupts to assign outputs directly to one specific foot of the chip using stm32f103c8t6 bluepill. What I want to achieve is to toggle the LED (connected to PC13) on and off by interrupt functions. But the result turns out…
0
votes
1 answer
STM32 problem with loading value to memory
I am trying to turn led on STM32F103 blue pill's PB1 port using bare metal assembly code.
For the first step I want to initialize stack pointer in reset_handler subroutine and then execute LED related code. Enable RCC on APB2_ENR register, configure…

ussrback
- 491
- 2
- 8
- 22
0
votes
1 answer
STM32F1 problem receiving duplicated first byte on USART
I have a problem with an STM23F103 I'm using UART to transmit and receive data.the data is sent and another board replies. I can see the communication with a Logic Analyzer which looks fine on it.but the received data on STM32 have the first byte…

Jwdsoft
- 431
- 3
- 9
0
votes
2 answers
SPI Communication between STM32 and ADXL345
I am trying to use the SPI communication to read data from the ADXL345 accelerometer. I configured the different pins and SPI in master mode, and tried reading the x, y and z axis accelerations.
My issue is that the SPI readings are always 0. I…

zalix
- 1
- 2
0
votes
2 answers
Jitter Problem on Sending Clock Signal over Serial on STM32F103 (Bluepill)
i would like to generate a Midi Clock signal with UART on a stm32f1 bluepill board. The Signal basicly just needs to send one byte (0xF8) at a maximum frequency of 128 hz to a 31250 bps serial interface. I created a minimal example using one of the…

Lut Ze
- 123
- 2
- 10
0
votes
2 answers
Re-program STM32F102 trouble
I am trying to make some custom firmware for a MIDI controller (AKAI LPD8).
There is an STM32F102R8T6 chip in the unit.
I am trying to reach it with a programmer to wipe it, but it seems to not be responsive.
Some information and thing I have…

pynting
- 1
- 1
0
votes
1 answer
How to properly set the SysTick Timer?
I'm having trouble generating specific time for the STM32F103C8 (Blue Pill). Apparently, the AHB main clock is set to 72 MHz. However, regardless of whether the SysTick clock source is AHB or AHB/8, the time always turns out to be 10 times…

wrha
- 1
0
votes
1 answer
stm32 external interrupt pin mode changing
I am designing an ESC with stm32f103c8t6. In my design I am using BEMF circuitry to detect phase of the motor. From BEMF circuitry (with comparator LM339) I am reading 3 interrupt pins but when code running I need to change the pinmode (like rising…

Arrhythmic One
- 1
- 1
0
votes
2 answers
how to send data to EEPROM from an interrupt routine
I have an EEPROM AT24C256. I want to write to this EEPROM from Timer Interrupt routine. But when I try, STM gets stuck. It's not going on for other code rows.
void TIM3_IRQHandler(void)
{
//read adc
adc_value = HAL_ADC_GetValue(&hadc1);
…

Melih
- 35
- 7
0
votes
0 answers
Sending AT command to esp8266 using stm32F103 through usart
i'm trying to communicate with a Wifi module (esp8266) using STM32F103, on keil IDE.
As described in the schematic :
i want making my stm32 send AT command to esp8266 through usart1 (Tx1), and getting the esp response (Rx1), then display the esp…