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

Strange ADC readings

I am using the ADC on an STM32F030F4P6 to read a battery voltage, usually between 4.2 and 3.5 V. The resistor divider is designed to reduce the voltage so that 4.2 V input becomes ~3.1 V at the ADC ...
1 vote
3 answers
64 views

Can I amplify a PWM signal via a class-D amplifier without any input capacitors?

In the datasheet of a PAM8302A, which is a class-D amplifier, the recommended circuit is as follows: I have seen many people also use a variable resistor (potentiometer) at the input. I do not ...
  • 203
0 votes
0 answers
51 views

Making a custom control system using STM32F4

Introduction: Greetings I am a novice looking to expand my electrical knowledge further. I am wanting to learn how to design a microcontroller. I have worked with low-voltage electronics & have a ...
0 votes
1 answer
30 views

Getting started with STM Nucleo boards. Mapping from processor pins to board functionality (like LEDs)

Please tell me if there is a more appropriate group! I'm just starting with STM developmeent using STM32CubeIDE. I have a background in programming (C#/C++/C) on the desktop and some minor experience ...
  • 195
1 vote
2 answers
62 views

Is it OK to route a signal trace under an STM32?

Is it okay to route an SWCLK signal (for programming the STM32 microcontroller) under the STM32? I will use it only to program it whenever I need it; it is not something that is always active. Please ...
  • 315
0 votes
0 answers
27 views

STM32H750B configuring DMA to transfer from GPIO to RAM

on STM32F769i I used DMA2 triggered by TIM1 to read data from GPIOB port like this so timer1 counted and when it triggered DMA read data in circular mode from GPIOB into my buffer ...
3 votes
1 answer
117 views

My first circuit, can you critique please?

I designed my first circuit and tried to make it as good as I could. I would be very pleased if you criticize me on the issues that I am lacking and doing wrong. I made a 2-layer, full bridge brushed ...
  • 31
6 votes
1 answer
80 views

What happens to GPIO pins that are not exposed in a (small) package?

In one of our projects, we use an STM32L071 MCU in an LQFP48 package. It exposes GPIO port pins PA0 to PA15, PB0 to PB15 and PC13 to PC15 on the pins of the package. The LQFP48 package doesn't expose ...
  • 345
0 votes
0 answers
13 views

Can I use STM32 boot mode and SD card at the same time?

The ST32 boot pins are: Boot0 Boot1: Pin PB2 And the SDIO pins are: SDIO_CK: PB2 SDIO_D0: PC8 SDIO_CMD: PD2 I want to have both SD card feature and boot options at the same time. Here, the pin PB2 ...
  • 203
0 votes
0 answers
34 views

I have a basic LED circuit with an STM32F030R8T6 which is not working and I cannot figure out why

Apologies as this is a somewhat vague question but I cannot figure out what is wrong with my circuit/program and I have been stuck on this for a couple of weeks now. I have this circuit I put together ...
0 votes
0 answers
47 views

Defining global variables in header files (STM32) and errors referencing unrelated code [closed]

I'm replacing a constant in an application with a variable which will ultimately update the voltage for a buck/boost converter powered by an STM32F334. I've defined the variable in my ...
-3 votes
0 answers
49 views

Not printing correct values [closed]

So I wanted to read the ADC values and put them out in voltage form through UART. ...
0 votes
0 answers
24 views

Which external DAC can be used with STM32F7?

Problem Statement: I'm developing hardware for piezo scan for which I need analog output in form of ramp signal which will be feed to piezo. Piezo operating range is between 0 to 30V. So I will ...
  • 1
1 vote
2 answers
51 views

RPM sensor signal level shifting

I have an RPM sensor that outputs a square wave. The voltage level of the output signal varies between 3.3V and 8.4V depending on which supply voltage the user has chosen for the sensor. I need a ...
0 votes
1 answer
35 views

Should I connect the BOOT0 pin on STM32 directly to GND if it's only booting from main flash?

On reference designs, BOOT0 is being pulled down with a 10k resistor. If I know I only want to boot from the main flash memory, can I connect BOOT0 directly to GND? How would you get into a situation ...
  • 163
0 votes
1 answer
20 views

How can I switch from PWM output on an STM32 to logic 1 output?

I am generating PWM on the TIM1C3 channel of an STM32 Bluepill board. A switch is connected to the system and when the switch is in the set position, I want the PWM production of TIM1C3 to stop and ...
0 votes
0 answers
27 views

MAX14920 thermal shutdown

We are working on a BMS circuit. We use the MAX14920 IC. When we connected the 12-cell battery pack to our circuit it sends battery cell voltage to our STM32F103 microcontroller. 1-2 minutes later it ...
1 vote
1 answer
27 views

Understanding the STM32's power connection to the STLINK-V2

If my STM32 is externally powered with 2.5V at its VDD and I'm connecting it to the STLINK-V2 that is powered by USB, should the VAPP pin on the STLINK-V2 be connected to the STM32's VDD? I thought ...
  • 163
0 votes
1 answer
27 views

How can I use interrupts for more than 3 push buttons with EXTI line 4 to 15 interrupts?

I would like to make a spot welding device with pulse current from 0.02 to 10 s. For prototyping I'm using 3 push buttons; one to initiate the welding process and two for current control (current+ ...
0 votes
0 answers
27 views

interface SD Card using SPI communication in stm32f103c8 [duplicate]

I need to interface SD Card using SPI communication in stm32f103c8. First i to store the temprature value in every one seconds in sd card. It work well after that i try to store temperature value in ...
0 votes
0 answers
30 views

How can I erase the previous data in an SD card (SPI communication) by using the erase command in the STM32F103C8 (HAL library) [duplicate]

CMD32 (0x20) works for erasing the data continuously, but I need to the output to erase the previous data and store current data to stored. I'm using this function, but still this is continuously ...
0 votes
0 answers
36 views

STM32H7 HAL read GPIOC13 with DMA into SRAM

I am trying to read GPIO pins (on row C) with DMA into SRAM, using TIM1 as clock. I am using an STM32H750B-DK When TIM1 goes high, DMA should read from GPIO to SRAM continuously (until it's stopped by ...
1 vote
0 answers
13 views

Operating across HAL versions in STMCubeIDE and running old ANs

I'm trying to run an older discovery board using the STM32F334 series of MCU. I'm using the STM32F3348 Discovery Board and attempting to drive its Buck/Boost example from the Cube IDE of the day. I'm ...
0 votes
0 answers
27 views

Issues in SBSFU usage with MPU for a FreeRTOS based User Application - STM32H7

I am working on the STM32H753 Evaluation board and I have a software architecture with an SBSFU running in the internal flash, that jumps to the External NOR flash to execute the user application (...
0 votes
1 answer
60 views

USB used for programming

I am working on a design for an STM32F103. I use a Micro USB-B connector (as you can see in the following picture). Can I use this USB to program my STM32 or does it only supply the microprocessor ...
0 votes
1 answer
22 views

Question about the problem of interfacing BLDC motor with L9110 , STM32 and DHT11 for temperature based speed control

Hello everyone currently I am having a problem when working with STM32f103c8t6. Though the circuit can work well with the temperature and moisture measurement, there exists problems in the work of ...
0 votes
2 answers
63 views

SMD crystal identification

I think it looks like a fork of an oscillator and also connected to the PC14-OSC32_IN and PC15-OSC32_OUT pins of the STM32 F072C8. But the markings "A801N" are not particularly well indexed ...
  • 5
0 votes
0 answers
20 views

STM32 LoRaWAN app only sends empty payload to the gateway

I'm developing a LoRaWAN app using STM32 Nucleo-WL55JC1 and Teseo-LIV3FL GNSS module. The example program of the SendTxData function works perfectly, but the ...
0 votes
0 answers
40 views

Why can't I get the STM32's program to run despite successful flash load?

I'm having a weird problem using the STM32L152. I'm able to successfully flash load my hex file using the STLINK-V2 and the STM32CubeProgrammer and verify that the device memory matches the hex file ...
  • 163
0 votes
1 answer
63 views

ST-Link V2 not connecting to STM32F411

I got myself an STM32F411RCT6 and my ST-Link V2 is not detecting it using SWD, but I am able to program other STM32s using an even simpler setup, so I think there is something specific about this MCU ...
0 votes
1 answer
109 views

Adafruit BNO055 orientation sensor

My sensor is a BNO055 Absolute Orientation Sensor. I wanted to see if the sensor is ready or not. I tried to run it using different libraries, but it never worked. I couldn't understand why. Then I ...
  • 1
0 votes
0 answers
36 views

STM32 HAL, i2c slave direction change causes problems

What I want to do: Master writing to slave STM32F0: slave should always listen for incoming data and "always" put it to pre-configured memory location ...
1 vote
1 answer
29 views

Can't read my STM32 WL55JC1 on the STM32Cube Programmer

Before this I'm launching my modified version of LoRaWAN_End_Node firmware, but my Nucleo Board keeps restarting and heating up so I unplugged the USB cable. When I tried to connect my board back I ...
0 votes
2 answers
33 views

Is it safe to write data to MAX35103 flash memory

I am using MAX35103 sensor in my project and I want to store some constant data into MAX35103 flash memory using STM32. However, I've read something that it is not safe to write data to the MAX35103 ...
0 votes
2 answers
76 views

STM32H7 not utilizing the 480MHz PLL clock

hope y'all are doing well. I am currently trying to get my STM32H753ZIT6U to 480MHz as its the max clock frequency it can achieve, however when doing the procedure to change the frequency I am not ...
  • 1,383
0 votes
0 answers
26 views

Input pin stm32g0 always remains low

I am learning the stm32 using a stm32g070cbt6 micro controller with custom PCB. When I add an external pull-up to the pa4 pin and use it as an input pin. Nevertheless, when I read the pin, the output ...
  • 1
0 votes
0 answers
17 views

How to measure and control AC current in BLDC motor

I tried to measure the AC current for the BLDC motor in a single phase (Phase B). I use Timer 1 to generate PWM and Timer 4 for changes that occur in the commutation state (ie step change occurs ...
2 votes
1 answer
40 views

Activate VREF+ pin on STM32L073VBT6

I would like to read ADC over STM32L073VBT6. When I try this, I see that the value is always 4095 and does not change (expected to be 0 or close to it). While searching for the error I noticed that ...
0 votes
1 answer
68 views

STM32 SVPWM switch timing algorithm

I am designing a 3-phase to 3-phase matrix converter modulated using SVPWM on an STM32F767ZI and I am wondering how you guys would recommend I design the following timing algorithm: Figure 12 above ...
  • 33
0 votes
0 answers
22 views

Using watchdog to control load switch with STM32

I want to use STM32 and Watchdog to Loadswitch device that controls some other load(INTERLOCK). The way I want to implement it if the STM gets stuck in a certain state (when not toggling the WDI) the ...
  • 315
0 votes
1 answer
57 views

Convert Arduino Code to STM32 cubeide, [closed]

I giving paramter setting of LoRa module which is e32 433t20d over the Arduino Nano with ebyte RF setting software. With this code Arduino work as middleman. I want to use same code with stm32. How to ...
  • 1,031
0 votes
1 answer
41 views

My STM32F407VET6 is no connecting to STM32CubeIDE. what could be the problem?

I would like to say that i was taking Udemy Course related to Embedded C - Absolute Beginners. So everything was firsthand base on tutorial's installation. It was explain how to install IDE but ...
0 votes
0 answers
42 views

Create two PWM signals on one timer but different channels in stm32?

Can I create two PWM signals on same timer but different channel? PWMs have same frequncy but there is a delay between starting and stopping them. Let's say I have a 200Khz PWM on timer1 but ch2 and ...
1 vote
0 answers
40 views

STM32 Strange behavior of ADCs in alternate trigger mode

I am using a STM32H723ZG board for a project. In this project I must sample the signal coming from an image sensor that sends the pixel values as pulses with analog amplitudes. This sensor also ...
0 votes
1 answer
64 views

Reading two 16 bit ADC with two MISO lines each for its two channels using an STM32H723ZG

In my current project I am using a STM32H723ZG Nucleo board on a custom shield PCB with two AD7380 ADC's which amount to 4 signal channels. The goal is for the next PCB revision, to read out all 4 ...
  • 1
0 votes
1 answer
33 views

Use of ISB in STM32F4xx HAL function FLASH_Program_DoubleWord

The following lines of code are taken from Flash_Program_DoubleWord(uint32_t Address, uint64_t Data) function in stm32f4xx_hal_flash.c ...
4 votes
1 answer
114 views

How to drive 7-segment LED display directly from MCU without current limiting resistor?

I traced the PCB of ZK-MG Motor governer and found that it drive red 7-segment LED display without any current limiting resistor. I know it possible but (Q1)which technique does it use? and (Q2) Does ...
  • 1,168
2 votes
2 answers
162 views

Implementing direct digital synthesis in STM32 microcontroller

I am working on a project that requires phase locking (digitally) of an output signal from a sensor to the reference signal which needs to be done on STM32 microcontroller. I am new to this area, and ...
  • 135
0 votes
0 answers
34 views

I want to get the data from my fraba encoder directly to my pc without using PLC

The Fraba Encoder which I have is OCD-EEA1B-1213-C10S-PRM Ethernet/IP encoder in which we to get the data from the encoder to show to the PC where we will not use PLC and the communication will be TCP/...
  • 1
0 votes
1 answer
99 views

How to write the scatter file for Keil uVision to force linker to allocate variables in SRAM?

Development environment I'm working with STM32F427 and I use Keil uVision V5.29 to develop my application. The version of the ArmCLang Compiler, of the Assembler and the linker is 6.131.1. Scatter ...

1
2 3 4 5
65