All Questions
4,778 questions
1 vote
2 answers
66 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
35 views
stm32f4 interfacing with sdcard
Interfacing SDcard with stm32 using Spi interface, sdcard is of 16gb ,and while storing json files to sdcard it stores upto 50 files in faster rate but after 50-60 files the rate of storing files ...
0 votes
1 answer
60 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
74 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
67 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
1 answer
63 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
35 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
100 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
47 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
134 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
328 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
96 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
76 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
96 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 ...