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
71 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
34 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
15 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
22 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
132 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
150 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
26 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
37 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
25 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,340
1 vote
1 answer
41 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
57 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
41 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
32 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
127 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
69 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
181 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
37 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
36 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
19 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
21 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
36 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
82 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
75 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
37 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
86 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
23 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
92 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
91 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
29 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
44 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
350 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,335
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
2 votes
0 answers
54 views

FLASH memory corruption

I have a stm32f030c8t6 which I wish to save some data in its FLASH memory. I use Address Page30 which is 0x08007800 in memory map. it is in 7th Sector. I've developed my code and easily saved some ...
user avatar
0 votes
1 answer
34 views

Maximum input voltage Black Pill

I have a sensor outputting a 0.8 - 5.0V signal, where this analog signal is read by a 16-bit ADC, the ADS115. The ADC is capable of reading the maximum 5V signal since I am powering the ADS with VIN = ...
user avatar
  • 11
3 votes
1 answer
46 views

STM32H747 MDMA Transfer Error Address when using FreeRTOS

I'm using the MDMA to communicate with an external flash over QUADSPI. I have an implementation which works great without FreeRTOS, but when I implement it using FreeRTOS I get Transfer Error Address. ...
user avatar
  • 41
1 vote
1 answer
77 views

DAC can't drive MOSFET source below certain voltage

I'm using a DAC to control the voltage at the source pin of BS170 N-Channel MOSFET. The purpose is to control the current (and therefore brightness) of a LED while the MOSFET has the gate and drain ...
user avatar
1 vote
0 answers
72 views

Can someone explain the power supply scheme for STM32F103

Sorry for the dumb question, I'm trying to design a board with an STM32 microcontroller and I'm confused by the power supply scheme in the datasheet. I've attached both a screenshot of the diagram and ...
user avatar
2 votes
0 answers
48 views

How to prevent voltage spike from BLDC motor in ESC circuit

I'm implementing the circuit below by modifying it using STM32 (Bluepill) and adding some decoupling capacitors (100nF) to the bluepill and LM339 with the supply from the battery also connected to the ...
user avatar
2 votes
1 answer
55 views

What is the proper way to handle a status led when HardFault_Handler or any error is raised?

I am trying to implement a very basic status indicator using an STM32 - Basically I would like to toggle a RED LED when a fault is triggered by the MCU. Naively I added a toggle LED function in the ...
user avatar
  • 185
0 votes
1 answer
67 views

Is an RST pin the same as a microcontroller NRST pin?

I am currently working on a PCB design using a STM32F411CEU6 microcontroller. In order to debug the circuit using an ST-Link, I have placed a header in order to access the pins in the microcontroller. ...
user avatar
  • 1
1 vote
1 answer
59 views

Exceeding guaranteed memory write cycles

I have an STM32 MCU with integrated flash that has a specified endurance of 10'000 write cycles. What exactly is the risk if I exceed this number during my products lifetime? My understanding is that ...
user avatar
  • 2,425
0 votes
1 answer
45 views

Is choosing a high HSE frequency beneficial for the PLL CPU clock?

guys. The NUCLEO-H745ZI-Q board didn't populate the high-speed external (HSE, 4-48 MHz range) oscillators and I'm planning to solder one. I want to use the PLL so that the STM32H745's CPU1 clock can ...
user avatar
0 votes
1 answer
35 views

What does INM in COMP2_INM mean?

I intend to use the internal comparators in the STM32F334R8 microcontroller. If you look at the picture above, right beside "input[-]" you will see INM. You will also see COMP2_INM at the ...
user avatar
1 vote
2 answers
51 views

A newbie question about SPI settings for an STM32 microcontroller board

I want to control this DAC's output via SPI protocol using an STM32 board. To initialize SPI3 in my case I use STM32CubeMX. And under SPI settings I couldn't relate the settings to the DAC's SPI ...
user avatar
  • 380
0 votes
0 answers
41 views

How to program a Nucleo board (L053R8) using UART?

I went through all possible data sheets I could find did all the required things but my Nucleo still won’t be programmed with uart. I have put boot0 on VDD pin next to it. For confirmation I also put ...
user avatar
6 votes
2 answers
1k views

Can ESP32 be used in a commercial application?

I am currently choosing a processor for my embedded robotics project. I have just completed a prototype with the ESP32 DEVKIT-V1 module. I hope to commercialize my product in the future, however, when ...
user avatar
  • 83
1 vote
0 answers
50 views

STM32G030J6M6 Debug issue

I just bought two STM32G030J6M6 and solder it on my custom board . here is schematic in STM32CubeIde I'm just setting SWDIO/SWCLK pins.. nothing else, Also I ...
user avatar
  • 121

1
2 3 4 5
76