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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Confused about STM32 FMC pins for SDRAM

Context: I am currently working on a design that is centered around the STM32H723ZGEI6. I chose to opt for 32MB of external RAM via the IS42S16160J SDRAM IC. However, I am having some trouble figuring ...
BlueOyster's user avatar
1 vote
3 answers
180 views

Scoping the UART on a STM32 Nucleo

I have a Nucleo F446RE, which writes to UART which is handled by the built-in ST-Link over VCP on USB. I'd like to be able to see the serial signals on my oscilloscope as well. There are two exposed ...
SRobertJames's user avatar
0 votes
1 answer
41 views

Tim5 initialization unable to trigger callback function on stm32

I've been having a lot of trouble lately trying to get ADC3 to run on my STM32F746g-discovery board, so I started from scratch in order to try to pinpoint a problem. Unfortunately, now timer5 isn't ...
Eli Y's user avatar
  • 19
0 votes
1 answer
32 views

STM32 with CP2102N able to receive but unable to transmit

I have a PCB that I have designed which uses an STM32 and CP2102N. I am able to receive data sent from my computer to the board when I plug it into my computer, but I am unable to send data from the ...
Kyle Kingsberry's user avatar
0 votes
1 answer
70 views

STM32F407 Heating up, the decoupling capacitors showing short to ground with multimeter but microcontroller seems working fine

I have an stm32f407 which was running okay for like a month. but now i am seeing that whenever I connect power supply the current consumption is very high and the MCU is heating up a lot. The ...
Mir Hamza's user avatar
-1 votes
0 answers
37 views

How to make new versions of Stm32CubeIDE (1.9+) to debug fake stm32 chips

So, I have an old installation of Stm32CubeIDE 1.6.1. And, a new installation of Stm32CubeIDE 1.13.1. And, a bunch of blue pills with CH32 chips from the chip shortage times. The 1.13.1 version does ...
sx107's user avatar
  • 945
0 votes
0 answers
18 views

STM32F103C8T6 BluePill - HAL_RTC_AlarmAEventCallback - Not call

I have a problem: I can’t get the alarm clock to work on the BluePill board. I need to get an interrupt to wake up the chip from Stop mode. It seems to me that the problem is in my BluePill board, ...
Vyacheslav Nizhegorodtsev's user avatar
0 votes
1 answer
20 views

STM32F030 I2C: Avoiding NACK

I am trying to port my I2C code from STM32F103 to STM32F030. Everything works fine with writes (writes to an eeprom), but when I try to read from an EEPROM (first write transmission with memory ...
sx107's user avatar
  • 945
0 votes
0 answers
38 views

stm32, how to measure incoming pulse widths with microsecond lenghts [closed]

I have to receive an 8 bit signal that consists of pulses that are 3 to 5 µs long and separated by 2 to 3 µs long gaps. So the sequence might look like ...
dsplover123's user avatar
1 vote
0 answers
33 views

USB-PD 3.1 (up to 240W) Dual-Role Port Controller

TLDR: do any dual-role USB-C port controller ICs support USB-PD 3.1 to allow 240W charging? I am designing a power management module for an ebike which will utilize bidirectional USB-C Power Delivery. ...
Chase Martin's user avatar
2 votes
1 answer
42 views

USB,HID. How to use 0x06, 0x00, 0xFF, //Vendor Defined Page 1?

What is "0x06, 0x00, 0xFF, // Usage Page = 0xFF00 (Vendor Defined Page 1)" used for? USB HID Report descriptor. ** In the USB documentation I only found this: Unknown Usage Unknown usages ...
stm's user avatar
  • 71
1 vote
0 answers
42 views

Stm32F746g ADC SCAN mode not printing any values through DMA

I have an STM32F746g-Disco board that I'm using to continuously read 4 ADC channels directly to the memory. I've tested the ADC on continuous conversion mode for each pin separately and it works, but ...
Eli Y's user avatar
  • 19
1 vote
1 answer
51 views

Computer interface with USB devices

I'm making a computer peripheral that will be connected via a USB. The main brain is an STM32 ARM MCU, it has USB support natively. It has multiple sub-peripherals inside and it uses I2C and SPI to ...
Abd Alhaleem Bakkor's user avatar
2 votes
1 answer
48 views

USB, HID. Correct "Usage Page (Button)" declaration

Why do I need 5 commands to declare a Usage Page (Button)? If these commands are not for the button, then what are they for? ...
stm's user avatar
  • 71
0 votes
1 answer
57 views

HID USB. How does the INPUT command work?

...
stm's user avatar
  • 71
0 votes
0 answers
24 views

BLDC motor don't rotate through the C code flashed nor ST Pilot Motor unless I manually rotate it first

I'm using the nucleo-f302r8 + x-nucleo-ihm08m1 + a BLDC motor. I'm trying to make the motor spin on the press of a push-button. I made a C code for it but unfortunately, my motor seems stuck when I ...
Classy Fied's user avatar
1 vote
1 answer
33 views

Can a pin be on a state diferent from the reset state if the chip is erased?

I am working with the STM32F030CC and noticed that PA2 strangely has an internal pull-up resistor enabled when the chip is erased. The reset state of that pin is high-impedance input, and when I press ...
Daniel Sprenger's user avatar
0 votes
1 answer
66 views

Peaks on absolute rotary encoder values graph

I have a rotary encoder AEAT-9922, which is connected using SSI2 mode. The read format is defined on the 16th page of the datasheet. Encoder is connected to the STM32F373 microcontroller, which runs ...
Andrii's user avatar
  • 103
0 votes
0 answers
35 views

STM32H750B-DK ADC sample rate calculation

I am making an oscilloscope. I am using ADC with configuration like this: And I am triggering my ADC with 1 ms (at least I think it is (was always confused on how to calculate its tick, so I just set ...
LaCalienta's user avatar
0 votes
1 answer
29 views

STM32F446 DMA to Peripheral Connections

I'm using a Nucleo-F446RE with CubeIDE and HAL. I can write code which uses TIMER1, DMA request TIM1_UP to use DMA2 Stream 5 for memory-peripheral (GPIOC) transfers. I set the up DMA using: ...
65Roadster's user avatar
  • 1,265
3 votes
3 answers
352 views

STM32, how to create microseconds long custom pulses

In steady state the line (output) is high and we have to create pulses that are microseconds long and are low. It is going to be a custom sequence with different pulse lengths (for example the line ...
dsplover123's user avatar
0 votes
0 answers
31 views

Is it possible on STM32 to detect if an event triggered?

According to Stm32 Event and interrupts , STM32 events are mainly for controlling other peripherals. Is there a way on the MCU itself to detect if an event fired? That is, I don't need to interrupt ...
SRobertJames's user avatar
1 vote
2 answers
53 views

HAL_TIM_PeriodElapsedCallback firing very prematurely

I am using STM32CubeIDE with an STM32G030 micro. I attempted to implement a simple interrupt-based timeout timer on Timer17 using the HAL driver. See attached file “Screenshot1”for the ...
Brian Dotson's user avatar
2 votes
1 answer
36 views

SPI - DOUT (MISO) and Data Ready (~RDY) pin shared

I am attempting to interface to an SPI measurement IC and read data from it. This makes use of a "data ready" feature, which lets the microcontroller know that a measurement is complete and ...
xulo's user avatar
  • 158
-1 votes
0 answers
36 views

Reducing power in idle loop

I'm controlling an ST32 ARM Cortex M4 via interrupts. While waiting for an interrupt, I spin in idle loop for(;;){}. Is there a way to tell the CPU "Don't ...
SRobertJames's user avatar
-1 votes
2 answers
108 views

What's a good way to learn microcontrollers without magic? [closed]

I know software (C, C++, POSIX, assembly) and would like to learn microcontrollers at a low level, down to digital circuits. I don't want to use any tools that obscure the internals, such as Arduino, ...
SRobertJames's user avatar
0 votes
1 answer
75 views

How should I debug this ARM Cortex M STM32 UART write?

I have a STM32F446RE on a Nucleo F446RE, and I'm trying to learn how to program the UART to write over the Virtual COM Port (connected to USART2). I'm able to download someone else's code, modify it ...
SRobertJames's user avatar
0 votes
0 answers
55 views

STM32 L4(Nucleo-144) CAN Tx pin stays high and dosen't transmit any data

I'm new to STM32 and a starting knowledge of C. I'm trying to get some level of CAN communication to be working. I've tried looking up the HAL'S required but for some reason no matter what I do, the ...
George kirby's user avatar
0 votes
1 answer
96 views

Why does my STM32 only run once when flashed?

I have a custom board with an embedded STM32L451RETx LQFP64. I can load a firmware using either a J-Link or a ST-Link probe and run it. My problem is that when I trigger a reset or shut down the power ...
Hector Silva-Diaz's user avatar
1 vote
1 answer
62 views

How do I use CMSIS without a GUI or IDE?

I have a bare metal STM32 C project working on a NUCLEO-F446RE. To learn about MCUs, I did not use any code generators or IDEs, but created a simple Makefile, linker script, start up C code, and <...
SRobertJames's user avatar
0 votes
0 answers
35 views

One connector pin connected to TX (or RX) and DP (or DM) of STM32 microcontroller

I have a project here that needs the STM32L432 to operate in two modes, UART and USB. It will be connected to another system via a 5 (or 4) pin connector. It operates mainly in UART mode with pins ...
уве вонг's user avatar
1 vote
1 answer
29 views

Disable peripheral interface via STM32 Memory Boot Mode remotely

Here's the current scenario: There's a remote STM32 MCU F746ZG that is prohibitively expensive to retrieve or access, and only has an I2C1 connection. The USART peripheral interface is causing issues (...
UberChio's user avatar
10 votes
3 answers
2k views

Why do STM32 MCUs divide RAM into SRAM1 and SRAM2?

Why do STM32 MCUs divide RAM into SRAM1 and SRAM2? They seem contiguous, so that I could simply configure my linker to treat both as just one chunk of RAM. Should I do that? If not, how do I tell the ...
SRobertJames's user avatar
2 votes
0 answers
29 views

Accuracy of PTZ with Permanent Magnet Synchronous Motor (PMSM) [closed]

For my project I need a pan-tilt system able to provide 0.1° resolution or better. I do have my own solution based on stepper motors with planetary gear for low backlash and 0.05°. However, I designed ...
D. K.'s user avatar
  • 131
0 votes
1 answer
24 views

STM32G431CBux and NXP TJA1051T/3/1J

Given is a STM32 G431 CBUx MCU and a TJA1051/3 CAN transciever. As I also need USB on this MCU, the only way to connect the CAN transceiver are pins PB8 (FDCAN1_Rx) and PB9 (FDCAN1_Tx). The problem ...
pm4812's user avatar
  • 67
0 votes
1 answer
31 views

How to program and download a file to STM32F746-disco board?

I'm trying to program my touchGFX project and download a music file to this board without much luck. The touchGFX project works fine but I'm testing the sound part now. I managed to extract the ...
Rodo's user avatar
  • 907
0 votes
0 answers
33 views

STM32 FreeRTOS UART failing to return from interrupt

MCU is an STM32L422 FreeRTOS (CMSIS-V2), 3 simple tasks, they run just fine on their own. USART1 is configured to receive data via IDLE detection and DMA circular buffer. Again it works fine on it's ...
Charles's user avatar
  • 137
0 votes
1 answer
42 views

Selecting the Correct Capacitor and Resistor Values for an HSE Crystal on an STM32F446RETx

I am currently working on a PCB that involves an STM32F446RETx microcontroller. I've encountered some difficulties in selecting a suitable 16MHz HSE crystal oscillator. Since my intention is to order ...
Y-E-Quit's user avatar
  • 111
0 votes
0 answers
41 views

STM32H7 as SPI slave only

I'm moving my project code from STM32F407 to STM32H743 and I am stuck with SPI. First of all STM32H743 has more registers and it also lacks some of them like RXONLY register in CR1. What I'm trying to ...
KlimDuda's user avatar
0 votes
1 answer
35 views

STM32F7: Route I2C3 (clock and data) to I2C1 in software?

This is for STM32CubeIDE on windows 11. I have a STM32F746G-DISCOVERY kit (with display) that has a WM8994 (Audio Hub CODEC) connected to I2C3 for control. I'm learning how to generate a sound from ...
Rodo's user avatar
  • 907
0 votes
0 answers
28 views

SWD Debug Using U-Link Pro for STM32 Device

I want to debug my stm32f429 device using U-Link Pro in Keil. I applied the required connections for that and when I try to SWD debug in Keil I receive below "Communication Failure" error. ...
Semih Urtekin's user avatar
0 votes
1 answer
107 views

Pushing a button press from a driver to three different transistors with three state logic

I am working on a project within my company that involves a relay board used to control three different motors when an external 24 V button is pressed. The existing setup works based on this principle....
Knowledge's user avatar
  • 391
0 votes
0 answers
41 views

Documentation/manual for stm32-wm8994 library?

I have a STM32F746G-DISCOVERY kit that has a WM8994 (Audio Hub CODEC). I'm learning how to generate a sound from the STM32F746G and send it to the WM8994 via Serial Audio Interface (SAI) to use in my ...
Rodo's user avatar
  • 907
2 votes
1 answer
63 views

OctoSPI HyperRAM PCB Routing

I am attempting to route a HyperRAM BGA chip with a HyperBus OctoSPI interface to an STM32 MCU. This is on a 2 layer board. After much consideration, I have determined that the best placement of the ...
CryptoAlgorithm's user avatar
0 votes
1 answer
60 views

Can I program Arduino Uno R4 On STM32 IDE?

The microcontroller of Arduino Uno R4 is Renesas RA4M1 (Arm® Cortex®-M4). -So can I program Arduino Uno R4 On STM32 IDE? -Can I use STM32 library for Arduino Uno R4? Thanks!!!
Đức Chung Nguyễn's user avatar
1 vote
0 answers
49 views

Monitoring VREF+ buffer output in STM32L552

I am working with the STM32L552 microcontroller in a critical application where a portion of the external circuit relies heavily on the 2.5 V VREF+. The stability of this reference voltage is ...
tronhawk's user avatar
0 votes
0 answers
26 views

STM32: I2C Master Slave code does not work

I have two board: nucleo U575zi-q & nucleo L432kc u575 is the master board, l432 is slave. I want to transfer data between Them, and below is my two codes. this is my master's code ...
이준표's user avatar
2 votes
2 answers
489 views

STM32 - How to understand if GPIO is high current or not?

I'm working with the STM32F303 Microcontroller. The datasheet says that almost all pins are high-current, with the exception of analog inputs. I want to select multiple outputs to drive the ...
Delta's user avatar
  • 513
0 votes
0 answers
32 views

LORA-E5 with BME68x - code stop in function HAL_I2C_IsDeviceReady

I am currently working on integrating the Wio-e5 LoRa (https://www.seeedstudio.com/LoRa-E5-Dev-Kit-p-4868.html) with the Grove BME688 Gas Sensor (https://www.seeedstudio.com/Grove-Gas-Sensor-BME688-p-...
GRAZIELE DE CASSIA RODRIGUES's user avatar
0 votes
0 answers
20 views

Picking components for a battery power pack

I am a first-year Computer Engineering student building my first PCB and decided to go ahead and build a battery pack similar to the Shargeek Storm 2. I am using an STM32F103C8T6, an SPI-controlled ...
yoyo's user avatar
  • 101

1
2 3 4 5
69