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 [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
vote
2answers
85 views

Firmware only runs when I press the reset button

I've created a board using the STM32F405R6T6. I am experiencing some problems: after I program the firmware onto the microcontroller, withdraw the power and reinsert, the firmware only starts to run ...
2
votes
0answers
28 views

STM32f7 ADC DMA transfer not populating the buffer

I'm trying to compute the FFT of a 100 kHz signal from the STM32f746G discovery board using the HAL and CMSIS DSP libraries and I've run into a few issues. My first issue was trying to trigger the ...
0
votes
0answers
26 views

recover the state of HAL_Init () with stm32f7

i working with stm32f7 and i want recover the state of HAL_Init () i write this code but doesn't give me the state of HAL_Init my code : ...
0
votes
0answers
28 views

How to asynchronously receive USART data using STM32 HAL?

I'm trying to accumulate any bytes that come into the UART peripheral at any moment into a circular buffer. I want to match proprietary protocol packets on this window of data, but it's unclear how I ...
0
votes
0answers
35 views

Debug uart serial communication on nucleo l010RB [on hold]

I want to implement an UART interface on Nucleo L010RB. I am using a project inspired by the examples provided by ST as there is none for the board I am using. I am using this data format: 8N1. The ...
0
votes
0answers
23 views

Concurrent DMA streams handling UART

I've currently got a STM32F777VI microcontroller working with UART receive working through DMA. The problem starts when I try to receive data from 2 UART peripherals using DMA. According to the ...
1
vote
1answer
77 views

USB Strange behavior

I am porting the USB driver from the STM32F4 device to STM32L4 device. It almost works. During the enumeration it sends and receives the information, but the data is not exactly the same as from the "...
0
votes
0answers
14 views

STM32WB55 Nucleo bluetooth stack firmware binary in bootloader mode

I want to upgrade the firmware for the bluetooth stack on the STM32WB. It requires the device to be in boot loader mode and power from the user USB not ST-LINK usb. However I've not programmed a ...
0
votes
0answers
56 views

Having trouble reading from registers with STM32F4 HAL_I2C libraries

I'm new to STM32 programming and am programming on a STM32F429 Microcontroller. My main goal is to integrate a Sparkfun UV sensor VEML6075 into the microcontroller as an external payload. TLDR: Tried ...
7
votes
4answers
850 views

What's causing this power spike in STM32 low power mode

I'm using an STM32L073RZ on a bare board with just the CPU and decoupling caps. I'm powering the board straight from an Otii Arc and measuring current consumption. I'm running MbedOS 5.11.2. When I ...
4
votes
3answers
283 views
+100

How to debug current consumption with STM32 Nucleo board?

I'm trying to configure an STM32L011-Nucleo developement board to consume about 600 uA of current or so. It uses an STM32L011K4. The datasheet states that this should be possible if I drive the MCU ...
-3
votes
0answers
93 views

Could you please help me to design this circuit? [closed]

al regulator for changing speed of fan.??
0
votes
0answers
31 views

STM32 L0 wake from STOP mode with WAKEUP pin

I am attempting to wake an STM32L073RZ from stop mode using WAKEUP_PIN_1. I'm running MbedOS 5.11. Unfortunately throughout all of the documentation (Mbed/STM) I ...
0
votes
0answers
39 views

Stm32 HC-05 bluetooth AT commands not working [closed]

I'm trying to connect bluetooth module HC-05 to stm32f103c8t6 board via usart. And first of all I've tried to change the device name, but without any success. The module RX output paired with PA9 ...
0
votes
0answers
34 views

STM32F0 CAN Transmit Timeout

I'm new to CAN communication and trying to setup CAN (normal mode) between two identical custom boards having STM32F072 controllers. Code generated using CubeMX (STM32Cube_FW_F0_V1.9.0) drivers. Here ...
0
votes
3answers
144 views

Reading 32 ADC channels

I have been working on an application which must read 32 analog channels at least 200kS per second. 0 to +3.3V 12 bit resolution 1% accuracy I've come up with 2 potential solutions: 32 ADC ...
0
votes
2answers
69 views

Reliability of STM HAL driver For Safety Critical Application

I'm working on a project which must be used in an automotive application and act as a node into the multiplex CAN-BUS network. There are number of I/O that must be actuated and some of them had a ...
-1
votes
1answer
35 views

STM32F Current sinking to I/O pin with 5V Vcc

I'm working with Nucleo-F411RE, which has a STM32F411RET6 uC. In the datasheet, the document says Vin for FT or TC pins will have maximum of Vdd + 4.0. Generally the uC uses Vdd = 3.3V then I ...
0
votes
1answer
27 views

SPBTLE-1S - ADC Scan?

I'm trying to use the SPBTLE-1S with 2 analog inputs and read the chip temperature setting, but it seems that if I try to change the mux, it results in garbled readings (eg, temperature reads -120C or ...
1
vote
1answer
61 views

Can I use the same serial1 port to communicate with two modules?

My MCU is STM32L432KC, it has two serial ports 1 and 2. But I’m wondering if I can use the same serial port1 only to communicate with two modules (not on the same Tx & Rx pins but 4 different pins ...
0
votes
1answer
63 views

Garbage in SPI RX Buffer with DMA (STM32)

MCU: STM32f030f4p6 There is garbage in reception buffer, when I use SPI and 2 DMAs (for reception and transmission). ...
-1
votes
1answer
48 views

How to handle configuration changes to the project with STM32CubeMX

Just starting to use STM32CubeMX and Atollic TrueSTUDIO to code for STM32L011. One thing I noticed is that if I made any changes to the project configuration in STM32CubeMX - they will automatically ...
0
votes
0answers
27 views

STM32F0 Capacitive Touch Not Detecting

I am trying to implement a simple capacitive touch sensor using the STM32F0's TSC peripheral. I currently have the following setup. (PA1 and PA2 are switched in the schematic, accidentally) simulate ...
0
votes
0answers
52 views

STM32CubeMX USB error “Unknown USB Device(Descriptor Request Failed)”

My STM32 project has an issue about VCP on a CubeMX generated project. When the USB cable is plugged in, the windows10 can't recognise it and in the device manager panel, it says "Unknown USB Device(...
-1
votes
1answer
61 views

What STM32 to learn with? [closed]

I am currently learning stm32, I have very little coding background, only some arduino. What is the best device to start learning on? I currently own a neucleo-f4 and must learn to program a ...
0
votes
1answer
57 views

STM32L432 full duplex DMA SPI slave locks up after communication starts

I am continuously sending a substantial amount of data between the STM32L432 and a FPGA using SPI in full-duplex mode. I decided to implement DMA on the L432 in order to increase the transfer rate ...
2
votes
0answers
39 views

Weird SWD debug port behaviour

Today I have started to encounter strange problems with SWD debugging. The debug only works if I keep my finger on the SWD pins. To be more interesting I have the same problem with the boards I was ...
0
votes
0answers
27 views

STM32F103 MPR121 SPL library

I'm trying to drive an MPR121 capacitive touch sensor module. It works fine on Arduino. Here is my Arduino code: ...
0
votes
1answer
26 views

Does anyone have an STM32F example for opamp PGA mode (ideally STM32F3 Discovery)?

Ive used STM32cubemx to set input pin and output pin of OPAMP1. Then open project in Keil and I can see the OPAMP functions are loaded and compile OK. But when I load code into MCU (STM32F303 on ...
1
vote
3answers
41 views

STM32 USB CDC: packet loss with active PC usage

I got a strange error in the USB CDC on the STM32F2. I use HAL implementation of the driver. The size of the buffer transferred in USBD_CDC_SetTxBuffer () is 4096 bytes. On the PC side, I accept the ...
0
votes
0answers
16 views

why is hadc->NbrOfCurrentConversionRank used?

why is hadc->NbrOfCurrentConversionRank in stm32 internal adc used?Can it be used to specify the number of channels like 1,2,3.etc.
1
vote
0answers
82 views

Add serial interface to ST-link clone

I recently started studying STM32 microcontrollers (BluePill STM32F103 dev board + ST-link V2 clone). I was wondering if it is possible to add serial communication to ST-Link clone? From what I ...
0
votes
0answers
44 views

Some more problem caused by EMI

Before, I asked some ways to solve the EMI problem and I got some useful answer from here: Really occasional malfunction of the Schmitt-trigger input - Really occasional malfunction of the Schmitt-...
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
1answer
423 views

RS-485 using USART or UART port on STM32

On STM32F405 MCUs there are USART ports as well as UART ports available. If I need to implement RS-485 communication then which one of these should be used, USART or UART? Or are both of them equally ...
-3
votes
2answers
100 views

STM32F4 Fewer Pin Mapping possibilities for ADC inputs

For STM32F405 100pin package, its datasheet page 39 and ref. manual page 388 as well as CubeMX shows that there are 3 ADCs each share 16-channels as shown in following images. Although it is not ...
1
vote
1answer
33 views

ADC on STM32L100C

I've been reading a lot online to figure what is not working in my code, but it seems like the ADC conversion in my code never starts and I'm getting really desperate... No matter what I do, the EOC ...
-4
votes
0answers
49 views

Many Incremental Encoders and a STM32F405

STM32F405 has 14 timer/counters, I want to figure out max how many quadrature incremental (signals A,B) encoders can be connected directly with it. Since 1 encoder needs 2 channel inputs (CH1 and ...
0
votes
1answer
32 views

STM32F405 Internal vs External Oscillator

If the frequency stability over a temperature range is not a concern in a project instead it's reliability in continuous long time operation is a more important factor then which of the two ...
1
vote
0answers
39 views

STM32F4: loss of SPI communication when enabling interrupts

I'm trying to communicate with a device via SPI (a radio transceiver, to be more specific) and I want to use external interrupts in order to wake the processor up from sleep mode when a message ...
0
votes
0answers
69 views

Why I can't change variable in it.c?

I have stm32vldiscovery project. I want to use external interrupt by PA0 (user button). When I press the button (PA0), then function EXTI0_IRQHandler must set ldOn equal 0. But ldOn always is 1. ...
0
votes
2answers
74 views

STM32F405 Setting Clock Freq Less than Max 168 MHz

For STM32F405 the max system clock frequency is 168 MHz. I want to run it at marginally lower frequency only for the sake of safety and reliability because my application will run non-stop through out ...
-1
votes
1answer
39 views

STM32F405 code compatibility with STM32F407

I have to do a project which will be based on STM32F405VG (100 Pin) but I don't have that MCU at the moment. Instead I have STM32F4-Discovery board which has STM32F407VG (100 Pin) on board. All the ...
0
votes
1answer
43 views

Channel 4 in STM32 Advance Timers TIM1 and TIM8 [closed]

There are advance control timers in STM32 family as in STM32F407 and these are specially suited for 3-phase (or 1-phase also) motor control applications using full H-bridge. These timers provide ...
0
votes
1answer
65 views

Using Character Match functionality in a STM32F7 chip

I'm trying to implement a UART receiver that works by finding a '\0' in the datastream, OR when it receives 256 characters at which point the data should be processed by an interrupt. The point is to ...
0
votes
0answers
20 views

ili9341 using 3 wire with stm32f030 [duplicate]

I am working with ili9341 TFT Display with STM32F0 MCU. And TFT display was connected with 3 configuration. I am confused between sending the "command" and "data" using spi communication. So can ...
4
votes
1answer
619 views

STM32 PWM problem

Using a STM32F407 board. I want to generate a PWM signal. I have the following function: ...
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 ...
-3
votes
1answer
65 views

How to write STM32F4 OTP Area

I am reading the reference manual page 75 that shows the flash memory organization of STM32F4 MCUs. There is an OTP area of 528 Bytes in it as shown in the image: Is it possible to write on this OTP ...
0
votes
0answers
51 views

STM32CubeProg vs STLINK Utility

There are 2 software tools provided by ST to flash their STM32 MCUs namely STM32CubeProg and STLINK Utility STM32CubeProg Page says: STM32CubeProgrammer (STM32CubeProg) is an all-in-one multi-OS ...