Questions tagged [stm32f1]

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

144 questions
0
votes
1 answer

STM32 ADC_DMA_UART data transfer

I am trying to implement the following scenario on STM32F103C8 Microcontroller. On PB11 and PB10 I've LED and Button connected respectively. LED is blinking continuously 500ms, but when button is pressed it blinks with 100ms delay 20 times. I have…
ussrback
  • 491
  • 2
  • 8
  • 22
0
votes
1 answer

Why doesn't HAL_UART_Transmit_DMA() work for serial ports on a Nucleo F103RB?

I have the following code, much of it generated by STM32CubeMX. (I've elided the huge number of generated comments, to make it readable.) volatile int txDoneFlag = 0; void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart){ txDoneFlag =…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
0 answers

IAR Embedded Workbench IDE - ARM 8.40.2 error

I am testing IAR in STM3210B-EVAL-OS-Probe-v5 mode. However, I am having a problem with the stm32f10x.h header file as follows. If you have this kind of experience, please help me how to solve it. Error[Pe256]: invalid redeclaration of type name…
jun130
  • 27
  • 7
0
votes
1 answer

how to use EXTI interrupt with HAL library for stm32f1?

i need to configure an exti interrupt on A1 port of my stm32f103 board. I create a template with stm32cubemx but i'm trying to configure interrupt manually because it's a new feature of my code that i've already wrote. i'm reading many topics but i…
0
votes
1 answer

STM32F103 SPI different pins does not work

I am currently working on a project with LoRaWAN technology using STM32F103C8T6 microcontroller. For LoRa I am using SPI in Full-Duplex Master mode (spi1 specifically) and in CubeIDE when you activate SPI1, automatically pins PA5, PA6 and PA7 are…
Miradil Zeynalli
  • 423
  • 4
  • 18
0
votes
0 answers

Accessing existing partitions on SDHC card using FatFs

I've been trying to transfer all my code from the STM32 Arduino library to ST Hal library, but I've been running into a problem with the SD-card. I'm using a SDHC sd card that has two partitions (one for factory reset and the other for normal…
Jipolie01
  • 15
  • 5
0
votes
1 answer

How to send ALT Codes from STM32F103 USB Device Application?

I have modified the STM32F1 USB HID Device Example generated by STM32CubMX from Mouse to a Keyboard and I am able to send characters to the host by sending the scan codes in the USB Reports. Now I want some special characters to be sent from the…
RishabhHardas
  • 495
  • 1
  • 5
  • 25
0
votes
3 answers

UART to UART Bridge STM32

Is there a simple way to bridge 2 U(S)ART Lines (USART1 & UART5 on STM32F107) in software? I need to forward the data incoming on USART1 to UART5 and back. Current MCU is STM32F107VCT7. The main reason I want to do that is to update a device over…
guenthernagel
  • 73
  • 1
  • 3
  • 14
0
votes
1 answer

please i try to know wich library i need ti handel NVIC and what i should do to declare NVIC_InitStructure

I am working on STM32F103 and the aim is to implement some libraries. When I declare NVIC_InitStructure it's underlined in red which means that Eclipse do not recognize it. I did declare before use it : NVIC_InitTypeDef NVIC_InitStructure; but it's…
LENTMAISUR
  • 13
  • 4
0
votes
2 answers

How to do Led blink with each port, using stm32 (stm32f103c8t6) boards and Adruino

I am completely new to this and willing to do a simple task using stm32f103c8t6 board, which is "led blink". Using ArduinoIDE and a simple circuit as shown in the picture, everything goes fine on port PC13. but as soon as I try other ports, it…
Mostafa Shahverdy
  • 2,687
  • 2
  • 30
  • 51
0
votes
2 answers

What is the bootloader used in STM32 bluepill boards?

Are the bootloaders used by Arduino blue pill is pre-installed bootloaders by chip manufacturer or are they built by Arduino? If so can I replace the Arduino bootloader(not USB bootloader) to the STM32 fresh chip(with manufacturer bootloader) using…
Yana
  • 87
  • 1
  • 1
  • 11
0
votes
0 answers

Si7021 Temperature and Humidity Sensor is Reading Wrong Sensor Values

I am using Si7021 silicon lab's temperature and humidity sensor and APD300 light sensor together in my PCB board, I am also using STM32F103 Arduino compatible microcontroller which communicates the sensors through the I2C protocol, I have tested it…
A.Ali
  • 13
  • 4
0
votes
2 answers

why doesn't my wsb2812 led work as i expected, the last led doesn't work

i was trying to light up my leds work both clockwise and anticlockwise. i used mpu6050 as leds' direction's control. i checked my mpu6050 drivering codes and they are alright. it worked well when working on clockwise,all leds are lighted up in red.…
0
votes
3 answers

STM32 SPI data is sent the reverse way

I've been experimenting with writing to an external EEPROM using SPI and I've had mixed success. The data does get shifted out but in an opposite manner. The EEPROM requires a start bit and then an opcode which is essentially a 2-bit code for read,…
electrophile
  • 285
  • 1
  • 5
  • 16
0
votes
2 answers

Does mbedTLS works on STM32 F1?

The stack mbedTLS is provided by ST for its STM32 F7 microcontrollers but it isn't for STM32 F1. So I wanted to know if there was a reason and if it was possible to make mbedTLS works on a STM32 F1. Thank you.
Manu53
  • 91
  • 1
  • 1
  • 6
1 2 3
9
10