Questions tagged [stm32f1]

STM32 F1 are entry-level ARM Cortex-M3 MCUs from ST Microelectronics.

144 questions
0
votes
2 answers

stm32F1 dma about spi transmit data amount in circular mode

I am currently learning STM32F1xx using DMA and SPI with circular mode. My goal is let the STM32F1 to send out same data repeatedly. I am using cubeMX generated code, setting up the SPI-DMA with circular mode and using HAL_SPI_Transmit_DMA() to…
MinShu Huang
  • 53
  • 1
  • 2
  • 12
0
votes
0 answers

Can't Measure voltage of battery for solar power system

I want to measure the voltage battery by ADC of STM32F103C8T6 using resistor divider. When the system starts, the value from STM32 is 6.35V but when the voltage battery reaches 6.45V the value of STM32 doesn't change. I don't know about that.…
0
votes
0 answers

Controlling WS2812 LED with PWM and DMA - STM32F1

A try to controlling WS2812 LEDs using timer PWM and DMA. I almost succeeded but now I have a problem that I can't solve. As You can see on the image the first two LEDs glow green but another LEDs glow reed. But all of them should glow green.…
Damian U
  • 371
  • 2
  • 19
0
votes
0 answers

MCP2515 library for stm32fxx

I am wondering with any stm32f10x or stm32f30x microcontrollers. Now, i am working on canbus projects with mcp2515-spi module, can anyone help me to find a proper library?
0
votes
0 answers

commands after getting ATR from smart card

I am working with stm32f103 and st8024 as reader to communicate with smart card. my problem is after I got ATR, I can`t get the response from HAL_SMARTCARD_Receive(&hsc1 , response1 , sizeof(response1) , 1000); above function always returns…
mohammad.z
  • 47
  • 4
0
votes
0 answers

baud rate of st8024 when working with stm32f103

I am working with stm32f103 and I want to work with st8024 and smart card. but with hsc1.Init.BaudRate = 115200; , I do not receive 0x3b or 0x3f in TS of ATR. /* USART1 init function */ static void MX_USART1_SMARTCARD_Init(void) { …
mohammad.z
  • 47
  • 4
0
votes
2 answers

STM32F103: Is timer can interfere with uart?

I have a simple program, which receives data from UART interface and driving WS2812b led strip. So, I'm using USART3 to receive data (in IRQ mode) and T3C2 (timer 3, channel 2) to drive LEDs. Here is the code: https://hastebin.com/rucumovero.cpp If…
Tutankhamen
  • 3,532
  • 1
  • 30
  • 38
-1
votes
1 answer

EXTI Interrupt gets thrown non-stop (stm32f1)

I'm trying to simply turn of an LED with a Button, using a falling edge EXTI Interrupt. Unfortunately, the LED is blinking without touching the button, debugging with gdb also shows, that the ISR is called repeatedly. As I tested the LED (PA5) and…
some_user
  • 179
  • 11
-1
votes
1 answer

Why USART2 Send a Garbage Value?

Hello i'm using stm32f103c8 and i'm trying to use usart2 but it does not work . when i'm using USART1 with the same configuration of USART2 it works with me well . but USART2 send garbage to the PC terminal can someone help me to solve the problem…
1 2 3
9
10