Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [stm32f10x]

Anything related to the STM32F1 series of microcontrollers. F1 series of mainstream MCUs covers the needs of a large variety of applications in the industrial, medical and consumer markets.

1
vote
2answers
66 views

SPI using STM32's DMA sends one word too much

On an STM32F103 I configure SPI in 16bit wide mode and set up a DMA transfer to transmit one byte: ...
-2
votes
3answers
347 views

Do I need to split my GND lines?

I am intending to make a multiplexed LED matrix, possibly with 16 rows, 8 columns. This means maximum 16 LEDs (one full row) will be lit at the same time, thus 16 LEDs * 20 mA/LED = 320 mA. According ...
0
votes
0answers
35 views

Injected adc2 channel combined with regular channels adc1 dma stm32f103

I have 7 adc channel must be measured. 4 channels are continuously measured by dma and adc 1, 3 of them are very important measured in special moment. I want to mesured this channels by injected ...
4
votes
0answers
62 views

Switch from JTAG to SWD with bitbang sequence on STM32F103VB

I am trying to switch from JTAG to SWD without any external devices. Why? Because I would like to use the SWO pin to send a stream of logging information to another device. To do accomplish this, ...
0
votes
1answer
86 views

Converting 0 - 80 V to 0 - 3.3 V range

I need to design a circuit so that it can convert 0 - 80 V DC to 0 - 3.3V DC. I need to give the output of a battery which is in the range of 0 - 80 V to an STM32F103 microcontroller. Since the ...
0
votes
1answer
48 views

FreeRTOS PID Controller (stm32duino) [closed]

I'm currently working with embedded system implemented on SMT32F103C8T6 Blue Pill microcontroller based on FreeRTOS. I want to control the velocity and position of DC motor using PID controller. For ...
-1
votes
0answers
47 views

STM32F103 “BLUE PILL” SPI Clock signal not working

I have been trying to communicate with Arduino UNO thru SPI1 of STM32F103 blue pill board. I am using the standard peripheral library. I have checked countless tutorial and have run them on my board. ...
0
votes
1answer
194 views

STM32f103 DMA with PWM repeating values

I have a Blue Pill (STM32F103) and connected to it a ws2812b led strip. I am trying to send data to the led strip via PWM over the TIM2 peripheral (Pin A0). To change the duty cycle of the TIM2 PWM I ...
1
vote
2answers
64 views

STM32F105 FSMC Pin assignment [closed]

How do I assign certain pins to the appropriate FSMC pins? I've looked through the reference manual and the examples, but there's nothing about pin assignment except configuring them as alternate push-...
2
votes
4answers
274 views

STM32 MCU - Temp sensor gives weird values

I'm fooling around with a Nucleo-F103RB STM32 board and I'm trying to measure the ambient temperature using its internal sensor. I activate the ADC and get data normally via the ...
0
votes
0answers
65 views

STM32f103 multiple TIMER IRQ to generate different timebase using SPL

I am trying to control two LEDs with different delays.I used CUBEMX for code generation and used TIM2 and TIM3 to generate different timebase. It worked without any issue. Simply using TIM2_IRQHandler(...
0
votes
0answers
88 views

stm32f103 - 16 bit mode SPI reading returns 0xFFFF

I am working with a sensor which communicates through SPI. I am trying to read MISO line, but it returns 0xFFFF. first I send 0xC000 on MOSI and the sensor places 0x0032 on MISO. I read MISO using ...
0
votes
1answer
53 views

BMC150 initialization does not work

I am trying to read ID register of BMC150 using SPI. I am using stm32f103 microcontroller. Serial clock line is OK and the data is sent properly over MOSI of microcontroller. But no response is sent ...
1
vote
0answers
159 views

driving WS2812B using DMA and timers

I am trying to port the octoWS2811 for STM32F103c8T6. This guy hubmartin has already done the heavy lifting and created a library using STM32 HAL. But the problem is that i am unable to get it to ...
2
votes
1answer
238 views

I2C bus occupied

I have a problem with an I2C communication and want you to ask whether there is a better solution than mine. I am programming an STM32F103 at the moment. There is one sensor (MPU6050) which is ...
1
vote
1answer
172 views

STM32 pulled up GPIO pins work stange after being connected to the ground

I use stm32_smart v2 development board and try make a cheap and reliable 7 bit input interface using 7 jumpers from GPIO to the ground. Internal pull up resistors are used. The first time I did not ...
2
votes
0answers
384 views

stm32 external interrupt

I am working with a stm32f103 and am trying to get the external interrupt done. My code is: ...
1
vote
4answers
82 views

How much FLASH memory is free for a program?

I'm programming for a STM32F103C8T6 (aka blue pill), with the be datasheet here. On page 14 it states: 2.3.2 Embedded Flash memory 64 or 128 Kbytes of embedded Flash is available for storing ...
0
votes
1answer
99 views

read from uint32_t in flash is zero STM32F1

I am working on an STM32F103RBT6 program and at some point I need to store values in the FLASH. Writing in Flash is working as a charm, if I parse through the memory of my microcontroller, I see that ...
0
votes
2answers
73 views

STM32F103C8 GPIO Ports A Through G

I was able to get dwelche's blinker01 example to work fine; thanks yet again Old Timer! I headed over to the reference manual to trace through how that code works, and it's easy enough to follow. 1) ...
0
votes
0answers
48 views

Storm32 STM32F103RC UART3 no transfer

I'm currently developing software for Storm32 board, I write all code from beginning by myself. The problem is I cannot initialize the connection via UART. I check documentation for the board and TX/...
0
votes
1answer
221 views

STM32F1 Flash erase not erasing

Hello everyone, I am trying to write in the FLASH of my STM32F1, but for some reason it is not working ... Whenever I am programming something, it wil return an error : HAL_FLASH_ERROR_PROG which ...
0
votes
1answer
85 views

STM32F1 -bootpin resistors

The STM32F1xx "Getting Started" app note shows the BOOT0 and BOOT1 pins connected to ground/VCC via a \$10k\Omega\$ resistor, and so that's what I've always done and everything works fine. However, ...
0
votes
0answers
102 views

NRF24 became noisy after a while

I'm making a gyro mouse using MPU6050, NRF24L01+ connected to STM32F103 board, all soldered to a strip-board. The STM32 reads the sensor and sends data via NRF24 to another NRF24 attached to a USB ...
1
vote
2answers
214 views

How to set external clock value for STM32F1?

I creating a project with the microcontroller STM32F101C8t. This microcontroller has an internal clock of 36MHz. My question is how to correctly set the external clock value, ie what crystal value ...
6
votes
2answers
272 views

Detecting DMA overflow in arbitrary waveform generation

I'm generating a complex series of pulses on an STM32F103, essentially as described in the ST app note AN4776 General-purpose timer cookbook, section 5.3. As a quick summary, that means I'm using the ...
0
votes
1answer
276 views

SD card initialization problem - CMD16 wrong response

I'm using SPI to interface with a micro SD card 2GB and get error respond in CMD16 response and also CMD17 response. Because of that, I can't also read bytes from SD card. Here is my code: SD card ...
2
votes
0answers
53 views

nucleo-64 103rb EXTI stays pending

The PC13 EXTI interrupt (EXTI15_10) configured here keeps firing none stop. Most other questions about this same topic indicate that the respective EXTI_PR pending bit needs to be cleared in the ISR. ...
0
votes
1answer
306 views

STM32F103 SPI only receives 0x00

I'm using SPI for interfacing between STM32F103 and MRF24J40. I write a value to MRF24J40 register and then read back to confirm it works functionally but I only receive 0x00 from MISO pin. Here are ...
7
votes
4answers
820 views

Creating programmable look up table on STM32

I am trying to define a look up table that is not a constant on an STM32F103. Basically I want to have a page of flash that acts like a constant lookup table in normal operation, but every once in a ...
0
votes
1answer
227 views

STM32 HAL one of four PWM pins stays high

I want to use pins A15, B3, B4 and B5 for PWM using Timer2 and Timer3 on STM32F103C8T6. Using code based on one generated by CubeMX i've got pins A15, B3, B4 working properly, but B5 is constantly ...
0
votes
1answer
158 views

PWM on Nucleo-STM32F103RB

I'm trying to just get timer based PWM output working on the F103 Nucleo board and I can't get the MCU to output anything. I spent a decent amount of time looking through the examples in the related ...
0
votes
1answer
167 views

Shared UART on STM32F103x (or any)

This is one of those beginner questions, so sorry about that. I'm trying to add wireless chip to my current PCB, but there are no more available UARTs on STM32F103. There is one UART (RX,TX) pins "...
1
vote
1answer
224 views

TX Polling Not Working when setting RX interrupt stm32f103rc

I was trying USART on STM32F103RC,baud 115200, sysclk 72MHz, 1 stop bit, no parity and i connected my stm with usb to serial to look my output on terminal. At first i did polling of RX and TX and send ...
0
votes
0answers
49 views

EVALKITST7580-1 doesn't received status message

I have a circuit that use EVALKITST7580-1 schematic, but I didn't install the USB, I2C or JTAG pin, i just use UART as the connection. And i use the STM32F103C8 blue pill module as the micro. When i ...
0
votes
1answer
36 views

STM32F10x DMA a constant value

does anyone know if it's possible to DMA a constant value using the STM32F103? I've scrutinized the datasheet but can't see anything obvious and nothing via Google either. Could do a single word in ...
0
votes
1answer
101 views

STM32F103xxxx VFQFPN 36 pin package thermal pad, isolated or tied to ground?

Currently designing a PCB based on the STM32F103. The package is a VFQFPN 36 pin package, which also has a large thermal pad. The datasheet for this part does not appear to indicate a pin number or ...
0
votes
0answers
461 views

ST7580 and STM32F103 cannot communicate

I'm using ST7580 for PLC and STM32F103 "Blue Pill" board as a microcontroller, with Arduino IDE. I want to check if my board can communicate via UART. The application note said that if I set my ...
1
vote
1answer
205 views

Stm32f103RB does not send data in Full duplex SLAVE SPI mode

I am working on stm32f103rb nucleo board and want to send data and receive data using stm32f103 in slave mode. I can get data from the master but I can not send data to the master. I do not know what ...
-1
votes
2answers
277 views

Set up two clock sources with an STM32F103?

As above really. I'd like to set up two clock signals on my STM32F103 for external circuits, one at 4 MHz and the other at 2 MHz. Here's what I've tried so far, but I'm not measuring any signal at ...
0
votes
0answers
640 views

How to stop and restart USB device for STM32

I'm trying a project using stm32f103 with cubemx as usb hid device. What I want to do looks really easy: once a button is pressed, the chip works as a different hid descriptor. something like this: ...
0
votes
1answer
107 views

STM32 hits breakpoint when TIM1 prescaler > 2

I'm generating a PWM signal on STM32F103 using TIM1. Timebase init code is: ...
1
vote
2answers
2k views

STM32F103 temperature sensor calibration addresses

I am new to ARM world and using STM32F103C8T6 ARM microcontroller. I want to get micro's internal temperature sensor working. I am able to get some data from it but I'm not sure how to convert these ...
5
votes
2answers
802 views

STM32F103: Can a timer can interfere with uart?

I have a simple program, which receives data from UART interface and drives a WS2812b led strip. So, I'm using USART3 to receive data (in IRQ mode) and T3C2 (timer 3, channel 2) to drive LEDs. Here ...
1
vote
2answers
3k views

STM32F103 flash memory start address

I'm trying to write a linker script for my first firmware for STM32F103C8T6 microcontroller. I have an example script that works. What I'm trying to understand is why it works. The linker script I ...
0
votes
0answers
434 views

STM32F103 multiplex 7 segment LED

I try using a STM32F103 to multiplex 3-digits 7 segments LED. I understand most concept of multiplexing, how to on a segment of LED. the type of LED I am using, is common-cathoded type. (if I connect ...
0
votes
0answers
254 views

Outputting 4 50Hz PWMs on STM32F103

I'm working on a quadcopter project where I need 4 different PWM signals at 50Hz to control the 4 motors. Since STM32F103RCT6 works at a frequency of 72MHz, and that in each independent timer we can ...
0
votes
1answer
689 views

Reading Analog value from GPIO on STMF103RCT6

I am new to electronics, but have a fair bit of general programming experience, be gentle :) I have an existing PCB with an STMF103RCT6 where the available pins are GPIO D 0 and GPIO D 1. I would ...
0
votes
1answer
89 views

Problem getting STM32 debugging to work

Yesterday I debugged a program on my STM32F103C8T6 with Eclipse STM32 workbench without any problem. Today I tried the same but constantly get this error. What I tried to fix: Erase the chip with ...
1
vote
0answers
203 views

STM32F103 - CubeMx - MCU reboots with FreeRtos v9

I using a STM32F103 in my project and I generate the Keil project with Cube32MX with this firmware package for STM32F1 version 1.4.0. Today I update the Cube to version 4.23.0 and I migrate my ...