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.
4,787 questions
2
votes
2
answers
425
views
Detecting when a 24v pump turns on
I need to detect when a 24V pump turns on. I've decided to do this using an optocoupler. Could you please tell me if my circuit is correct?
5
votes
4
answers
477
views
Why would STM32 have a diode in series on the NRST line if it's supposed to get signals from STLINK?
Wouldn't the diode block any incoming signals? How does the NRST actually work? All I can infer from the datasheet is the pin is responsible for mcu resets, it has an internal pullup-high resistor ...
0
votes
0
answers
45
views
STM32H723ZG - Can I receive 32 bits on a max 16 bit data size SPI receive only slave input?
I am working on a problem where I have many SPI devices and many populated SPI inputs on a STM32 H7 Nucleo board. SPI 1, 2 and 3 offer transmitting and receiving data of sizes up to 32 bits, but SPI 4,...
3
votes
1
answer
131
views
PCM3168A + STM32 SAI TDM: Periodic Noise at Low Sample Rates (16 kHz / 8 kHz)
I’m using TI’s PCM3168A audio codec on a DSP development board together with an STM32H725IGT, connected via the SAI peripheral in TDM mode. At sample rates of 48 kHz and 32 kHz everything works ...
-3
votes
0
answers
44
views
VCU for an EV, student project, choice of microcontroller [closed]
Came here to seek guidance on whether to use ATmega chips or STM32F103 for a Vehicle Control Unit. The computer would be mainly dispatching CAN communication and receiving driver's requests, so ...
0
votes
1
answer
73
views
How to generate single pulse with STM32 timer
I'm trying to figure out, how to configure General purpose timer on STM32C092 in STM32CubeIDE to generate single pulse when triggered from code. I wan't the pin to be low until the trigger comes, then ...
0
votes
0
answers
31
views
Unexpected ADC Voltage on Idle Channels in an STM32-Based Multi-Charger Current Sensing Circuit
I have mounted 4 mobile charger modules, which are switching power supplies, onto a single PCB. In my circuit, I’m also using an STM32 microcontroller, and I have enabled 4 ADC channels to read ...
1
vote
1
answer
105
views
STM32 PCB Review 4-layer
This is my first PCB and I just wanted a review or maybe some tips. Its a STM32 PCB with a USB connection and Micro SD card slot. Its a 4 layer with a SGGS stackup. I was just looking for a review or ...
-2
votes
1
answer
67
views
Does STM32H573 support a non-LL HAL for non-octo SPI slave mode?
The STM32H573 SDK includes two HALs: LL and HAL.
I could find only one example using the non-octo SPI in slave mode, but it uses the LL HAL, stm32h5xx_ll_spi.h. Is there a non-LL HAL for non-octo SPI ...
4
votes
2
answers
525
views
DC voltage measurement using microcontroller
I am using a resistor divider of 523 kΩ on the high side and 10 kΩ on the low side. Using an STM32 microcontroller to read the voltage of the supply.
How is the voltage actually being converted to ADC ...
0
votes
0
answers
76
views
STM32F4 interfacing with SD card
Interfacing SD card with STM32 using SPI interface, SD card is 16 GB, and while storing JSON files to SD card it stores up to 50 files in faster rate but after 50-60 files the rate of storing files ...
0
votes
1
answer
79
views
Or-ing power supplies on STM32-based design
I am currently working on an stm32-based design. I am trying to understand how to power the stm32 through USB. We came up with the following solution:
The idea is that +3v3_power is the main rail of ...
2
votes
1
answer
109
views
ADC closer to sensor or MCU if they are connected via longer cable in noisy environment and differential signal?
I am designing a system where I have several daughter boards with voltage or current sensors (several or one on each board).
One board is the master with the MCU.
Because the system is larger and in a ...
0
votes
0
answers
86
views
Getting switch cases to work as intended in STM32 -BluePill
I am using a bluepill, and the final case statement is looping constantly from GO_TO_TOP -> COME_TO BOTTOM -> ROTATE_ACTION, the 'top' variable is being latched to '1' at the GO_TO_TOP case ...
-1
votes
0
answers
78
views
Why does STM32Cube include 2 different HALs with different implementations? [duplicate]
I want to write an application for stm32h573 that uses a single HAL for a combination of peripherals that are not all used in the same STM32Cube example. However, ...