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
61 views

PCB design - LED power supply

I'm currently in the process of designing a new custom sim racing steering wheel. In the past, I've successfully designed my own wheels, including custom-made printed circuit boards (PCBs) with ...
Djowwie's user avatar
  • 11
0 votes
1 answer
70 views

Error in programming STM32

I have a custom STM32F446RC board, but i am not able to program it(Using ST-Link-V2). STM32CubeIDE is giving the following error while programming: "Target no device found. Error in initializing ...
Vaaarad07's user avatar
0 votes
0 answers
78 views

Smart Card (SIM Card), connect to stm32 via USART

After get ATR and send PTS, I tried send APDU, but response always the same as APDU which has been sent. I tried to change the frequency for USART (clock) and baud rate, after I tried to change PTS ...
SAP4K's user avatar
  • 1
0 votes
0 answers
46 views

STM32H743VIH6 after an indefinite time, the PDR_ON ball (TFBGA100), pin F7, burns out

I have a custom board for STM32H743VIH6 (BGA 100), used for charging and balancing 3S2P batteries. The board goes into STOP mode (SVOS5) and wakes up every 3 seconds to measure the current. After a ...
Anton Tarasavets's user avatar
0 votes
1 answer
84 views

MCU Input ESD Protection + debounce

I'm working on a device which requires reading from a reed switch (slow, water meter) which should work in a bit noisy environment (a few relays switching back/forth on the same board, triacs and ...
Taras Shcherban's user avatar
0 votes
0 answers
22 views

BLDC motor A2212 wont spin using STM3202 evaluationboard

I am running into a problem with the STSPIN3202 evaluationboard. I cant get my BLDC motor A2212 930KV 15T with sinusoidel BEMF to spin. I have tried 6 step sensorless and FOC sensorless. In case of 6 ...
Luuk Benningshof's user avatar
0 votes
0 answers
36 views

What is the fastest many-to-one wireless transmission method? [closed]

I'm working on a project where I need to send data from multiple sensors to a computer wirelessly. My instructor asked me to use Bluetooth Mesh, and after testing, I found that the speed of Bluetooth ...
Handsome Fish's user avatar
0 votes
0 answers
24 views

Is is possible to create bxCAN communication between two devices with just CAN1?

I'm using two nucleo-l433rc-p boards, which only have the can1 peripheral. The only guides I find online use both CAN1 and CAN2 in their communication so I'm asking if it is even possible to do. If it ...
Mr4's user avatar
  • 1
2 votes
3 answers
2k views

Can I control any transistor (NPN/PNP) using a GPIO pin of my MCU? Is my schematic correct?

Can I control any transistor (NPN/PNP) using a GPIO pin of my MCU? Is my above schematic correct? EDIT 15/02/24: A REVISED SCHEMATIC, AFTER THE ANSWERS Is the revised schematic below now correct? My ...
Bala's user avatar
  • 60
0 votes
0 answers
69 views

Is my tactile push button switch connected properly to reset my STM32?

Is my tactile push button switch connected properly to GND so that the NRST pin of my STM32 gets GND and resets the STM32 when pressing the push button? Please check if my schematic for the push ...
Bala's user avatar
  • 60
1 vote
0 answers
54 views

how can I calculate impedance matching for STM32WLE5 RF network?

I am attempting to compute an impedance matching network by following the guidelines outlined in the ST Application Note - AN5457. However, on page 24, the formula and calculations appear perplexing ...
Atrahasis's user avatar
  • 151
0 votes
0 answers
18 views

stm32H7 SDMMC1 Falling and rising edge

I'm trying to make my sdmmc1 project read cmd data by rising edge, what i have tried: Tried both hsd1.Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING; and hsd1.Init.ClockEdge = SDMMC_CLOCK_EDGE_FALLING ...
KlimDuda's user avatar
1 vote
0 answers
76 views

SPI2 on the bluepill STM32F103C8 doesn't work

For a while, I have been trying to interface a 1.8 TFT ST7735 to my STM32F103C8 bluepill using SPI2 and HAL. I tried SPI1 and has worked perfectly, but because I am interfacing LoRa to the bluepill ...
Hamo's user avatar
  • 41
0 votes
0 answers
49 views

Unexplained issue with an ST Microelectronics STM32F100C6T6 MCU

I have been working on a rather sophisticated switch-mode power supply out of a Crown professional audio amplifier. The STMicroelectronics STM32F100C6T6 is used on the power supply PCB for ...
Chitra's user avatar
  • 1
0 votes
0 answers
12 views

STM32U585 LPUART Half-Duplex Config

I am trying to configure the LPUART1 on STM32U585 in single-wire half duplex mode. As I understand, in half-duplex mode, only one pin is configured which is used to send and receive data. I need the ...
Neharika's user avatar
1 vote
0 answers
161 views

STM32H7 UART DMA Issue

I have two MCUs, first one is STM32F070F6P6 which sends data over USART2 TX DMA and second one is STM32H755ZIT6 which receives data over USART2 RX DMA. Also notice that STM32F070F6P6's TX Pin ...
Alatriste's user avatar
  • 150
1 vote
1 answer
72 views

What questions should I be asking in order to debug this I2C?

I'm currently working on a bare metal embedded rust project and I'm trying to get the I2C peripheral on the STM32 Nucleo board to work. I've managed to start the peripheral and even get the master to ...
omneuro's user avatar
  • 11
0 votes
1 answer
74 views

How to position the 1.5 kΩ pull-up resistor on USB Type-C D+ connection?

I am designing a TYPE C plug with STM32L432KC MCU and was wondering how to physically position the 1.5 kΩ pull-up resistor on D+ connection. (male plug --- ft323 --- mcu) Should it be next to the MCU ...
Bala's user avatar
  • 60
0 votes
1 answer
62 views

max3232 disconnection suddenly - problem

Hi I use a Max3232 chip to connect the RS232 between the microcontroller(STM32F103) and an HMI, the problem is that sometimes this connection will be disconnected and no longer work, this may happen ...
Ashkan Khajeh's user avatar
0 votes
0 answers
41 views

System Memory (Internal Boot ROM) of STM32F446XX

The datasheet and this article refer to an internal boot ROM that stores the bootloader on the STM32 MCU. The memory map (for the STM32F446RE) shows it to be at ...
NeedToKnow's user avatar
1 vote
1 answer
43 views

STM32 UART in LIN mode sends with incorrect baudrate but not in asynchronous mode

I am using the UART of an STM32F103C8T6. When selecting the Asynchronous mode via the CubeMX everything works fine using either of the functions ...
Felix's user avatar
  • 13
0 votes
0 answers
26 views

stm32h7 sdmmc DATA problem

Im trying to send data with sdmmc and i cant see anything happening in data line on oscio. CMD and CLOCK working fine but data just doesnt reacting. this is how clock and cmd looking like (no data ...
KlimDuda's user avatar
0 votes
1 answer
75 views

Why would a UART only transmit the first character and then stop?

For some context I'm using a STM32H7A3 chip: reference manual With this UART and pin configuration: ...
ultraturbonoob's user avatar
0 votes
0 answers
41 views

AD7708 ADC SPI receive problem in STM32

I'm currently working on a ADC AD7708. There is not much document or library for this IC. I'm writing ad7708 driver for stm32f446 mcu. In datasheet register structure of ad7708 shown as below: I ...
Burak Kayaalp's user avatar
0 votes
1 answer
32 views

STM32H7 Baremetal I2S Circular DMA

I am trying to run an I2S ES8388 codec from a stm32h750. Without DMA, the codec is working just fine, and I can output and receive data to and from it respectively. But, I'm experiencing problems with ...
sx107's user avatar
  • 1,077
-2 votes
0 answers
31 views

how to print to console in RTOS on STM32? [duplicate]

I want to know how I can Print hello world on the console on RTOS in STM32Cube IDE
Subzee's user avatar
  • 15
0 votes
1 answer
43 views

Are LSE and HSE a must when designing a PCB with an STM32F103C8T6?

I was designing PCBs with STM32 blue pill, but I need to design without blue pill, so I will need an STM32F103C8T6. Do I need both resonators? I read that one of them is for LSE and the other is HSE ...
Akinci's user avatar
  • 1
0 votes
4 answers
74 views

Where should the interrupt vector table be placed in memory on STM32H7A3RGT6 chips?

According to the STM32H7 programming manual "On system reset, the vector table is at address 0x00000000." But at the same time the STM32H7A3 reference manual says in it's memory map ...
ultraturbonoob's user avatar
-1 votes
1 answer
42 views

STM32F7: How to store one cycle of sinewave (1kHz) in array as PCM data?

I'm using a STM32F746 discovery board to learn about digital audio. I'm doing the basics right now. I want to store a single cycle of a 1kHz sinewave in an array and eventually use a DMA to transfer ...
Rodo's user avatar
  • 1,056
0 votes
2 answers
96 views

STM32 UART without HAL library

I am writing register level code for STM32F4 & in my code there is a timer for calculation of the frequency of an input signal. I am trying to implement a UART for sending calculated data to ...
MSB's user avatar
  • 21
0 votes
0 answers
38 views

STM32F302xx Flash Location

recently I tried to flash my STM32F302CCT7 with a ST-link, openOCD, and gdb for arm. I am using the rust toolchain which requires that the ROM and RAM locations to be specified in a memory.x file when ...
matthew choe's user avatar
0 votes
0 answers
52 views

STM32F4 HAL_BUSY Flag raised, not able to be cleared

I have a LM75A that I communicating with over I2C, using the STM32F4x Hal. I am using a STM32F446RE board. My code is abstracted in multiple layers to allow for some modularity. LM75A_Driver.c and .h ...
Liferafter's user avatar
0 votes
1 answer
32 views

How can I send the output of a function generator to the STM board's ADC and check the digital values at the output?

I have an STM32F series board and I'm using the ADC. How can I send the output from a function generator to the board and get the digital output values on the STM32Cube IDE? I'm using STM32cube IDE 1....
Subzee's user avatar
  • 15
0 votes
2 answers
79 views

STM32F4 USART: start bit detection sequence when oversampling by 8

I'm using the USART on an STM32F4 series MCU. I'm wondering how the receiver detects the start bit when oversampling by 8 is set. The reference manual says the start bit detection sequence is the same ...
chan peng's user avatar
0 votes
1 answer
84 views

Ethernet PHY design query: Compatibility of DP83848QSQ/NOPB with STM32F407VET6 and pin configuration concerns

I'm relatively new to Ethernet PHY design and currently working on a project where I've chosen the DP83848QSQ/NOPB PHY and plan to connect it to the STM32F407VET6 microcontroller. However, I've ...
Alirezaaghasi's user avatar
0 votes
0 answers
48 views

Noise in SPI Chip Select when communicating between boards

I'm writing SPI code to communicate between an STM32 Nucleo Board and a TI Dev Board, the CC1310-90. I'm using a manually toggled chip select pin. The data my TI board is receiving is junk, and after ...
numerousobjective7's user avatar
0 votes
1 answer
115 views

Horrible noise coming from speaker when using SDIO

I have both an SD card and a MAX98357A (I2S Amplifier) breakout board connected to my STM32 Nucleo. As soon as I open a file for reading in FatFs using the f_open ...
Movieboy's user avatar
  • 217
1 vote
1 answer
47 views

Voltage divider with serial resistor connected to BOOT1 pin from STM32F10X microcontroller

I was viewing a circuit in a schematics that is given to me. I found this voltage divider with a resistor connected to the BOOT1 pin from a microcontroller: NOTE: BOOT1 is connected to the BOOT1 ...
Suvi_Eu's user avatar
  • 851
0 votes
1 answer
39 views

Power Supply for STM32G071CxU microcontroller (VDD/VDDA vs VREF+ for analog peripherals)

I am currently working on a STM32G071C8U7 microcontroller schematic and have some questions regarding the decoupling and general connectivity of the power supply pins. First I am presented with this ...
rbe's user avatar
  • 3
0 votes
1 answer
48 views

STM32 and Elegoo supply voltage

I wrote code using an STM32F407 to read the voltage of a potentiometer on the input pin of the ADC. This is the circuit: I tried taking the power directly from the STM32 and then, as in the photo ...
KaleM's user avatar
  • 405
2 votes
0 answers
72 views

STM32f030 Inconsistent clock

I am trying to write my own microsecond delay function for an STM32f030R8t6 by using the counter function on Timer 3. The first time I power the microcontroller up after flashing the delay works ...
Eric14003's user avatar
1 vote
2 answers
51 views

STM32F417 DFU bootloader fails to start HSE crystal

I have a problem with a custom STM32F417 board. On some boards the DFU bootloader works fine, while on other ones it fails to connect by USB. In my custom firmware all boards connect fine by USB. ...
jpa's user avatar
  • 8,379
0 votes
0 answers
31 views

STM32G4 low-power mode

I have an issue with going into low power mode on the STM32G473. To be able to use the low power regulator the SYSCLK must be below 2Mhz however it seems impossible to reduce the SYSCLK that low on ...
Birdie's user avatar
  • 41
0 votes
1 answer
38 views

Nucleo microcontroller board clock stability modifications

I have an STM32 MCU board namely Nucleo-F303K8 and its schematics is given here. For a better clock stability, I configured this board(by modifying some resistors as shown in the document) such that I ...
pnatk's user avatar
  • 1,422
1 vote
1 answer
94 views

Connecting 25MHz crystal to STM32H7

I want to connect a 25MHz crystal to STM32H750. However, I've trouble finding a part which is suitable for use with this particular MCU. From AN2867: In addition: The gm for STM32H750 is 1.5 mA/V (...
bluewheel's user avatar
0 votes
1 answer
49 views

Con’t connect STM32 board to laptop using ethernet cable. Ping works. Host application always shows Wifi IP and gateway, not static IP [closed]

I have a laptop with Wifi. I directly connect a straight-through ethernet cable between my laptop and my custom STM32 board. Using IPV4. STM32 board with LWIP, set as server, IP 192.168.3.1, Gateway ...
YounesCHTIOUI's user avatar
0 votes
0 answers
41 views

Role of RTS and DTR With CH340X, STM32WLE5, STM32CubeProgrammer

I am trying to (design a PCB where I will) program a STM32WLE5C8U6 via UART from my laptop using a CH340X in between. The CH340X shows this application circuit in the datasheet: I understand what the ...
nothing's user avatar
0 votes
1 answer
42 views

Can't write to status register of SST25VF010A flash memory

I'm having trouble writing to the status register of a SST25VF010A-33-4I-SAE 1Mbit SPI flash memory on a board I recently made. I'm using an STM32F401CBU6 to communicate with the memory. I can read ...
Swiss Gnome's user avatar
0 votes
2 answers
72 views

How can I enter boot mode with an STM32F411CEU6?

I ordered a PCB with the following schematic based on an STM32F411. As you can see, the NSRT pin is connected to a LP filter. I think I should have connected it to a switch to easily enter boot mode, ...
maths soso's user avatar
0 votes
1 answer
64 views

Using UART/USB Bridge vs straight USB stm32

I've been doing some research over the last few days into implementing usb communication protocol on the stm32. I know that the stm32 has dedicated pins for USB communication, however I still see a ...
Tom Avent's user avatar

1
2 3 4 5
72