Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
66 views

STM32F103 reset button does not work

I am working project, using STM32F103C8T6 and W5500 Ethernet module. My project is something like network relay. My problem is ...
0
votes
1answer
46 views

Debugging on STM32F103

I have been on this for about two days now and I'm so frustrated already I don't know what I'm not getting right. I want to be able to use the stm link utility with my stm32f103c8t6 so that I can use ...
1
vote
2answers
49 views

The STM32L431 EXTCLK MCU pin 14 and 15 need to be conected or not

Is there a way to make the internal MSI (RC) clock recalibrate itself (automatically in hardware) onto the LSE 32.786kHz clock input, effectively reaching the same precision as a sealed-external ...
2
votes
2answers
82 views

Trouble getting I2C working on STM32 (stm32f103c8t6)

I'm starting out with I2C. I have a development board with stm32f103c8t6 to which I have connected GY-68 board with BMP180 barometric pressure sensor. Documentation of BMP180 describes Chip-id ...
1
vote
2answers
77 views

Trouble getting USART working on STM32 (stm32f103c8t6)

I started working with with stm32f103c8t6 recently and I was able to set GPIO to input and output, however when I try to set USART it just does not work. I'm trying to write directly to registers, ...
0
votes
1answer
80 views

Problem with STM32CubeMX

I downloaded the new STM32CubeMX (with the 'fancy' but quite annoying GUI). When I make a project (using some GPIO's, timers), I create the code (for System Workbench for STM/AC6/SW4STM Eclipse). And ...
1
vote
0answers
46 views

SD Card re initialization using fatfs on stm32f103RB

I am using a SD Card Module that has no pin for checking existence of SD Card, So i should do the check using fatfs libs. The micro-controller is STM32F103RB and i'am using SPI protocol to communicate ...
0
votes
0answers
60 views

SPI problem with STM32F103

I am trying to connect blue pill board(master) to arduino nano(slave) over SPI and read what I have sent on serial monitor. However I haven't been able to get SPI working. I run a timer to generate an ...
1
vote
2answers
89 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
355 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
88 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 ...
7
votes
0answers
125 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
129 views

Converting 0 - 80 V to 0 - 3.3 V range [duplicate]

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
97 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 ...
0
votes
1answer
250 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
101 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
395 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
148 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
55 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
213 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
318 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
250 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
726 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
88 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
129 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
100 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
51 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
308 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
104 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, ...
2
votes
2answers
321 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
294 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
346 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
58 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
361 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
936 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
282 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
196 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
196 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
278 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
1answer
37 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
116 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
592 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 ...
2
votes
1answer
228 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
303 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
1answer
117 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
889 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 ...
2
votes
2answers
4k 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
488 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
1answer
759 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 ...