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
6 votes
3 answers
416 views

STM32F4 TQFP100 part orientation

I have mounted a STM32F446VETx on my PCB as shown on a picture of my PCB: For me the pin 1 marker in the big mark at the top right of the picture, near C67. But, after a lot of trial, I can't connect ...
Blup1980's user avatar
  • 6,279
0 votes
0 answers
12 views

Remapping PD1 to be a GPIO STM32Duino

I would like to remap the PD1 PD1-OSC_OUT pin on the STM32F103C8 running arduino framework. Originally on bluepill these pins ...
ManeGote's user avatar
0 votes
1 answer
30 views

Using STM32F407 to drive 8 pulse pins

I have an application where I need to send send signals to 8 stepper drivers on my STM32F407 Discovery board. Each stepper driver requires an independent PULSE, DIRECTION, and SLEEP signal. DIRECTION ...
jlaufer's user avatar
  • 39
0 votes
0 answers
48 views

Two basic timers on an STM32 don't work simultaneously

I have an STM32L073RZ and it has TIM6,7 basic timers. I need a timer interrupt. TIM7 works fine as I want, but TIM6 doesn't. I tried different settings of prescaler and counter: same as TIM7, almost ...
sneiksus's user avatar
0 votes
0 answers
27 views

STM32 SWD Debug Hangs

I try to debug my PCB, which has STM32G030, with SWD in a 3kHz noisy environment. SWCLK and SWDIO traces have both 22 Ohms series and 10k Ohms pull-up resistors attached to them. As the noise source ...
Semih's user avatar
  • 67
0 votes
1 answer
23 views

STM32G030K6 24V on input pins with internal protection diodes

I have 24VDC signal and I want STM32G030K6 MCU to detect it (state low/high). I know this MCU has internal diodes on some pins, connected from inputs to VDD and max positive injected current is 5mA. ...
Mietek's user avatar
  • 1
0 votes
0 answers
21 views

The actual PWM frequency output by STM32F103C8T6S is twice the designed frequency

This is an experiment implementing LED breathing light using PWM.As per the program, I configured it for 1kHz PWM, why is it outputting at 2kHz?
Antron Mack's user avatar
0 votes
1 answer
60 views

STM32 - Implementing UART to USB convertor

Considering STM32 Nucleo Boards, implementing a communication by serial port with a computer is a matter of using UART on the Nucleo Board and connecting it to the computer via USB, where you emulate ...
Humphrey Appleby's user avatar
0 votes
1 answer
57 views

STM32F103 UART DMA transmits corrupted data sometimes

I`m using STM32F103CBT6 core with UART via DMA on 9600 baud rate. The device in idle state transfers data between controller and bill validator unit. In the same time I`m sniffing the data that are ...
Nazar Diadiun's user avatar
0 votes
1 answer
29 views

OV7670 QQVGA RGB565 config

Does anybody has register configuration for OV7670 QQVGA RGB565? I found this but I'm not sure that it gives QQVGA resoltuion. ...
subavet995's user avatar
0 votes
2 answers
57 views

How does STM32 know if I'm using SWD or JTAG

My curiosity got the best of me so I'm hoping someone here can help educate me. I'm using a STM32 (STM32F101C8Tx to be precise), which supports both JTAG and SWD. Within STM32CubeIDE I can switch ...
ITMan's user avatar
  • 3
1 vote
1 answer
34 views

Making disconnectable quartz resonator on STM32: disconnect one or both wires?

I am making STM32 development board and I want to make disconnectable quartz resonator on OSC32 pins that can be used for other purposes, for example, as GPIO pins. I am connecting resonator using ...
t1m013y's user avatar
  • 11
0 votes
0 answers
54 views

How do I make a schematic showing wire connections? [closed]

I am doing a project where I am using two STM32F103RBs and two JOY-IT SBC-CAN01 (MCP2515) for my CAN. I got this problem where I want to make a schematic showing how the wiring is setup, but I can ...
Kenno's user avatar
  • 1
-1 votes
0 answers
27 views

TDK CH101 IC2 Connection with STM32 Nucleo L073Rz

i am trying to run the TDK CH101 Sensor on STM32L073RZ. I am stuck to porting the API and writing the Firmware on the sensor. I read the Programmers Guide from TDK and understand that I have to use ...
David Spr's user avatar
0 votes
0 answers
26 views

How to setup STM32 + libopencm3 on Windows

I am an electronic hardware engineer with experience and vendor specific IDEs. I am following this series. I am following the steps mentioned on the GitHub to get started. BTW just want to mention I ...
Yash Kudale's user avatar
0 votes
1 answer
45 views

How to connect a STM32F4xxxRE on a custom PCB

This is the first time I've designed a PCB with a STM32. I found a PDF on the internet that gives me an example of a Nucleo connection (STM32 Nucleo-64 schematics), but I'm not sure if my schematic is ...
Paulo971's user avatar
-1 votes
2 answers
145 views

STM32 microcontrollers while(1) speed

I did a test on different micros like STM32F0 G030 F103 F401 and STM32H745. I know that various units like NVIC, WIC, DWT etc. take the CPU out of the while loop and the CPU is always busy. But how ...
Mikaeal's user avatar
0 votes
1 answer
28 views

STM32F103: Using DMA1 Channel 3 for SPI1_TX and USART3_RX same time

I'm currently working on a project using an STM32F103RET microcontroller. I need to use SPI1 to write log data to a flash chip at an rate of 64 bytes every 20 milliseconds, and use USART3 monitoring ...
cfrpg's user avatar
  • 3
0 votes
0 answers
42 views

Facing runtime issue on STM32L452

I was working on a project with STM32L452RET6 using baremetal programming. I use Uart1, Uart2, I2C, Timer6, Timer2, RTC and GPIOs for my project. Uart2, RTC and Timer 6 works in interrupt with ...
Suhaib Saiyde's user avatar
0 votes
2 answers
36 views

In STM32F4 Complementary PWM, Can we set %0 dutycycle both CH1 and CH1N

My question is about complementary PWM. Can we get %0 dutycycle at CH1 and CH1N at the same time. Datasheet of MCU: https://www.st.com/resource/en/reference_manual/rm0383-stm32f411xce-advanced-...
MSB's user avatar
  • 37
0 votes
2 answers
58 views

PCB Design review for STM32 USB-UART bridge

Could anyone review the schematic for CH340 chip. My goal is to drive STM32F030C8T6 automatically into bootloader mode while uploading code. Unfortunately I am not able to program this board without ...
RainerB's user avatar
0 votes
0 answers
39 views

Multiple stm32 to one external RAM

Is it possible to connect a RAM chip to two stm32? I assume that RAM should act as a data buffer from which the results of calculations can be read. Or is it better to use the third stm32 to make ...
Kirill's user avatar
  • 1
0 votes
1 answer
27 views

PWM on STM32F411 is not working using timer1

I am trying to use this code to control brightness of a LED using channel 3 of Timer 1 (PA10 pin) on the STM32F411: ...
JPgiq's user avatar
  • 59
0 votes
2 answers
49 views

STM32 ADC DMA low raw/Voltage readings

I am experiencing the following problem. When I setup an ADC with DMA for 5 channels, I get lower readings than the expected ones. We have PCBs of the same batch in 3 countries, but only the ones ...
K S's user avatar
  • 1
0 votes
0 answers
49 views

NUCLEO-L432KC timer PWM frequency problem: PSC and ARR values not resulting in desired PWM frequency

I have been trying all day to use timer 1 channel 1 of a nucleo-L432KC (with a STM32L432KC MCU) to generate a PWM signal of frequency 50 Hz (pulse width 20 ms). I tried many, many, MANY different ...
Luis Alcantara's user avatar
0 votes
2 answers
70 views

How to config Channel A/B of FTDI FT4232H to JTAG

I'm new with FT4232H. I just make for myself a FT4232H device with 4 channels UART. (Custom board for learning and researching) And I want change channel A and B to JTAG for debugging STM32 using JTAG ...
Nhat Micls's user avatar
0 votes
1 answer
72 views

How to program an STM32 MCU on a custom PCB

I am designing a PCB using an STM32 MCU to control a motor. My main concern is being able to use STM32CUBE IDE or the Arduino IDE to program the board. I don't want to spend a lot of money on a JTAG ...
Cqllysto's user avatar
0 votes
0 answers
32 views

STM32F103 DMA only works in DEBUG Mode

I am new to SMT32 development and trying my hands on it. I am using Keil and trying to avoid any HAL driver to understand things better. I am trying to get working DMA to receive data from UART (...
Rakesh Mehta's user avatar
0 votes
1 answer
44 views

How to correctly shift the wipers of MCP4331 per SPI?

I am using an STM32 F401RE to control a Quad 7-bit digital potentiometer MCP 4331 using SPI Mode 0,0 protocol. You can find the datasheet Here. I can see that the microcontroller sends the correct ...
robotter's user avatar
0 votes
1 answer
34 views

The resistance value for PWM circuit uses STM32F103C8T6 and MOSFET

I want to design a PWM circuit using STM32f103C8T6 and MOSFET as shown below. I use MOSFET IRF3708 because Gate-to-Source Voltage low. but low power. MOSFET IRF3205 has a large power but Gate-to-...
phung's user avatar
  • 1
0 votes
0 answers
42 views

Chip antenna matching of a custom board equipped with a STM32WB55

I am planning on designing a custom board using a STM32WB55. I have followed the "How to develop RF hardware using STM32WB microcontrollers" (AN5165) Figure 9 design for the RF part, which ...
Andreiul's user avatar
2 votes
3 answers
868 views

Why are CC1 and CC2 only connected to USB-C?

This is a schematic where USB-C is used to power a circuit device. Notice that there are only VBUS and CC1 and ...
euraad's user avatar
  • 1,157
0 votes
1 answer
92 views

Why is MOSI pulled low during communication?

I am using Allwinner A40i (ARM V7) as SPI master and STM32 as SPI slave. When not communicating with STM32 for SPI, it is correct to use an oscilloscope to capture ...
just a student's user avatar
1 vote
1 answer
65 views

Current DAC/current wave-form generator [closed]

I am designing a PCB on which I need to generate an arbitrary current waveform. The maximum current output is (-+6 uA), resolution >=8 bit, fast settling <=0.1 us, sampling rate >=5 MHz. I ...
Bakr Hesham's user avatar
1 vote
0 answers
75 views

How to use STM32F1 ADC if input is more than 3.3V?

Datasheet of STM32F103X8 I found the sensor output a voltage ranged 0~5V, which is higher than the ADC port can tolerate with (in STM32F1XX datasheet all ADC ports can only tolerate 3.3V). How to make ...
s sss's user avatar
  • 19
0 votes
0 answers
19 views

Unable to make ULPI works with STM32F446

I am using a USB3300 chip as an external HS 480Mbit/s USB PHY with STM32F446 MCU. Using CubeMX to generate code and add USB CDC Middleware. As I connect the USB Cable from the PC to the USB3300 chip ...
Yash's user avatar
  • 11
0 votes
0 answers
20 views

STM32 VBUS sensing with quick charge

I'm developing a self-powered device based on STM32. The fast charging feature controlled by a chip using D+/D- USB pins. Once USB is connected, the chip performs "handshake" to know the ...
ymakux's user avatar
  • 125
0 votes
2 answers
76 views

UART and RS422 Interfacing

Do I have to connect the Logic side of an RS422 transceiver to a UART on my STM32, or can I connect the logic side to any GPIO on the STM32?
Dark-Matt19's user avatar
0 votes
0 answers
40 views

PCB usb powered - led and screen wiring + review schematic

I'm currently designing a PCB featuring an STM32F103CBT6 MCU. The PCB will host five different groups of WS2812B LEDs, multiplexed 22 pushbuttons, 4 rotary encoders, and additionally, a VoCore 5" ...
Djowwie's user avatar
  • 11
0 votes
1 answer
57 views

STM32 DAC sinewave generation

I generated according to this document two same sine waves (on two pins of the microcontroller DAC). I display them on the oscilloscope and obviously overlap. Now I would like to offset the first one ...
KaleM's user avatar
  • 417
2 votes
2 answers
661 views

STM32 writing to SD card using FATFS sometimes takes longer than normally

I am using nucleo-f401re board for my project and I want to write sensor data to SD card. I am writing data when sensor interrupts occur, and that happens at 408 Hz, so I have around 2 ms to write ...
Dominykas's user avatar
  • 377
0 votes
2 answers
89 views

STM32 square wave fluctuating

I'm outputting a square wave from a GPIO pin but the signal shows that the time it is low and the time it is high are changing even though they should be the same. How do I fix this? Note that the ...
epicMan123's user avatar
1 vote
1 answer
100 views

Emulating a defective LCD from a device and use another LCD

I have a device which has a defective LCD that is not produced anymore. Source info: https://www.mpc-forums.com/viewtopic.php?f=1&t=138491&start=30 The socket from the schematic diagram is ...
andre's user avatar
  • 11
1 vote
2 answers
83 views

STM32 UART only works while ST-Link is connected

I'm using an ST-Link broken off from a NUCLEO board to program a custom board with an STM32G4A1 on it. The issue is that UART transmission only seems to work while the ST-Link is connected (verified ...
SirVer's user avatar
  • 13
0 votes
2 answers
86 views

STM32 Help receiving serial data sent from python's pyserial

I need some help communicating between python's pyserial and an STM32f030R8 microcontroller. This is for a 2 DOF robot which has a python base GUI. The GUI will send, via serial communication, the ...
Eric14003's user avatar
0 votes
0 answers
54 views

STM32 NUCLEO programming problem with STLink V2 Clone

Having a trouble with STLink programmer. Error occours in Keil. When I am trying the download code to flash this error appears. If I am using a USB port for debug there is no error. But I need to ...
MSB's user avatar
  • 37
0 votes
3 answers
93 views

Microcontroller not working

I have designed and assembled a custom PCB that features the STM32F401RDT6 microcontroller. But unfortunately, I was unsuccessful in connecting to it via SWD to program it. I have tried the J-link EDU ...
TheButterMineCutter's user avatar
2 votes
3 answers
633 views

Confusion with polling data by an MCU using UART

I'm using an MCU board(STM32 with HAL) and basically polling data from a device using serial protocol. The MCU sends a fixed byte array(6 bytes) to the device, and in response it receives a fixed byte ...
user1245's user avatar
  • 4,135
0 votes
0 answers
43 views

Passing data on microframe stm32

I am trying to get an 8kHz polling rate mouse (I don't know if polling rate is the right word though), and the only problem I have come a cross is the speed of HID. I am using USB 2.0 HS. My ...
YANNTASTIC5915's user avatar
8 votes
6 answers
3k views

STM32 for loop slows down code too much

I am using an STM32 STM32F103C8T6 running at 48 MHz using ADC DMA and I find that using a for loop for manipulating arrays is much slower than multiple lines of ...
Sujoy Bhattacharya's user avatar

1
2 3 4 5
73