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
2answers
79 views

How more accurate in practice will a STM32 become if we use HSE?

Everybody talking about that HSE (External crystall) is much better than internal RC-oscillator in a STM32 microcontroller. But how much better is it and how? Is the ADC more accurate? Are the timers ...
0
votes
1answer
64 views

Retrieving energy data from dali2 D4i memory bank (202) of a luminare

I'm trying to read the memory bank202 from a DALI-2 supported led luminary for energy consumption. it returns a value of zero. when i gone through the Dali part 252 energy reporting Doc. It asked me ...
4
votes
1answer
163 views

STM32 microcontroller families and environment conditions (F4 vs G4 vs F7 vs H7)

I want to refresh some product with old PIC18F and use STM32. New product requirement is 8 UART interfaces, a bit more DMIPS and more memory. I probably could use STM32F0 or F1, some UART multiplexing ...
0
votes
0answers
128 views

How to use the makefile to generate .elf, .bin and .hex files

I'm trying to use the makefile of this project to generate a .hex, .bin or .elf file and then send it to my board via st-link. Problem, I don't understand how to use the makefile. The author of the ...
0
votes
0answers
41 views

Need help to configure the PCAP04

When I first used the PCAP04 chip for measuring capacitance, I felt very annoyed, because the information on this chip was really a bit garbage. Many things are not found in the official manuals, and ...
0
votes
0answers
104 views

STM32L476RG ADC bare metal

I bought STM32L476RG nucleo to learn bare metal programming. Im following a online course on udemy and so far i have suceeded with everything except hitting a wall now with ADC. First of all i have ...
0
votes
1answer
59 views

Program STM32 MCU with SWD by default as alternate function

I want to use my first STM32 MCU in the project. The project involves a few peripherals (UART/SPI/I2C) and has a bit of math to do here and there, mainly bit shifting and/or integer computations, so I ...
0
votes
1answer
57 views

How to differentiate between Analog and Digital Pins in an STM32 MCU?

I am using an STM32F302C8 and while reading the datasheet I am unable to differentiate between analog and digital input pins I am on pages 34-42 of This datasheet. I am porting over from Arduino Nano ...
0
votes
1answer
142 views

Bricked STM32 with Read Out Protection Level 1, can't disable it

So I was testing the boot option bytes of my Nucleo32 STM32G431KB board and somehow my Nucleo board is in Read Out Protection level 1. STLink Utility is unable to revert it, I get the error "Read/...
0
votes
1answer
51 views

What does 4xVDD and 4xVSS mean in STM32F302xB and STM32F302xC datasheet?

This particular image is on page 56 and comes under Electrical Characteristics.
0
votes
2answers
72 views

What is a comprehensive document from STM for PCB design using their STM32F302C8 MCU?

I have to design a STM32 based PCB and connect it to peripheral sensors that will communicate using 3 Analogue Pins and 5 digital. I have found documents from STM on oscillator placement and EMC ...
0
votes
1answer
76 views

Analog and digital ground plan with isolated DC-DC converter

I use two isolated DC-DC converter in parallel from 24V One TDN 3-2411WISM (single output) to create 5V for the "digital world" followed by LDO to create 3V3 and GND for the VDD (+Vout) and ...
0
votes
1answer
60 views

STM32 DAC triangle generator flat bottom

I'm trying to create a triangle signal with DAC via DMA (STM32F407VG DISC1 board). My template array is fine, I've checked it with a plot. But I have some strange flat area on the bottom I've stuck on....
0
votes
3answers
89 views

Do I need to use a MOSFET to drive 60 WS281Bs?

I’m building a custom keyboard and have 60 WS2812Bs as part of the backlighting system. I’m worried about the signal integrity as I’m using an STM32 and the max current on that pin is 25mA. Do I need ...
0
votes
0answers
73 views

STM32 Timer, variable frequency output

preface in the AVRs, when I wanted to create a variable frequency waveform (50% duty cycle) within a limited range defined by timer frequency and its prescaler, I used CTC mode: the OCR registers ...
0
votes
1answer
34 views

Recognizing the COM port used with STLINK

I'm using a STM Nucleo as a bridge to flash a BLE EM9304 module and another ST-LINK from another STM Nucleo to flash a STM32. Both MCU are in a third board. So, I'm integrating the sequence of ...
1
vote
0answers
38 views

Getting different results for memory reads over STM Programmer GUI vs CLI

I am working on a project using the STM32WB55xx series. I'm trying to read the Device Information Table (AN5185 Section 6.6.1, pg 17) using a bash script and the STM32 Programmer CLI. According to the ...
0
votes
1answer
51 views

Nucleo L476RG GPIO Switching behavior

In a Nucleo L476RG with system/timers/peripherals CLK at 80MHz, in the main loop I have code to directly access GPIOA register: ...
3
votes
1answer
194 views

Unable to display UART character data sent from STM32F407G Discovery Board (TX) to Ubuntu(or Raspian) on Rasperry Pi 3 Model B (RX)

Solved. The problem was a bad board & then appending extra "\n" in the output after reading from via "C". I'm trying to send data via UART from STM32F407G Discovery Board ...
0
votes
2answers
72 views

Driving led matrix with SN74LS595N instead of SN74HC595N

I worked out how to drive a ledmatrix (8x8) width monochrome leds with 2 SN74HC595N on a STM32F103C8 over SPI. It works. (Un) fortunately I got my hand on a free a bag of SN74LS595N's. I tried to ...
1
vote
3answers
88 views

Does “USB FS PHY / USB HS ULPI” imply double usb capabilities when using an external USB PHY?

Some microcontrollers, for example the common STM32 line, claim USB capabilities along these lines: USB 2.0 OTG HS, that is, USB 2.0 FS/HS device/host/OTG controller, integrating the transceivers for ...
0
votes
1answer
52 views

How to communicate with ESP32-WROOM-32E and program it using the same pins

I'm designing a product that will have an optional add-on board that contains a ESP32-WROOM-32E which will be used to add wifi functionality. Communicating between the ESP32 and my primary MCU a ...
0
votes
1answer
48 views

STM32H743 FMC with ST7789 doesn't work without delay

I have an STM32H743 connected to a screen that uses ST7789 via FMC (i.e. parallel connection) using 8-bit bandwidth and A18 to select between command and data. The current code has an issue that the ...
0
votes
1answer
61 views

STM32 - How to trigger a DMA transfer via hardware timer, while CPU is in SLEEP mode?

I'm trying to set up a simple project that does the following: Enter sleep mode and in the main loop, it waits for interrupt - __WFI(). Transmits data from a buffer[4] to the PC, via UART. The ...
0
votes
1answer
26 views

STM32L432KC DAC wrong pin

When I'm trying to output something using DAC the voltage appears on pin A3 not on A4 as expected. Am I missing something? ...
1
vote
1answer
54 views

Flash and run a .hex file on a different Microcontroller with bigger flash from the same Cortex family

Is it possible to flash and run a compiled code (.hex-file) for a specific Microcontroller (for example STM32F205RC) on a Microcontroller from the same family with bigger flash-memory and RAM (without ...
0
votes
0answers
21 views

STM32 Nucleo L053R8 - Not able to select number of conversion

I am trying to use multiple ADC channels via DMA. Something like this over here: enter link description here. The issue is however, that I cannot choose the number of conversions. I am not even given ...
0
votes
1answer
41 views

Using input capture when the PWM duty cycle is 100%

Suppose I have a PWM signal whose duty cycle varies between 0% (logical LOW voltage all the time), 50% all the way upto 100% (logical HIGH voltage all the time.) In case of 50% it easy to measure with ...
1
vote
1answer
75 views

stm32 - i2c communication fail after disconnecting oscilloscope probe

I am trying to communicate with TCS34725 module with NUCLEO-F401R board. The first I tried is to read out ID register of TCS34725, which should be 0x44, to check the connection. Everything works fine ...
0
votes
2answers
77 views

STM32F407VTG6 HardFault_Handler

(note: Using STM32F407VTG, STM32CubeMX for config, FreeRTOS, and tried both IAR and STM32IDE for compilers/debuggers). This seems to be a common problem, but the solutions I find either aren't clear ...
0
votes
1answer
76 views

How to identify what exact model of STM32

I have a consumer device that I know uses a STM32 microcontroller that I'd like to hack a bit. Is there a reliable way to communicate with the chip and determine its exact model, so I can locate the ...
0
votes
2answers
218 views

STM32 as a MIDI device (I'm lost)

I have an STM32F723. I'm trying to configure it so that my computer recognizes it as a MIDI device via USB. I searched the internet for examples, and read up on USB and MIDI. However, I'm lost in all ...
1
vote
4answers
190 views

Global variable - memory allocation

I am in general interested about how compiler and linker handle global variables. Here click it is explained that additional ROM is needed in case variable is initialized and not 0. So wondering, why ...
-1
votes
2answers
55 views

Why PORT D pin 15 LED not turning on, in STM32F407 Discovery

I am trying to turn on a LED for STM32F407 Discovery which is PORT D pin 15, as shown in the diagram below and the link attached to it. I am using Keil and an ST-Link debugger setting as shown below. ...
0
votes
0answers
14 views

Slave timer configuration procudes an interrupt STM32f10x

I am going to config a master and slave configuration under STM32f10x. I connected them correctly but at the first step it generates an interrupt before enabling the master timer or enable the slave ...
0
votes
2answers
46 views

Can I use PWM signal to control devices that requires a system clock - OV7670

I want to use the simple camera ov7670 and that camera requires a system clock, called XCLK. The clock requries 24 MHz input from a source that are at 50% duty call and a period of 24 nanoseconds. ...
1
vote
1answer
47 views

Properly connecting Shift-Registers to microcontroller

While working on a circuit, I am confused on connecting daisy chained 74HCT595 and 74HCT165 to microcontroller. I am developing the circuit so that microcontroller can be connected as separate add-on ...
0
votes
2answers
66 views

STM32 runtime Variable value manipulation

So basically I am not an expert, altho I think I have a good basis of knowledge. I am using an STM32 Cortex 4 (discovery) for a hobby CNC machining application. So lets assume we have a SW under ...
0
votes
2answers
60 views

Why is my EEPROM not working?

I have a 24FC01, 1 kbit EEPROM on my board. The SDA and SCL lines are pulled up to 3.3V through two 2k resistors. I'm using a STM32F407 MCU to read and write data to the EEPROM. Using the HAL ...
0
votes
1answer
99 views

Debugging STM32 with OpenOCD, STM32 for VSCODE won't work or flash, Configuration issue maybe?

First and for most I googled a lot and Its been a week of searching with no solution at all. Please bare with me! I tried to add all necessary info! Please request more If you need. My problem is: I ...
0
votes
1answer
213 views

ST-Link cannot software reset my STM32 MCUs over SWD

I've been working on a problem with two different boards (one using an STM32F7 and the other using STM32F3). When attempting to program the boards (using an ST-Link provided on Nucleo/Discovery boards)...
1
vote
0answers
29 views

Change DMA memory content

I need to change the DMA content(the values of the memory) for my application(doing animation on ws2812b strips). DMA circular mode DMA with PWM generation To further clarify, here's code for a ...
0
votes
1answer
40 views

STM32F410RB is not outputting the WHOAMI register value of slave MPU9250/6000

Note: I am beginner :) I am trying to read the WHOAMI register in the MPU9250/6000 using i2c communication on STM32410RB Nucleo board MCU. I am using ...
0
votes
0answers
81 views

Leakage current through push-button and switch

I am developing a battery-powered application on a custom PCB, thus power consumption is critical. I am trying to minimize current consumption with stm32L4 MCU, by turning floating pins to analog, ...
0
votes
2answers
60 views

SPI communication over different voltage

I was working on a PCB design and I am stuck on a question over SPI communication over different voltages. I am using some 74HC595 and 74HC165 shift registers to expand number of GPOIs, running on 5v ...
0
votes
7answers
248 views

Is it possible to remove a line of code from microcontroller program memory?

int main(void) { while (1) { delay(50); if (ButtonPress1) { ResetOutSwitch(); } } Suppose that button press is detected and output switch is ...
0
votes
1answer
46 views

DFSDM Analog Watchdog does not trigger break for TIM1

TL;DR TIM1 break works from BKIN but not from DFSDM analog watchdog I have timer TIM1 running a PWM output and use a button connected to PE15. PE15 is setup as alternate function 1 i.e. TIM1_BKIN. ...
0
votes
1answer
154 views

PWM generation with master/slave timer configuration

I am going to generate a PWM with master/slave timer configuration. I prefer that my master timer generates PWM with an interrupt. I need to connect this interrupt to another timer as its input clock ...
6
votes
3answers
810 views

How to choose protection resistor for I2c devices

Note : I am a beginner. I noticed on the STM32-410RB datasheet page 100 (https://www.st.com/resource/en/datasheet/stm32f410rb.pdf), protection resistors were used in series on the SDA and SCL line. ...
0
votes
0answers
67 views

STM32: no interrupt handler getting called

I am having problems with interrupt handlers on an STM32L052C8T microcontroller. Every program that I try to run hangs forever after an interrupt is fired. This holds for SysTick interrupts, other ...

1 2 3
4
5
68