All Questions
4,781 questions
0
votes
0
answers
26
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
92
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
0
answers
47
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
510
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
73
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
74
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
102
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
79
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, ...
-1
votes
0
answers
36
views
SuperSpeed USB3.0 Peripheral configuration in U-Boot
I am trying to configure U-Boot on a stm32mp257f-dk board so that I can use the “ums” command with SuperSpeed.
After configuring the device tree, I managed to configure the usb3dr as usb3(as it says ...
0
votes
1
answer
104
views
Only blocks appear on the 16x2 LCD connected to the STM32 Blue Pill (STM32F103C8T6) via I2C
As demonstrated by the image above, blocks are displayed on the LCD1, even though I've configured and programmed the Blue Pill STM32F103C8T6 board and connected it ...
0
votes
0
answers
29
views
Why do STM32WL55 example projects have “SingleCore” and “DualCore” versions, but STM32CubeIDE only generates Dual-Core structure
I am working with the STM32WL55CC (48-pin package). When I imported the official STM32CubeWL example projects from ST, I noticed that they provide both SINGLE CORE and DUAL CORE versions. But the ...
0
votes
0
answers
48
views
Safety isolate STM32 from SRAM when power to SRAM drop?
I have an MCU connected to external SRAM (the SRAM powered from battery only and the MCU from another constant supply).
The interface to SRAM is QSPI with max frequency of 104MHz.
I can't guarantee ...
-1
votes
1
answer
143
views
NRST button in the STM32 MCU
I just wanna ask about the rest push button connection. Are there technological reasons for making it active low and not active high?
2
votes
2
answers
346
views
How do tasks in STM32 RTOS execute concurrently?
I'm running three tasks using STM32 RTOS v2. I want to know the time difference between button presses, so I've configured it as follows:
...
0
votes
1
answer
104
views
FR_DISK_ERR from f_write on an STM32L432KC with SPI
I have been attempting to get f_write to work on an SD card through SPI with an STM32L432KC using Elm Chan's code as a base. The error I am getting is FR_DISK_ERR ...
0
votes
1
answer
77
views
USB CDC on STM32F4 disconnects when controlling 3-phase motor; STM32 runs, PC can’t detect USB
Here is my setup
STM32F401CCU6 WeAct Blackpill, which controls
A 3.3V-24V Optocoupler, which controls
A Siemens 3-phase contactor to switch a 400VAC induction motor, with flyback diode on the ...
-3
votes
1
answer
99
views
STM32F4 controlling power MOSFET
I need to control an N-channel power MOSFET (STD12NF06LT4), but the micro STM32F446 cannot do it by connecting the pin directly to the gate. I've heard about PMOS controlling NMOS but I can't find ...
6
votes
2
answers
691
views
UART on custom STM32 Microcontroller board outputs garbage data
Recently, got a custom STM32F103CBT6 microcontroller board manufactured and got a basic GPIO pin to blink an LED. However, once I started trying to output simple messages via a UART port, using a HC-...
0
votes
1
answer
105
views
Design Review STM32G0B1CET6
I’m working on my first prototype board and wanted to make sure there aren’t any major issues with my design before I move on to the layout stage. I believe I’ve got most things right, but I’m a bit ...
0
votes
0
answers
63
views
How to connect OV2640 pins?
Source: https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout/
I'm trying to connect OV2640 to STM32 using DCMI. Of course, I tried to connect d0 = do(yo), d1 = d1(y1). However, after looking up ...
2
votes
1
answer
97
views
STM32H573 code protection
I am considering porting a commercial design to STM32H573. The datasheet and manual describe a PRODUCT_STATE "option byte" located in FLASH memory. This "option byte" is discussed ...
0
votes
2
answers
112
views
How to test speed of my 1GBps ethernet port board? [closed]
I built a board with STM32H. How to test the speed I'm getting at my 1GB ethernet port? I do not what to do static ping test I want do I'm getting 1GBPS or 900MBps speed on my port.
any ways?
1
vote
1
answer
91
views
STM32 F302R8 UART RX reception error
I'm new in the STM32 world. I’m currently testing basic UART communication on an STM32 (STM32F302R8) with an HC-05 Bluetooth module, and I’m running into a strange issue with receiving data. I'm using ...
1
vote
1
answer
117
views
How is systick interrupt set in this STM32 firmware?
I'm using STM32CubeIDE with HAL to program an STM32F3O3 MCU. In my firmware a custom function uartTimer is called inside the SysTick_Handler(which is in stm32f3xx_it.c) as:
...
2
votes
1
answer
91
views
Is the STM32H573MIY3QTR compatible with optical pick-and-place?
My PCBA house says that they routinely solder WLCSP packages. Their pick and place machines have "optical alignment" but no "camera alignment". I assume that "optical ...
3
votes
3
answers
938
views
STM32H573: What are all of these VDD pins for?
STM32H573 has a lot of VDD pins. Even the smallest package has 4 of them. But also the WLCSP which has a separate VDDIO2 pin also has 4 VDD pins. What are these for?
Based on my experience with other ...
1
vote
1
answer
81
views
Does this Nucleo board work using USB (ST-LINK) port for two-way serial communication?
I am trying to communicate with a Nucleo board (STM32F303K8) using its USB port. The board’s schematics show that the USB port is connected to the ST-LINK debugger. Normally, I know this port is used ...
1
vote
1
answer
181
views
Should I add an RC filter to the analog input pin (STM32F103 ADC) for a triac light dimmer application?
I'm designing a custom PCB using an STM32F103 microcontroller to control a triac-based light dimmer. The firing angle for the triac is determined by reading the voltage from the potentiometer.
The ...
0
votes
1
answer
84
views
STM32 FDCAN: Frames visible on CANable (candump) but TX still reports ACK error — scope shows ACK notch
Summary:
Two-node bus: STM32 (FDCAN1) ↔ CANable (SocketCAN) at 500 kbit/s
candump can0 shows frames from STM32, but STM32 keeps flagging ACK error and increments TxErrorCnt.
Scope on CANH/CANL (diff ...
0
votes
1
answer
122
views
Charge Pump Circuit Connected to STM32 BOOT0 Pin - Why and How?
I found this charge pump circuit in a design where the output from BOOT0(already pulled to GND) of STM32G431CBTx drives the CP_PWM signal. Can someone explain why this configuration is used?
My ...
2
votes
1
answer
230
views
Best MOSFET for STM32 [closed]
I need to select a MOSFET for the STM32F103 (Blue Pill) with parameters that allow it to fully turn on completely when supplied with 3 volts and withstand a current of 2A. I've hoped that LLVM gave me ...
1
vote
2
answers
52
views
Selecting External Clock Source for NUCLEO-WB55RG Board
I am not finding the clock frequency of the oscillator used on the NUCLEO-WB55RG board?
What's the value?
Where can I find it?
How to select it as clock source for the MCU?
Which one should be ...
1
vote
3
answers
444
views
Custom PCB shorts at 3.3-gnd and miso-sck pins only after soldering MCU chip
I made a PCB and got it manufactured the PCB does not have any shorts (specifically between 3.3v, ground, sck and miso of an ADC SPI pads) when the MCU chip (stm32h563zit6) is not soldered
but the ...
0
votes
1
answer
81
views
Getting SD card to IDLE state with an STM32L432
I have been having difficulty getting an SD card to initialize to communicate over SPI. I am using a 32GB PNY Elite SD card, and the microcontroller I am using is an STM32L432KC. Below is the code I ...
-6
votes
1
answer
104
views
How can I protect an MCU ADC pin from high fault currents when sensing large overcurrent via a current monitor output
I’m monitoring large currents (~200A normal) using a current sense output (IMON) from a high-side driver. In a fault, the current can spike up to ~1000A almost instantly, possibly creating a voltage ...
1
vote
1
answer
91
views
STM32 RFM95 Baremetal Lora Transmission failure
I have 2 Raspberry Pi Picos communicating with the RadioHead library via LoRa RFM95 boards.
I am trying to replicate the library on STM32F446RE, so that it can be the sender.
Try as I might I can't ...
0
votes
0
answers
60
views
Seeking Schematic Review & Power Optimization Insights!
Deep Dive into Ultra-Low-Power Design: STM32U0 + E-Paper + SHT45 (CR2450)
I am engaged in a project focused on extreme power efficiency, and I am currently at the schematic review stage prior to PCB ...
0
votes
2
answers
80
views
Unexpected noise levels from ICM-20689 at 200 Hz
I’m using the ICM-20689 6-axis IMU on an STM32F4 board over I²C at 400 kHz. The device is set to accel ±16 g, gyro ±2000 dps, output data rate 200 Hz, DLPF configured for ~92 Hz bandwidth. Supply is 3....
-4
votes
1
answer
138
views
How can I install MicroPython on an STM32F4 WeAct Black Pill board?
I'm trying to make working a STM32F411 stick board from Amazon.
It's not really clear how to run MicroPython program on this board, which seems to be a WeAct Black Pill V2.0 clone.
I've searched on ...
0
votes
0
answers
65
views
Corrupted display output on SSD1322 OLED using STM32 SPI
I'm using an STM32H755 with an NHD-2.7-12864WDW3 OLED that has an SSD1322 driver, running in 4-wire SPI mode. SPI communication seems to work, but the display shows a noisy area at the top and ...
0
votes
0
answers
61
views
Potential problem with switching buffers during i2s DMA transfer
I've made this wav file player with an stm32f407vet6 and programmed it in rust. I can't figure out why when I try to play a file of the SD card it sounds terrible (but still recognizable). When I play ...
2
votes
3
answers
519
views
What should I go through microcontroller datasheet if I use vendor HAL libraries?
I am new to microcontroller programming and I am confused about bare-metal vs vendor HAL (Hardware Abstraction Layer) .
From what I understand:
Bare-metal coding = accessing registers directly (GPIOx-&...
2
votes
1
answer
82
views
STM32 LTDC Not Displaying Image
I am currently using the STM32N657 on the NUCLEO-N657X0-Q board to drive an 800×480 pixel display with 24-bit color.
The display that I am using is the NHD-7.0-800480EF-ASXV#-T. I’m using the built-in ...
1
vote
1
answer
125
views
UART buffer mostly filled with garbage data (STM32F7)
Basic setup information:
I have a Nucleo-F767ZI connected to my PC through the USB cable which is also used for its virtual com port. All the peripherals have been iniitalised to their default mode. I ...
1
vote
1
answer
174
views
STM32H573 LDO has no output
I made a very basic board with a STM32H573IIT3Q microcontroller (and the required VDD/Vcore/NRST capacitors, and not much else). As per p. 407 of the manual, I expect the LDO to be enabled after power-...
0
votes
0
answers
65
views
USB OTG VBUS protection: added SS14 diode, now device not detected
I’m designing a USB interface for an STM32 (FS port). The schematic looks like this:
U14 = TPS2051 power switch
D6 = SS14 Schottky diode
F1 = 350 mA fuse
J1 = USB connector
My goal is to support OTG:
...
0
votes
1
answer
134
views
How to implement OTG FS hardware using embedded PHY on STM32F105/107 microcontrollers
I want to be able to use the DFU1 and OTG2 FS3 functionalities in both host and device modes,...
0
votes
1
answer
115
views
STM32 UART in Interrupt mode misses data?
I am working with STM32F7 mcu running at 160 MHz, I am also running UART at 160 MHz in interrupt mode to receive data, but in DMA mode to send data. My program also runs 3 SPI and 1 I2C in DMA mode to ...
-1
votes
1
answer
69
views
Integrating Polling-Based Modules with UART Interrupt Communication on STM32 – Any Risks? [closed]
I'm developing a project using an STM32 Nucleo board. At the core of this project is a UART-based communication protocol running in interrupt (IT) mode — not polling or DMA. This protocol is ...