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 [stm32f103c8t6]

The tag has no usage guidance.

10
votes
6answers
9k views

Why not always use DMA in favor of interrupts with UART on STM32? [closed]

I spend last month a lot of time getting UART (for MIDI) to work with an STM (STM32F103C8T6) using interrupts, without very much success. However, this evening using DMA it worked quite fast. Since ...
7
votes
3answers
6k views

Do I really need to put stm32 microcontroller into bootloader mode to program it?

I have started learning stm32 microcontroller for a while using a very small development board "stm32f103c8t6" (or blue pill). when I started, I learnt from some tutorials that I have to switch a ...
3
votes
2answers
630 views

STM32 SPI not working as I expect it should based on online reading

I am using an STM32F103C8 to connect to a Hope RF95W transceiver IC for the purpose of learning. I am only trying to read the chip version register, then write a config register that has a 0x00 reset ...
2
votes
2answers
127 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 ...
2
votes
2answers
3k views

STM32 print via UART without Nucleo/Discovery

I would like for debugging/trace purposes to print texts (preferably via printf but just text is also fine) from an STM32F103C8T6 to a (PC) terminal application. I noticed that all examples use a ...
1
vote
2answers
190 views

How can I connect a shunt resistor whose output voltage range is 5V to STM32F103 whose ADC conversion range is 3.6V?

I am new to STM32F103. I need to connect a shunt current measurement sensor whose output voltage range is 5V to the ADC pin of STM32F103. But the ADC conversion range of STM32 is 3.6V. What is the ...
1
vote
1answer
118 views

stm32f103c8t6 cannot connect using stlink after upgrade, how to fix?

I upgraded the firmware using stlink>upgrade firmware (using cheap stlink v2) with stm32f103c8t6 connected (boot0 and boot1 are both 0). After successful upgrade i unplugged and plugged it back and ...
1
vote
1answer
2k views

How to add external GPIO interrupts on STM32?

I'm trying to configure STM32CubeMx to external GPIO interrupts, however, in the NVIC screen I don't see an EXTI... interrupt to be set. What should I do to be able to e.g. check for interrupts on ...
1
vote
1answer
451 views

Analog Vref for ADC on STM's Blue-Pill

I am piecing together my own ADC example for STM's blue-pill module by reading the reference manual (btw I an inexperienced in embedded development). The code outline so far is: ...
1
vote
0answers
282 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 ...
1
vote
1answer
305 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 ...
0
votes
1answer
4k views

STM32F103C8T6 5V pin description

On the STM32F103C8T6 there is a 5V pin, see at the bottom left of the STM: However, in the official description from ST.com (see Link), in the table on page 28 is shown: C2 F2 - - - 10 - VSS_5 S - ...
0
votes
2answers
2k views

Ticks / nanosecond delay

On an STM32F103C8T6 (72MHz) I want to use a delay in range of 100's of nanosecond (to create a LED strip driver, WS2813B). Since HAL only provides a ms delay, I found at various places code to use ...
0
votes
1answer
81 views

STM32F103 reset button does not work [closed]

I am working project, using STM32F103C8T6 and W5500 Ethernet module. My project is something like network relay. My problem is ...
0
votes
2answers
523 views

Can I interconnect all echo pins from multiple ultrasonic sensors?

I want to use (probably) four ultrasonic sensors HC-SR04. These use a trigger pin and echo pin. For the echo pins, I want to connect them to a timer with 'Combined Channels PWM Input on CH1', and the ...
0
votes
2answers
238 views

Questions about DMX512 protocol/STM

I want to make a DMX512 transmitter with a STM32F103 using HAL, CubeMX. I found some documentation like here about the protocol: Lighting-Control-using-DMX512-protocol-on-STM32. Sadly it does not ...
0
votes
1answer
614 views

USART not working with CP2102 adapter and STM32F1 Blue Pill board

Having programmed 8-bit AVR MCU's, I bought Blue Pill STM32F103C8 dev board from ebay. It has 8MHz external crystal and I program it with ST-Link on Mac. I saw a lot of options like HAL, etc, but I ...
0
votes
1answer
129 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 ...
0
votes
1answer
217 views

How to measure duty-cycle with Input Capture from STM32F103C8T6?

I'm trying to measure the duty-cycle of the 0-5V electrical PWM signal I have generated from the any source. How can I do this? Anyone can help me? IDE: Keil Microcontroller: STM32F103C8T6
0
votes
1answer
327 views

STM32F103 USB CDC [closed]

I have a strange problem with USB CDC mode in STM32F103. I have designed PCB with STM32F103 microcontroller and an accelerometer which streams data through USB to PC. I have used STM32CubeMX wizard. ...
0
votes
1answer
62 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 ...
0
votes
1answer
127 views

CAN via SPI over STM32F103C8T6

Since I could not get CAN to work with the internal CAN of an STM32 (F103C8T6), I bought a few CAN boards working with SPI, like these: However, when I send something I get the following results ...
0
votes
1answer
77 views

How to get data sent to a LED strip each 400 ns?

I want to send data to a LED strip. This has to be done roughly every 400 (or 800 ns), depending on the data (a 0 or 1 to be sent). unsigned long counter = 0; ...
0
votes
1answer
534 views

How to get a Timer started without interrupt?

I use an STM32F103c8t6. What I want is to measure time between several statements. I found out HAL_getTick does not work since the resolution is too small (1 ms). However, I cannot seem to initialize ...
0
votes
2answers
363 views

External Interrupt delayed to in STM31F103C8

I have to write a C program to toggle an LED using an external interrupt on STM32F103(72MHz System Clock). I have initialized EXTI3 on the Falling edge and the ISR Handler toggles an led at high ...
0
votes
1answer
237 views

STM32F103 TC\TXE bits are set automatically after USART1 clock enable

I'm trying to enable the USART1 periferial on Stm32F103 MCU. My code looks like this: ...
0
votes
0answers
24 views

SPI2 ON STM32F103C8 [on hold]

After intialiazing SPI2 nothing is being written on SPI2 register clock configured for gpio and spi2 both i have checked during debugging spi2en bit 14 is set but nothing written on spi2 register <...
0
votes
0answers
141 views

flashing a stm32 board, target Not halted

I now this is something simple but I haven't been able to find an answer to my problem, also this is the first time that I am trying to use this line of mcus and I have been trying to solve this ...
0
votes
0answers
36 views

How to change channel to in0 to in1 after 1 convertion

I am using stm32f103c8t6 board, using in0 to in3 4 channels for getting information from other hardware. i am new to stm32 so I don't know how to change the channel from in0 to in1 after 1 convertion. ...
0
votes
2answers
382 views

STM32F103 PC13 on Output mode not work

I using STM32F103C8, I want to use PC13 in GPIO mode (RTC is active). The register ODR13 changes, but the logical value of the PIN does not change. ...
0
votes
1answer
67 views

PLL setup for STM32F103RC

I was doing PLL configuration to run my STM32F103RCT6 at 72MHz. I am using CMSIS Library and hence I took help from standard peripheral library to write this code. I am getting certain doubts which i ...
0
votes
1answer
880 views

HC-SR04 with STM32 gives unexpected values

On an Arduino it is easy to get an HC-SR04 ultrasonic sensor getting to work. However, on my STM32(F103C8T6) I get strange values. I assumed I connect it correctly, since I get values on the trigger ...
0
votes
1answer
481 views

Setting up an STM32F103 8 MHz clock source [closed]

I'm extremely new to the STM32F103 (just received it in the post today) and would like to know how (the best way) to set up one of its pins as a clock source for an external circuit. Ideally, I would ...
0
votes
0answers
169 views

How much hardware is needed for HAL_CAN_Transmit not to give a TIMEOUT?

This question is related to Question I wonder how much hardware is needed to not make HAL_CAN_Transmit give a TIMEOUT... Is only the STM32F103C8T6 needed (in my case) Or a CAN transceiver attached ...
-1
votes
3answers
302 views

STM32F103C8T6 3.3v pin max output [closed]

Im using STM32F103C8T6 with sl4432 as small radio beacon. It's working fine, but range much shorter than suppose to be. Sl4432 require max 85 mAh for 20dbm transmit, but how much STM32F103C8T6 3.3v ...
-3
votes
3answers
3k views

Need help making an STM32 development board

I have been playing around Arduino and wanted to make my own development board for a long time. I have decided to use the STM32F103C8T6 microcontroller for this. But being relatively inexperienced in ...