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.

ST’s STM32 F1 series of mainstream MCUs covers the needs of a large variety of applications in the industrial, medical and consumer markets. With this series, ST has pioneered the world of ARM® Cortex™-M microcontrollers and set a milestone in the history of embedded applications. High performance with first-class peripherals and low-power, low-voltage operation is paired with a high level of integration at accessible prices with a simple architecture and easy-to-use tools.

STM32 F1 series of mainstream MCUs

158 questions
24
votes
0 answers

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 accomplish this without using an external debugger, I have connected the…
Heneer
  • 489
  • 7
  • 12
18
votes
2 answers

How to use external ST-Link to debug/program STM32F103 MCU?

I'm using STM32F103 MCU for my own project and want to use the ST-Link of STM32F411 Nucleo board for external debugging / programming purposes. I've set the CN2 jumpers OFF and my actual question is in the pinouts of SWO (CN2). How I proceed on this…
baqx0r
  • 311
  • 1
  • 4
  • 13
10
votes
1 answer

Detect which momentary switch caused a STM32 cpu to wakeup

Edit: This question is wrong. The stm325105 has only one wakeup pin. But other ST-parts has more than one wakeup pin, so the given answer is valid for those. I have a stm32f105 that has two momentary buttons connected to the wakeup inputs. The…
Daniel Näslund
  • 227
  • 2
  • 10
8
votes
1 answer

SPI on STM32 won't work without pullup resistors and even then performs poorly

I've been trying to get the SPI1 on the STM32F103C8 (Blue Pill board) working correctly for some time now. As I'm just starting to learn ARM, I am simply trying to shift data to a 74HC595 shift register and latch it to light up a byte of LEDs. I am…
jjpprr
  • 163
  • 1
  • 6
7
votes
4 answers

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 while (think days apart) I want to be able to…
Brett K Smith
  • 305
  • 2
  • 6
7
votes
1 answer

STM32F103 SPI Master example?

I want to use SPI master configuration and send some data just to capture it with Logic Analyzer. It seems that I cannot trigger on clock and capture anything. Using code from standard peripheral library examples I don't see what could be wrong…
user505160
  • 1,010
  • 5
  • 16
  • 26
7
votes
2 answers

Unable to read file greater than 2K in FatFS

I am reading a file from the SPI Flash with FATFS file system, on STM32F103 platform running FreeRTOS. I can successfully read File of size less the 2048, but if read a file file of size greater than 2048, (As i am reading in chunks of 128 bytes) it…
CAK
  • 91
  • 2
  • 4
6
votes
2 answers

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 timer's DMA burst mode to transfer new values to…
Timo
  • 1,179
  • 1
  • 12
  • 30
6
votes
2 answers

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 have defines two memory locations: MEMORY { …
Andrey Lebedev
  • 183
  • 1
  • 1
  • 5
6
votes
1 answer

STM32 Semihosting - SIGTRAP received when printf called

Have followed this guide here (http://www.wolinlabs.com/blog/stm32f4.semihosting.html) to get semihosting on the STM32F103 working. Basically my goal is to get printf working over JTAG (ST-Link/v2). The one change from the guide was that _sbrk was…
matben243
  • 353
  • 2
  • 5
  • 10
5
votes
2 answers

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 is the code:…
Tutankhamen
  • 187
  • 2
  • 8
5
votes
1 answer

How do I interrupt an ISR with a higher-priority ISR on an STM32F105?

I have two external interrupt sources coming into an STM32F105. I want one of them (call it "IRQHigh") to pre-empt the other ("IRQLow"). Currently, if IRQHigh is triggered during the IRQLow ISR, the program flow waits until I clear the IRQLow…
bitsmack
  • 16,747
  • 9
  • 52
  • 108
5
votes
5 answers

I2C busy flag strange behaviour

I've been using STMCUBE combined with Keil for some time now. For most part I like the HAL library and the documentation for STM32f1xx drivers is quite good. I'm doing a project where I am using STM32f103rb Nucleo card combined with an MPU6050…
Nelle
  • 51
  • 1
  • 1
  • 3
5
votes
3 answers

STM32 DMA Transfer bridge between 2 uart ports

I am using a stm32f103 and I'm trying to simply transmit all data received on 1 uart to another uart and vice versa. When using 2 terminal programs it works great, everything I type gets transmitted without any issues. But if send a long string,…
Tom Van den Bon
  • 161
  • 3
  • 6
5
votes
2 answers

stm32F103C8xx big or small endian?

is there a reason for stm32F103C8xx to be big endian and is it possible to change to little endian? I have a 16bit oriented addressing scheme that I need to send over wire and other side expects MSB first. Any other sugguestion? To answer how I am…
user505160
  • 1,010
  • 5
  • 16
  • 26
1
2 3
10 11