STM32 F1 are entry-level ARM Cortex-M3 MCUs from ST Microelectronics.
Questions tagged [stm32f1]
144 questions
0
votes
1 answer
Can STM32F1 (as part of MXChip) support CAN Bus
Background
I'm very new to electronics/IoT dev. I'm trying to create a solution to be able to read my wife's Car's CAN Bus signal (messages) and store it to an SD card. I hope to analyze the data and build a dashboard based on the car's…

Josh_BI_UK
- 87
- 5
- 7
- 16
0
votes
0 answers
Is it possible fo brick an STM32 board through some wrong configurations in STMCubeIDE during burning/debugging?
I have been using my STM32 Blue Pill with GCC Cross Platform tools with no problem. I used ARM assembly to write a blink program, connected the blue pill to ST-LinkV2 using SWD and connected the ST-LinkV2 to my computer. On my computer, I use…

Hatilima
- 1
- 1
0
votes
0 answers
Trinamic TMC2209 STM32 UART not reading from device
I've been struggling for ages, finally caved and asking for help now.
There are very little resources on STM32 for this driver that I have seen.
I can use the device with the STEP/DIR interface but I want to be able to do the more advanced things…

Spider999
- 135
- 1
- 8
- 17
0
votes
1 answer
Access to register of unclocked peripheral at 0x40000000 cause BUS_FAULT [U2_CM3CORE]
I'm working with STM32F103C6, HCSR-04 Ultrasonic sensor and LCD display.
I simulate that in Proteus Professional 8, when I activate Timer 2 in STM32, there are big problems with frequency, frequency of LCD display = 250kHz, frequency of STM32 =…

e Res
- 101
- 1
- 10
0
votes
0 answers
Reading value from HC SR04 in LM016L
I'm programming STM32F103C6, and I'm using Keil Microvision with Proteus Professional 8, I have problem with reading value from HC SR04 Ultrasonic sensor in LCD(LM016L), the code is below
#define TRIG_PIN GPIO_PIN_9
#define TRIG_PORT GPIOA
#define…

e Res
- 101
- 1
- 10
0
votes
2 answers
HAL_UART_Receive_DMA works only once. How can I fix it?
I am working with STM32F103RB board and I want to simply echo everything I receive from my computer via serial port back to that port. I must do it using UART and DMA. I've set up DMA on USART2_RX with CubeMX in normal mode. My problem is that…

Herman Shpryhau
- 39
- 9
0
votes
0 answers
STM32F103C8-EEPROM (AT24C04) I Can't Write/Read To EEPROM
I'm a beginner at stm32. I'm currently using STM32F103C8 and want to store WiFi Config in EEPROM. Thus I am using AT24C04 EEPROM. But I can't write or read any value in that EEPROM. I couldn't find any problem. I checked the connections code etc.…

Kerem
- 1
- 1
0
votes
0 answers
Can i transform stm32f4** 's function(Flash_Erase) to stm32f1** function?
I have a little project and I need to store wifi config in stm32 but I don't want to use EEPROM so I decided to use STM32F103C8's flash memory.
https://www.youtube.com/watch?v=Qt3T7ij9qYY in this video this guy uses STM32F4** series. At blue arrow…

Kerem
- 1
- 1
0
votes
0 answers
Is there a way to connect several usb device(f1) to a usb host(f4) via a usb hub with stm32?
good day community, i am working on a project which requires me to communicate with several blue pills(f1s) as USB device CDC(virtual com ports) using a USB hub while my f4 acting as USB host, all in USB Full Speed.
I have successfully tried…
0
votes
1 answer
separate stack for IRQ routine
In an embedded ARM project using a STM32f1 controller, I started to use a coroutine framework (https://github.com/xhawk18/s_task). It works well and simplifies my application.
However, each coroutine has its own stack, and I need to size the stack…

user52366
- 1,035
- 1
- 10
- 21
0
votes
0 answers
Keil 5 doesn't build empty project
After reviewing a lot of the same type of video instructions, I decided to build my first project in Keil. Downloaded the library for the corresponding controller (STM32F103C8T6). Connected CMSIS-Core and startup, added main.c to the project. As a…

Ping-247
- 21
- 3
0
votes
1 answer
how toggle value of enum variable type in c++
I code in ic stm32f103vet for press button to turn on/off the led
#include "stm32f10x_rcc.h"
#include "stm32f10x.h"
#include "misc.h"
void GPIO_Config(void);
BitAction BitVal;
int main(){
GPIO_Config();
GPIO_SetBits(GPIOA, GPIO_Pin_6);
…

tung vu
- 1
- 1
0
votes
1 answer
HALL Low Level Alternate pull push
I want to Initialize and send a single int using UART in blue_pill (STM32F10C8). Manual ask to set GPIO mode on ALTRN_PULL_PUSH in blue_pill. But Low level HALL library dosn't have such a option. Here is my code for initializing the UART:
void…

user1482636
- 11
- 5
0
votes
0 answers
lwIP on STM32F107 work only with debugger (stm32cubemx)
I have STM32CubeMX 6.6.1 and keil 5.31
I wrote a simple program and it works properly.
After that, I enabled the ETH option from the Connectivity section and set the PHY to DP83848
I have also set the mode option to RMII and the Master clock Output…

GBg
- 223
- 4
- 12
0
votes
1 answer
Assigning unsigned short to an unsigned char bit field makes STM32F1 reset
So I came across this issue without understing why.
I'm reading an EEPROM portion of 16 bit. On the first ever read of the EEPROM, all the cells are 0xffff. This portion of memory will store a flag so, basically 1 bit.
This flag is stored into the…

NicoCaldo
- 1,171
- 13
- 25