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
1 vote
2 answers
33 views

Reading ADC value on a button press

I have a Keypad Matrix that outputs the voltage Level based on the button pressed. Normally, it outputs a max voltage (3.3V) and at the press of the button, it outputs the corresponding voltage level ...
user avatar
  • 317
0 votes
1 answer
38 views

Voltage regulator consume more current

I have used LP3961 3.3V regulator cicuit for my STM32 microcontroller circuit. I have implemented low power stop mode in STM32. Micro controller consumed 25uA itself. When I Measured the current ...
user avatar
0 votes
0 answers
28 views

Obtaining instantaneous logic level of a PWM signal on STM32

I'm trying to figure out which of two PWM signals that are switching simultaneously is "1" at a given moment. Is there any way to obtain this information?
user avatar
0 votes
1 answer
31 views

Using a FDCAN controller with a CAN transciever on the STM32 platform (G431KB)

I have a source of can messages connected to the SN65HVD232D CAN controller, which is then wired to a NUCLEO-G431KB via the FDCAN1 TX and RX pins. I confirmed with an oscilloscope/digital decoder that ...
user avatar
1 vote
1 answer
29 views

i2c oled display problem with STM32F401RE Nucleo Board

I have an i2c oled display with an SSD1306 driver. I want to drive this display with my nucleo card. Pin configurations are shown below. I provided the i2c connection on the display via i2c1 on the ...
user avatar
1 vote
1 answer
21 views

Ebyte E32 RF Module Configuration Problem

I designed a PCB with STM32G474RET6. I used Ebyte E32-433T30S module. I search on web and read datasheet. So, I got some info; This Ebyte module need to be configuration before transmitting/receiving....
user avatar
  • 89
1 vote
0 answers
42 views

GPIO basically not working on STM32401CCU6 Blackpill

As a newbie I switched from Nucleo to Blackpill recently (STM32401CCU6 ) and after an overally good start I faced a wall. It seems like GPIOs are... dead for some reason: HAL_GPIO_WritePin/TogglePin ...
user avatar
  • 115
1 vote
0 answers
24 views

Interfacing to MEMS microphone with PDM output: what is causing this DC bias?

I have a MEMS microphone (IM72D128V01, using this eval kit) with PDM output connected to a STM32U5 NUCLEO board. (Background: it's connected to the ADF/Audo Digital Filter peripheral which I have ...
user avatar
  • 229
0 votes
0 answers
13 views

EEPROM Emulation utility fails during "PageTransfer" function (XCUBE-EEPROM V3.0.0 and 4.0.0) on STM32G474 MCU

I have incorporated the EEPROM emulation utility in a project based on STM32G474CE MCU. So far the read/write functionality works fine. The problem comes when a page is full and the pag transfer ...
user avatar
1 vote
0 answers
30 views

STM32L073 I2C not sending 9th clock pulse

I have an STM32L073 communicating with an IS31FL3246 LED driver over I2C. Occasionally the MCU will not send the 9th clock pulse and therefore locks the bus. (As shown in the picture the analog ...
user avatar
  • 51
3 votes
1 answer
144 views

Difference between open drain and push-pull modes

The figures show diagrams of line signals: the first in the open-drain + pull up mode, the second push-pull + pull-down. There are several questions: Why does a push pull output have a faster slope ...
user avatar
  • 43
2 votes
0 answers
100 views

STM32 - I²C Slave HAL Callback ACK

Objective: implement a single byte I²C slave on STM32. Materials: STM32L452RE Nucleo-64 board, HAL Library, CH341 USB-I²C adapter(1), Artix Linux with Runit, Rhode & Schwarz RTB2004 oscilloscope ...
user avatar
  • 21
-3 votes
1 answer
40 views

How can I control an ESC with an STM32F303K8 [closed]

I couldn't find any documentation about it. The STM32 nucleo should control a brushless motor, with the speed depending on changing data. The ESC I'm using is a BHELI_S. Edit: I'm using CubeIDE and C
user avatar
2 votes
1 answer
204 views

Smooth wave plotting using 3 inch thermal printer [closed]

I am interfacing 3 inch Fujitsu thermal printer (FTP-638MCL103) with STM32. Character printing is working fine. I am struggling to print smooth sine waves generated from a function generator. I want ...
user avatar
  • 31
0 votes
1 answer
58 views

Using MDMA for buffer manipulation on STM32H743vit

I have buffer buff[BUFFER_SIZE], I want to fill it with data from random generator peripheral. Then the copy must increment equal to BUFFER_SIZE. After calling DMA ...
user avatar
1 vote
2 answers
76 views

Cannot configure timer to 10µs on STM32F401 device

I'm using an STM32F401CCU6 microcontroller and am trying to generate a timer interrupt of 10 us with TIMER3. The timer is a update event timer. The formula I'm using is: ...
user avatar
1 vote
0 answers
37 views

STM32CubeIDE Project

I have tried to open existing stm32 project on different computer (computer is not connected to internet). When I try to open the project file, there is a html file which is showed on screen. What is ...
user avatar
0 votes
0 answers
17 views

ATA6570 does not wake up properly

I want to use the wake-up frame function of ATA6570 (only use ID to wake up), after entering sleep mode, sending the correct wake-up frame directly can wake up normally, but in sleep mode, the wake-up ...
user avatar
1 vote
0 answers
25 views

A6 SIM module keeps resetting

I'm using a SIM A6 module (Goouuu Tech A6, I believe it's the same) to send messages. The problem is, once I plug in a SIM card, it keeps resetting (the green led blinks and kind of interrupts after 3-...
user avatar
1 vote
1 answer
148 views

ADC doesn't start from 0V

I have a STM32L053-Disco eval board, and I'm building a capacitance meter. For it to work, I have to calculate the charge time on my capacitor. The approach that I'm taking is to set 1 GPIO pin to ...
user avatar
3 votes
3 answers
156 views

Measuring capacitance with STM32

I'm trying to measure capacitance with my STM32L053-Disco. I'm using the ADC and one output pin to charge the capacitor. I tried measuring the time it takes for the capacitor to charge to 62.3%. The ...
user avatar
1 vote
0 answers
33 views

What DMA settings should I use for DCMI for STM32?

OV7670 is a camera with 8-bit bus communication. It's possible to connect that to a STM32 who has a DCMI communication bus. There are two types of OV7670. One with FIFO chip behind the camera and one ...
user avatar
  • 769
0 votes
1 answer
38 views

STM32H743 MDMA can't access APB2

I have a code that mdma can access any variable feed to it by &var (AXI SRAM) also I have gave it an address of ADC common registers from APB1 but adress from APB2 &hrng.Instance.DR causes ...
user avatar
0 votes
0 answers
28 views

Failed to replace HAL_TIM_PWM_Start_IT in an STM32 board

I'm using a STM32 Nucleo board with this manual. The following function I modified in stm32f3xx_it.c handles TIM6 global interrupt and starts a PWM output by using HAL: ...
user avatar
  • 3,350
1 vote
1 answer
54 views

STM32 FMC minimum clock

I'm doing some preliminary testing with a STM32F767 and FMC connecting to a KS0108 128x64 LCD display. The problem I'm running into is that I can't come up with a clean way to slow down the enable ...
user avatar
  • 1,796
0 votes
1 answer
84 views

"Could Not Verify ST Device" when flashing STM32H747XIH6 over SEGGER J-link within STM32CubeIDE

Im trying to flash/debug a STM32H747XIH6 over J-link within STM32CubeIDE. One of the two cores, the CM7, flashes fine and i can enter the debugger. However when i try to flash the other core, the CM4, ...
user avatar
0 votes
1 answer
43 views

Does the frequency of APB1 on stm32f4 have to stay at 42 MHz?

I'm trying to configure the clock of my stm32 board. And I'm wondering if I always have to make the SYSCLK 168 MHz and APB1 42 MHz. If the APB1 is not 42 MHz, I get a weird result when using uart. I ...
user avatar
2 votes
1 answer
34 views

USART stop bit not pulled high during nRF update

I am using an STM32L4 chip that sends an update to the nRF52832 on a ublox module over USART. I assume the nordic chip is in the bootloader during the update. We get a UART error: 4 and when we ...
user avatar
2 votes
2 answers
128 views

Problems increasing VCO frequency above datasheet recommendations

Firstly, yes I contacted ST for answers. Until now, no answer. I'm using STM32F429 MCU and embedded USB FS PHY. To keep the 48 MHz USB PHY clock the maximum PLL clock that I can achieve is 168 MHz, ...
user avatar
1 vote
1 answer
72 views

STM32) Why DMA can't approach global variable?

I test memory to memory DMA with my STM32H750VBT. I study with following this link. enter link description here According this link, source is inside flash and destination is inside SRAM. I test ...
user avatar
  • 105
2 votes
2 answers
182 views

Offset in creating delay between two PWM in STM32 board

I generate two PWM outputs from this Nucleo board (STM32F302R8). I use TIM1 and and TIM2 for PWM outputs and TIM6 to create delay between the PWM outputs. I want to create 100 us delay but my code ...
user avatar
  • 380
0 votes
0 answers
38 views

Flashing an independently powered MCU-based device with ST-Link dongle

So far I've been toying with a Blue Pill (STM32F103C8T6) dangling in the air on four wires from an ST-Link dongle. No problem experienced or expected. Now I consider a breadboard with its own power ...
user avatar
0 votes
0 answers
23 views

Does flashing firmware on STM32F051x upsets program just before NRST is pulled low from ST-LINK?

I am wondering does is the main program said to be running smoothly till the last instruction before NRST is pulled low by ST-LINK? I have a converter running that is switching at 66kHz and I can see ...
user avatar
  • 65
1 vote
0 answers
47 views

STM32F746 I2S clock fails

I have discovery board STM32f746NG In first try I've set this: Activate I2S2 with piout: PB4->WS - PI3->SD - PI1->CK. Instantly after activating I2S periferal with command ...
user avatar
0 votes
0 answers
42 views

CAN bus wrong bit rate calculation - stm32f107 keil drivers

I am using keil drivers to use CAN bus on an STM22F107. The method below is used to set CAN baud rate. ...
user avatar
  • 113
1 vote
1 answer
20 views

Conditions in Timers (STM32F103C6)

I am developing a project on STM32F103C6 and am new to it. I've implemented a timer with interrupt, which checks the temperature value measured by a sensor(LM35) every second, and if it is more than ...
user avatar
1 vote
1 answer
23 views

Logic analyser/trace error in Keil uVision5 with Nucleo M4 Board

I am currently using a NUCLEO-WL55JC board. However, I could not initialize the logic analyzer because of the error "Trace: No Synchronization". I am programming it as single-core (Cortex M4 ...
user avatar
0 votes
1 answer
44 views

STM32 FDCAN Duplicate Messages

I'm working with the STM32L552ZEQ, and I'm noticing that it is sending duplicate CAN transmissions. I have two threads, one that adds transmissions to a FreeRTOS queue, and one that spins and ...
user avatar
  • 47
0 votes
2 answers
94 views

Send float with Serial Port

I'm trying to send float temperature data from stm32f103c8t6 to qt application. When I try tosee value with Keil I can. But When I try to transmit to App I got some error about convering uint8_t to ...
user avatar
  • 3
2 votes
0 answers
78 views

STM32F107 CAN software driver does not work

I am using ST drivers to use CAN bus on an STM22F107 according to the code below. It does not work. The code is as below and is available here. ...
user avatar
  • 113
2 votes
0 answers
41 views

How to use DMA to sample external ADC (16bit ADS8688) using SPI with both single ADC and daisy chain configurations

I am using an STMF446ZE MCU for a data acquisition + engine control unit application. My application uses four ADS8688's to sample 32 sensors. 28 of them are required to be logged at 100 Hz while the ...
user avatar
  • 21
0 votes
1 answer
41 views

Configuring ICE40LP FPGA with STM32F4

I am new to STM32 programming and design, and my first project is to get an STM32F413 to program a Lattice ICE40LP FPGA (also a new platform...) via its slave SPI configuration interface (page 17). ...
user avatar
  • 111
0 votes
0 answers
108 views

STM32 + LwIP + DP83848 - No results when I ping

I have made a PCB with an STM32F407 processor and I have been used DP83848 Ethernet PHY. For STM32F407 processor. I have selected RMII settings. The pinouts for the RMII settings. Red rings got to ...
user avatar
  • 769
0 votes
0 answers
26 views

Serial Camera Control Bus (SCCB) - Why are my Serial Input Output Data line always high?

I'm looking for a SCCB library for the camera OV7670 and I have been looking everywere for C code that fits OV7670. But the problem is that my SIO_D (Data line) is always 1 when I read the data line. ...
user avatar
  • 769
4 votes
3 answers
94 views

STM32 Low Quescient Current Power Supply

I want to find the most efficient way to power an STM32 microcontroller from a lipo (3.7V nominal). I have calculated that @ 3.3V, the current consumption is approximately: in run mode:1.75mA in idle ...
user avatar
  • 363
1 vote
1 answer
113 views

STM32 C library for ILI9341 TFT LCD with 16-bit data bus?

I'm using FSMC with ILI9341 LCD and I have some troubles with the LCD. The LCD comes in lot of different sorts, but this one do I have. I'm using this library but the problem is that I get only two ...
user avatar
  • 769
0 votes
1 answer
35 views

How to set idle PWM output as LOW in timer settings in STM32 board?

I start a PWM output(using Timer1) in a STM32 Nucleo board using HAL as follows: HAL_TIM_PWM_Start_IT(&htim1, TIM_CHANNEL_2); And I stop the PWM at an ...
user avatar
  • 380
1 vote
0 answers
46 views

STM32L562 interrupts not working

I'm programming an STM32L562 (self made PCB), and when i try to init a TIM16 interrupt, HAL_TIM_Base_Start_IT(&htim16); using this function, it get stuck at ...
user avatar
  • 11
3 votes
1 answer
374 views

Why are there extra bytes in SPI transmission for this STM32 microcontroller?

I transmit 3-byte(24-bit) using SPI from this Nucleo board with HAL as follows (SPIoutputBuffer is a char array): ...
user avatar
  • 1,419
0 votes
0 answers
22 views

openOCD not working?

I am trying to use Zephyr RTOS with my board B_L4S5I_IOT01A. After following the getting started guide, I can't flash the .hex file into my board. This is what the terminal looks like after I tried to ...
user avatar

1
2 3 4 5
76