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
0answers
21 views

Building an optical mouse with stm32 µC and pmw3389 Sensor [on hold]

Currently in the Process of trying to build my own USB HID mouse I bought a STM32F103C8T6, the bluepill. In addition I got an PMW3389, which I got from a partly broken mouse. However the tracking on ...
0
votes
0answers
21 views

stm32f103c8t6 program downloading

I got st link v2 mini usb driver and stm32f103c8t6. When I load a program from keil through st link v2 it says 'loading is OK' (programming pin connections are true) but PC13 led of stm32f103c8t6 is ...
3
votes
2answers
83 views

How to program custom STM32F103 board [closed]

I am currently cloning the STM32F103C8T6 (blue pill) into a new board. The the bill of material of my new board is exactly same (because I just simply cloned it), only the shape of the board is ...
0
votes
3answers
94 views

What code issues could persist past a reset? (STM32F103)

I have a project running off a Bluepill board (STM32F103C8T6) that ceases to function only after it runs for ~6 hours. Up to that point it behaves totally normally, and UART logs don't indicate ...
0
votes
0answers
24 views

Can I use the st-link/programmer on nucleo l432kc to program external baords?

Can I use the st-link/programmer on nucleo l432kc to program external boards? I know that I need the SWCLK and SWDIO pins and they don't seem to be connected to external headers but I saw some people ...
0
votes
0answers
67 views

STM32f103 interfacing with adxl345 via i2c

I am working on interfacing ADXL345 accelerometer with STM32F103 blue pill board through I2C communication. I have written the code in Keil software by surfing the internet which works fine sometimes, ...
1
vote
1answer
39 views

How to modify BRR and BRSS registers to stm32f4 from stm32f103

I'm trying to modify stm32f103 2x16 lcd library to stm32f4. There are BRR and BSRR register on stm32f103 but there aren't similar register in GPIO_TypeDef structure on stm32f4 so i don't know how to ...
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
1answer
73 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
59 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
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 ...
1
vote
2answers
102 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
131 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
68 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
137 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
122 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
358 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
158 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 ...
10
votes
0answers
224 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 accomplish this ...
0
votes
1answer
135 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
139 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
266 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
140 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
528 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
196 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
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 ...
1
vote
0answers
284 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
380 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
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 ...
2
votes
0answers
983 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
100 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
150 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
128 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
58 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
373 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
129 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
418 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
319 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
387 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
67 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
394 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
1k 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
293 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
227 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
232 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
324 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
39 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
129 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
659 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
256 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 ...