STM32 F1 are entry-level ARM Cortex-M3 MCUs from ST Microelectronics.
Questions tagged [stm32f1]
144 questions
0
votes
1 answer
Software serial using ESP8266
I am transmitting the CSV file saved on SD card using STM32F103 on UART line to ESP8266, The file reading and UART transmission snippet is as below.
While loop of the STM32f103 for read/transmit file.
Using the Software Serial code on ESP8266 code I…

Naren2312
- 1
- 2
0
votes
1 answer
why is there a delay between (DR register written) and (data really showed) in UART on STM32F103CB?
I'm curious about the delay time between the title mentioned, I toggled an IO when I wrote data into UART->DR, the delay time varies from 3 micro seconds to 10x micro seconds
int main(void)
{
/* initial code generated by STMCubeMX */
…

Olly
- 23
- 6
0
votes
1 answer
why cannot open source input file "ARMCM3.h":? with ST-link and STM32F103ZET6
When I tried to build the following project with those code, the error happened like this !
#include
#include "stm32f10x_gpio.h"
#include "stm32f10x_rcc.h"
void LED_GPIO_Config(void){
GPIO_InitTypeDef…

RedRabbit
- 31
- 1
- 7
0
votes
1 answer
what is the the hardware fifo size of STM32f103CB and how to know whether the FIFO is empty or full?
As the title mentioned, I can't find relevant information in the datasheet.
I get some problem when using UART. I have two chips, the master chip transmits packages to RS485 Bus line, and the slave chip receives it then transmits the respond(UART1),…

Olly
- 23
- 6
0
votes
0 answers
STM32F103 using MISO pin when SPI in Half-Duplex mode
I'm using STM32F103C8T6 with SPI1 remapped and in half-duplex mode (MISO pin unused by SPI). I'd like to use MISO pin (PB4) for PWM generation by TIM3 remapped but I can not get it working while SPI1 is clocked.
So is there a way to use MISO pin of…

Yuri Vostrenkov
- 1
- 1
0
votes
0 answers
STM32F103CB timer not accurate
I'm new in stm32, I recently create a project to make a quick pulse on a GPIO pin every second, just to determine the time accuracy by the logic analyzer, however, I always get the time around 0.999,935s instead of one second, I tried everything I…

Olly
- 23
- 6
0
votes
0 answers
problem with using SPI with DMA on STM32F1
I have a problem with triggering NSS pin, when transmitting SPI with DMA.
I use a CubeMX to generate whole core of project.
Time before triggering NSS to low, and sending data(also between end of transmission, and NSS to high) is too long. How can i…

Sink
- 91
- 1
- 2
- 9
0
votes
0 answers
AC6 eclipse - problem with running an example blinker using libopencm3
I'm having a problem with testing example of code for STM32F103 from libopencm3.
I included a libopencm3 in directory with inc files, and added inc directory to "Path and Symbols". I get an error like no file or directory, even though i have file…

Sink
- 91
- 1
- 2
- 9
0
votes
0 answers
probleme with usart1 driver stm32F103RB on keil Uvision5
[debugging window][1]I have tried to print a message using USART1, the code is compiling but nothing is printed on the serial monitor, i have tried the same configuration ( except baud rate and clk enabling) on usart2 and everything works, this is…

Saâd Idrissi
- 1
- 1
0
votes
1 answer
STM32F10x writing uint8 value to gpio register over uint8 pointer
So I have to port code from a STM32F4xx device to a STM32F10x Device.
Everything went well and I made huge progress in no time. But then it hit me!
At one point in the software there is the following definition
#define BYTE_GPIO (*((__IO uint8_t…

Roman G.
- 3
- 2
0
votes
1 answer
STM32F103 chip keeps resetting about every 500ms
I wrote a simple blink program for a stm32f103rbt6 chip, but after a while I noticed that MCU is resetting constantly. When I check RCC-CSR register the PINRSTF flag is high.
but I didn't connect anything externally to NRST pin.
Has anybody an idea…

aygin
- 109
- 1
- 7
0
votes
0 answers
STM32F1 write/read flash memory, cortex M3
I need to write/read flash memory in my blue pill board (stm32f103c8t6) and I followed this tutorial https://www.youtube.com/watch?v=BKgh896Bj8Q&t=32s but I used Keil uVision 5 IDE and I had this error
" #error 167: argument of type "uint32_t" is…

Juliane
- 31
- 1
- 2
- 5
0
votes
2 answers
HAL_CAN_ERROR_PARAM with STM32f103c8t6 Bluepill and can bus
I'm struggling to send messages via can bus with stm32f103 bluepill board and SN65HVD230 transceiver(terminated).
On the other end I use terminated usb can adapter, that works fine. CAN Bus speed is 500kbit/s.
Connections of SN65HVD230 :
PA11 ->…

Oleg Bovykin
- 61
- 5
0
votes
1 answer
I2C on Arduino Nano and on STM32 Blue Pill cannot detect all devices
I am having a strange issue with I2C devices.
I have used RTC (DS3231 + 24LC32 EEPROM), 1.3 inch OLED display based on SSH1106 and Si5351 clock gnerator on the same I2C bus. Their respective addresses are 0x68, 0x57, 0x3C and 0x60.
On Arduino,…

Jindrich Vavruska
- 627
- 8
- 20
0
votes
0 answers
Build make file arm microcontroller
We bought an ECU emulator made with stm32f103,
The source files are attached to them. But there is no file (BIN or HEX) and there is a make file that needs to be built, but when I tried to create it but it is not possible for me,
If you have…

Pooya
- 1
- 1