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

The STM32 is the third ARM family by STMicroelectronics. It follows their earlier STR9 family based on the ARM9E core, and STR7 family based on the ARM7TDMI core. The STM32 is based on the ARM Cortex-M family of cores.

-1
votes
1answer
57 views

Cannot connect to my device with ST-LINK

I am using an ST-LINK/V3 to talk from my PC (USB) to a homemade electronics PCS (JTAG). I can do the firmware update, under ST-LINK/Firmware update. When I try to ...
-1
votes
1answer
47 views

How to read temperature with STM32F103C8T6?

How can I read the temperature using an NTC thermistor with an STM32F103C8T6 board??
0
votes
1answer
53 views

UART - Writing and reading AT commands

I am working with a B-L072Z-LRWAN1 board and a 8pya00-simcom-evb v1.02 board with SIM7000E. This SIM module operates through AT commands and I need to send these commands through an UART connected ...
0
votes
1answer
67 views

STM32 UART character encoding issues (can't decode using either ASCII or UTF-8)

first some specifics: STM32F411 Nucleo board, Atollic TrueSTUDIO v9.1.0, Debian linux 9.6. I am sending a telemetry string over the UART using the HAL. I am using the following code to construct ...
0
votes
2answers
40 views

GPSDO in firmware?

There are numerous designs online for hardware GPSDO (GPS-disciplined Oscillators). I'm failing to find any firmware-only implementations. I wonder if my Google foo is weak or if these are impractical ...
0
votes
1answer
36 views

Problem with interrupt-based timer on STM32F411

I was following this online tutorial and cannot get the interrupt-based timer to work. I know the timer is running because if I uncomment the five lines in the main loop, I get a nice square wave ...
0
votes
0answers
39 views

STM32 UART DMA communication without size of data

Hello i have problem with uart communication on my stm401re/446re board. I would like to manage communication on 2 or 3 uart ports, but i dont know the exact incoming data size. I have configurated ...
0
votes
1answer
25 views

How to write data to end of line of existing file (STM32CubeMX FATFS SDIO issue)?

I have successfully coded write data into a CSV file is an SD card using STM32 CubeMS FATFS SDIO interface 1-bit mode. But I can't find the file append function in HAL FATFS driver to write data to ...
1
vote
0answers
44 views

OpenOCD on Raspberry Pi Zero to flash STM32F410 via SWD

I followed the Adafruit guide (https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi) to flash an STM32F410 (on a Nucleo Board, but I get rid of the STLink parts and ...
-1
votes
2answers
43 views

STM32F407 discovery board jumpers

What is the usage of Jumper1(JP1), Jumper2(JP2) and Jumper3(JP3) on the STM32F407 discovery board?
0
votes
1answer
50 views

STM32F0 - interrupt/breakpoint not working on certain hardware

OK I realise this sounds like a dumb/noob question but please do read it through before calling me an idiot - at this stage I'll gladly take it if you can spot where I've gone wrong! The scenario: ...
2
votes
1answer
36 views

STM32F7 trimming step frequency

In the past I calibrated the frequency of the High Speed Internal oscillator (HSI) in an STM32F0 device adjusting the value of the register RCC_CR, field HSITRIM. In the ref. manual it says that the ...
1
vote
0answers
301 views
+150

How to read data from this sensor?

I am using the MLX90393 Magnetometer IC from Melexis. More specifically, I am using the breakout board by Sparkfun. I am still a beginner when it comes to programming, and this is my first time trying ...
1
vote
1answer
72 views

Asynchronous write to EEPROM

There is Stm32l052 with built-in EEPROM (2k). 4 ADC channels are used, data is collected by the trigger every 40 microseconds. Data from the ADC is processed in the interrupt (determined by the output ...
0
votes
1answer
50 views

Programming STM32F407 discovery by the ST-Link V2

I have a STM32F4 Discovery board and a ST-Link/V2 programmer. I want to use my own ST-Link (not the embedded one) for programming and debugging the board. I faced to a problem that i still haven't ...
0
votes
1answer
78 views

SPI receives data but does not write into variable

I am currently working on reading SPI data from the Wi-Fi module as in the topic. It maintains the correct data from the transmitter but by using HAL_SPI_Receive() ...
0
votes
2answers
63 views

How to connect custom stm32 board to debugger

I have a custom STM32 microcontroller board. I have verified all of the electrical connections, and I am able to program the board with Texane's st-flash utility. However, I would like to debug the ...
-1
votes
1answer
57 views

128x64 Graphic LCD(TG12864B V1.1) monitoring problem (driving from STM32)

I'm try to write a driver for driving 128x64 GLCD. But whatever I did, it doesn't work. I put the code below. What is wrong?. edit I can write some character but Random pixels appeared on the LCD....
0
votes
1answer
41 views

STM32F407 USART Interrupt config

Is it possible to Enable multiple USART Interrupts simultaneously by CMSIS USART_ITConfig function? I mean is it correct to utilize USART_ITConfig like this : ...
0
votes
0answers
62 views

High voltage protection for UART

I need to create a high voltage protection module (up to 50 V constant voltage) for UART line with speed of 56.7 kB/s connecting an STM32 with external devices. I was considering darlington arrays, ...
-1
votes
1answer
25 views

STM32F4 USART CONFIG [duplicate]

The following two statements are true about AVR microcontroller's USART Receiver and Transmitter but im curious about that are these also work on stm32F4 ? When the Transmitter is enabled, the ...
0
votes
1answer
66 views

SPI communication between STM32F4 and Rasberry Pi produces garbage

I trying to make an SPI communication between a RPi (as MASTER) and an STM32F410 (as SLAVE, on a Nucleo board). My PoC is simple, I send 8 bytes from the Rpi and print them out with the UART-over-USB ...
1
vote
1answer
81 views

STM32F4 USART Receiver Pin Configuring

I am trying to configure STM32F4 USART peripheral. I thought that USART Receiver pin(RX) must be programmed as Alternate function to USART works correctly and then the data is present on the I/O pin ...
0
votes
1answer
35 views

STM32L0/FTDI UART Transmit doesn't work

I have STM32L053 (link to overview) and I have been using STM32CubeL0 as UART examples. Also I connected FT232RL FTDI module. Everything was fine. SIM800L and FTDI modules were working fine. Next day ...
3
votes
2answers
138 views

DP83848 + STM32 & Failed EMC (massive spikes of 25MHz crystal harmonics)

So we've failed EMC two times now because of spikes of 25 MHz harmonics from 175 MHz to 300 MHz, especially 175 MHz, 225 MHz and 275 MHz with peaks easily 30-40 dBuV above noise floor measured with ...
0
votes
1answer
40 views

LSE fail to enable

I am using a blue pill with STM32F103C8 and I am trying to debugg my programm but every time it is stack in the activation of the LSE clock (LL_RCC_LSE_IsReady() != 1) I have the following system ...
0
votes
0answers
41 views

Problem in STM32 flashing without erasing startup code [closed]

I am working with STM32F767ZI Nucleo evaluation board, I have found that my code failed to run after flashing without erasing sector0(startup code). Problems solves when i erase the sector 0 and ...
-1
votes
0answers
31 views

MS5611 sends additional byte after NACK

I'm currently try to use the MS5611 (sitting on a CJMCU-117) over I²C with libopencm3 on a STM32F103C8. When I do a read, the slave sends an additional byte (0xFF) after the master has send a NACK. ...
0
votes
0answers
58 views

I can't find the ppm in the clocks that STM32f103 blue pill use [closed]

I am using a blue pill with a STM32F103C8 microcontroller and for RTC reasons I am trying to find the ppm(parts per million) in the LSE, which is an external crystal clock of 32.768 kHz. I was ...
2
votes
2answers
109 views

STM32F722ZE SPI communication with LSM6DS33 using HAL

For a long time I can not read the correct data from the LSM6DS33 control register (accelerometer + gyroscope). As I read in the datasheet, the control register address WHO_I_AM is 0x0f. In order to ...
0
votes
0answers
39 views

STM32L0C8 standby mode and wakeup pin

I'm new to embedded work. I am using an STM32L0C8T6 MCU and STM32CubeMX to generate the hal driver for my first project. One of the features of the project, is trying to configure it to go into ...
0
votes
1answer
50 views

What are the minimum and maximum number of cycles consumed when executing an interrupt on an STM32F0 MCU?

Assuming I set an external GPIO interrupt to highest priority, how many cycles does an STM32F0 MCU take to: start executing the interrupt handler code return from the interrupt I expect that the ...
0
votes
1answer
57 views

STM32429ZI Dısc1 Gyro wrong data problem

I'm tring to write own L3GD20 library. I can read chip ID (but L3G sent to me ffd4 and its partially true). But I cannot read any axis of gyro. Partially gyro always sent to me FF or 00. I'm doing ...
1
vote
2answers
85 views

Can you simulate a GPIO input on STM32F0?

I'm trying a variety of things out with input pins and customized timers on the STM32F0. All timer functions are alternate functions on the pins and therefore you cannot use the user button (PC13 on ...
0
votes
1answer
58 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
36 views

STM32CubeMX/STM32L0 UART Transmit unknown symbols

I am trying to connect UART communication with STM32L053C8-Discovery. But the problem is on terminal I get unknown symbols. My Setup on CubeMX ...
4
votes
1answer
79 views

Why does STM32 use a two-stage initialization process? What is the primary purpose of each stage?

I'm learning to use STM32 microcontrollers using CubeMX to generate a project. I've noticed that CubeMX generates two basic stages of initialization for nearly every peripheral: (A) Within the ...
-2
votes
1answer
48 views

I have miss-sync PAL frames (pictures inside)

In some cases I get this picture: And sometimes I get that picture: analogue camera -> TVP5150AM1 -[external sync discrete VSYNC|HSYNC]-> STM32H7_DCMI I could correct the second picture with offset ...
0
votes
0answers
44 views

Unreliable I2C on ATTiny85

I am using an ATTiny85 as slave and STM32F103C8T6 as master. The address of the slave is 0x40. If the I2C cable, between the two devices is connected during power on, there is no ACK from slave when ...
2
votes
1answer
76 views

NVIC Pending register vs EXTI Pending register (STM32F4)

Why there are two pending registers for interrupt? One of them is EXTI_PR and other one is Interrupt Set-pending Registers(ISPR) which is in NVIC controller registers. EXTI unit pending register: ...
0
votes
1answer
55 views

STM32F4 struct unnamed has no field brr

I'm a newbie to STM32 coding and struggling with the following: I used to code a little bit with STM32F103C8T6, using cubeMx and HAL libraries. I made a code using the following code to set the pin ...
0
votes
1answer
125 views

STM32F4 - RCC reset register

I can't understand what's the job of RCC_xxPeriphResetCmd() function in the stm32f4xx-rcc driver? in fact the thing that i can't realize is what happens to a ...
0
votes
1answer
46 views

STM32 - ADC based temperature measurement on FreeRTOS

I've been trying to measure the MCU's (STM32F103RB) temperature as part of a FreeRTOS application. I've tried initializing the ADC both with the low and the high-level HAL functions, but whenever I ...
2
votes
1answer
77 views

STM32 3-wire SPI MOSI high impedance

I have a sensor with a 3-wire SSC interface, which is SPI compatible, but only has one bidirectional data line. Now I try to read this sensor (https://www.infineon.com/dgdl/Infineon-...
0
votes
1answer
64 views

STM32F4-Discovery board RTC

RTC Crystal place is exposed on the STM32F4-Discovery board. So which kind of 32.768 KHz SMD Crystals is proper for that place? Could you give a part number or a link to buy?
2
votes
1answer
88 views

Main Stack Pointer(MSP) vs Process Stack Pointer(PSP)

I was reading the STM32 Programming manual and somewhere on "page 18 " i see these two kind of stack pointers. I always think that there is only ONE stack and therefore only ONE stack pointer to that ...
0
votes
2answers
85 views

Which STM32 microcontroller has the most PWM channels? [closed]

I need a MCU with a minimum of 32 PWM outputs and at least 1 analog input. Are there any STM32 MCU which satisfies the requirements? I thought of multiplexing 16 PWM channels to 32 channels, but I ...
2
votes
1answer
96 views

STM32L0 - Delay in microseconds

I am using a B-L072Z-LRWAN1 board (which has a STM32L072 MCU) and I want to get data from a DHT11 sensor. To achieve this, I need a microseconds delay which I am not able to obtain. The libraries ...
0
votes
2answers
70 views

STM32L4's Temperature Calculation Equation shows improper results

While using STM32L4's ADC to measure its internal temperature sensor data, I am facing an issue. The equation provided in STM32L4's reference manual, seems to showing improper results. The equation ...
0
votes
0answers
22 views

what is the max speed of stm32f103c8tx in encoder mode?

I am using STM32f103 with STM32cubemx and Atollic studio, what is the maximum pulse rate (frequency) input that can be counted with STM32f103 TIM Encoder Quadrature mode? also if I configure two ...