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
0answers
25 views

Cannot launch GDB client

I am new to embedded coding outside of Arduino, so I need a lot of hand holding. I made a custom board with just a STM32 chip (STM32L082) and a LED. I am trying to debug it using GDB (I hear that's ...
0
votes
1answer
26 views

What is difference between STM32 timer channels with N suffix?

For instance in cubeIDE for board L432KC for TIM16 I can select PWM Generation CH2 and PWM Generation CH2N. What is the ...
0
votes
0answers
46 views

Different value of N Pulse signal with STM32 and PWM

Regarding my Post I put a counter in my interrupt, In the output I have a 1000Hz signal which it means I should have 1000 pulses in each second, but I get 100 pulses each second. what is my problem? ...
0
votes
1answer
36 views

STM32F107 Clock configuration and USART problem

My old program (USART section) worked with a 25Mhz external crystal perfectly. I have changed my external crystal to 8 Mhz and multiplied it 8 to have a 64Mhz SYSClock. My timers, PWM and other ...
-4
votes
0answers
26 views

How do I connect the SlideSwitch SS12F15G6 to the microcontroller arm stm32f103v8t6?

I want to connect the microcontroller arm stm32f103v8t6 to the SlideSwitch SS12F15G6. The stm32f103v8t6 has a lot of pins. Unfortunately I did not find enough information about the SlideSwitch ...
5
votes
3answers
533 views

Memory To Memory DMA on STM32

According to STM32F407 reference manual page 313, memory to memory mode in DMA is a mode that doesn't need any triggering request from a peripheral and it will happen just after the stream enable bit ...
0
votes
1answer
40 views

Unable to toggle an LED with STM32 Blue Pill

I'm a beginner, and I'm using an STM32 Blue Pill board for the first time. I completed a basic tutorial on how to activate the PC13 pin (on-board LED), but now that I'm trying to get an external LED ...
0
votes
0answers
80 views

Driving DAC MCP4728 with STM32F0

I'm trying to interface MCP4728 with STM32F0. The commands are transmitted by controller and same are received successfully by DAC MCP4728. I2C transmit function also returns HAL_OK on I2C ...
0
votes
1answer
75 views

Enable Timer interrupt after generating N pulse

I need to enable a general timer interrupt after generating each pulse in PWM mode. I wrote this program. I will be grateful if you kindly let me know how to enable timer interrupt. This my SPL ...
0
votes
3answers
48 views

Trying to understand push-pull output mode and open-drain output mode in a MCU's GPIO pin

I have a MCU (STM32H7xx) whose GPIOs, when configured as output, can be configured either as open-drain or push-pull. Before seeing this, I though that open-drain meant hihg-Z, however I don't see how ...
0
votes
1answer
24 views

Strange A3941 motor driver behavior

I'm driving a 12V brushed DC motor using an A3941 full bridge mosfet driver. The setup is controlled using an STM32F407. Since the A3941's logic inputs need 5V, I'm using a MC74VHCT125A buffer between ...
0
votes
2answers
28 views

Can't flash big binaries using dfu-util/pydfu to STM32H743VIT6

I have a board that uses STM32H743VIT6 (same as OpenMV4) that I can't flash binaries bigger than (500-600KB) to it although it has 2MB of flash. Smaller binaries seems to be flashed OK, I am using the ...
0
votes
2answers
67 views

New STM32L433 pins pull high??? Damaging opamps

I have an STM32L433, fresh from RS components. I soldered it to my board. PA6 is connected to the output of an opamp - INA181A1. There are another 2 INA opamps on the board, connected to other pins. I ...
0
votes
0answers
32 views

Temperature sensor DS18B20 always reads 85

I'm using a temperature sensor DS18B20 with STM32F103 Bluepill, but this sensor always gives me 85°C which is the power-on reset value of the temperature register. I'm so confused because it worked as ...
0
votes
2answers
52 views

Stm32 minimum setup no crystal

I'm trying to run my first circuit with a stm32 microcontroller. For debug reasons I soldered a minimum setup. -No external crystal -Only capacitors I connect SWD Debug: -NRST -SWDIO -SWCLK -Power 3....
0
votes
0answers
19 views

Problems with STM32F746G-Discovery using another display

I encountered a problem during the configuration of a STM32F746G-DISCO Board for the use with another display. Initial situation: I unsoldered the connection between the STM32F7 Board and the default ...
0
votes
1answer
30 views

PWM edges issue on a STM32F0 micro

I have a STM32F051R8 (STM32F0 discovery board) I am trying to use to generate a PWM using a timer and change the pulse width at runtime. My code is: ...
0
votes
1answer
73 views

ARM CMSIS Matrix conversion to a uint16_t array

I'm working on the STM32L476RG and I'm looking to perform some matrix operations on the controller, using C and CMSIS-DSP for ARM. I have 2 uint16_t arrays which I will be converting to matrices and ...
0
votes
1answer
80 views

STM32F429 SPI pins die out after working for some time

I am working with SPI on STM32F429 to write data on MX25V1006F flash memory. I am not using cubeMX library. My problem is that it works for a while and then suddenly it doesn't work. I have replaced ...
0
votes
0answers
29 views

STM32G4x1 ADC Interrupt/flag when a certain value is encountered?

I am brand new with the STM32 and MCU in general. I am reading from an ADC on a continuous mode with the DMA access to memory. I would like to have some sort of "flag" for when a certain ADC ...
0
votes
2answers
96 views

why does the Stm32f103c8t6 Board need an ST-Link V2?

Well I am starting a course on embedded systems on udemy and it seems I need an M3 or M4 ARM cortex MCU so I can follow on the projects. The course itself recommend the Discovery board, but I was ...
0
votes
0answers
18 views

STM32H7 PWM with DMA not working properly

I'm using the PWM mode within the TIM15_CH1 hardware to create a varying pulse width modulation to run the ws2812B (LED Light strip). Current setup right now is that I have a buffer of pre-calcuated ...
1
vote
3answers
45 views

Send Data With Usart STM32

I have to send data using the usart2 in my nucleo64 stm32f446re board. The type of data I have to send is float but until now I always send uint8_t using this code; ...
0
votes
1answer
17 views

STM32G4x1 Changing polling rate of ADC

I am brand new with MCU and ADCs and would like to build my own oscilloscope. Right now I can capture signals at full speed (7.2 Msps) with the continuous setting and the DMA writes it directly to ...
0
votes
3answers
72 views

How To Save A Matrix In Flash Memory In STM32

i'm new in stm32 and in embedded world in general. I'm using a nucleo64 f446re and I want to save a matrix in the flash memory. Can I use CONST to do this?
0
votes
0answers
26 views

stm32f103: a timer triggering DMA to update another timer's CCR using libopencm3

I'm playing with the blue pill. Here I run TIM2 and enable the DMA on its update event, according to Table 78 of RM0008, the DMA channel I should use is channel 2 on DMA1. Then I want the DMA to ...
0
votes
1answer
64 views

Generate N pulse with a fix frequency STM32f107

I need to know how to generate N pulse with STM32f107 without any external sampling. Could you provide me any good reference? Thanks
0
votes
0answers
66 views

16 bit analog reference voltage design for stm32 chips

I am trying to make custom 2 layer PCB using stm32 microcontrollers for my flight simulator rig. My intention is to use magnetoresistive sensors in the joystick to get 14 or 16 bit signals and ...
0
votes
0answers
27 views

USART DMA misses the input string sequence

I configure my DMA in Normal mode. Here is my code: ...
0
votes
2answers
53 views

STM32 UART send broken frames

I have a NUCLEO-F303RE board and try to send some data by one-wire UART with 57600 baudrate. But frames are sent broken (see images below): How must to be: What I get: I've tried to use different ...
0
votes
1answer
42 views

why does FLASH_ErasePage reset my STM32F103C8?

Here is my program to write with EEPROM emulation in my stm32f103 flash memory. ...
0
votes
0answers
41 views

Wiring JTAG correctly

I'm a bit confused how to correctly wire JTAG input and output. I have my ST-Link and my STM32 microcontroller. Which of the configurations is correct? Pinout St Link || STM32 TDI-----------------&...
0
votes
0answers
33 views

Trying to comunicate my nucleo-F411 with a NOKIA5110 display using SPI and DMA

I did successfully sent data to the display in my main function. Working code. ...
0
votes
1answer
67 views

STM32 Blue Pill connected with both USB and SWD at the same time?

I would like to write some code for the STM32 Blue Pill to use the USB as a serial link. Because I use an ST-Link debugger to program the board, I will need to connect the following: Programming: ...
0
votes
1answer
26 views

Trying to program an STM32 device with ST-LINK_CLI.exe

I have a project developed using STM32IDE, all is well and I want to develop a test script to program the devices in bulk, using the STLINK/V2. To do this I want to invoke ST0LINK_CLI.exe I can ...
0
votes
1answer
23 views

Ratio on Vbat measurement STM32F303

This question might possibly be answered somewhere, but as I'm googling the particular phrase in the title, I couldn't find anything. I'm fairly new to designing development boards. I use the ...
0
votes
0answers
47 views

Receiving additional garbage data (for some characters) from STM32F103C8T6 (blue pill) UART1

I am learning bare metal embedded development using CMSIS Core framework. The problem I am facing is with UART communication. I am getting additional garbage value along with the character I am ...
0
votes
0answers
52 views

Convert digitalWrite() in Arduino into STM32

I am trying to translate my arduino code into stm32 code for my own learning. I was trying to convert the following code into stm32 code ...
1
vote
0answers
22 views

DMA SPI for LCD TFT EVE3-43A

I am trying to do DMA in eve3-4.3inch LCD TFT (matrix orbital), TFT screen working without DMA, but as soon I add DMA settings DMA does not respond. What might be the reason? I am using the EVE81.h ...
1
vote
1answer
43 views

UART RX Interrupts Stop Working After a Few Seconds

I am writing a very simple program to validate that my board (STM32L4) can receive terminal (TeraTerm) characters via interrupt. The program runs as expected for the first few seconds (anywhere ...
1
vote
1answer
27 views

How to lock the GPIO pin using LCKR register in stm32f10x series?

I am facing the problem of not able to lock the GPIO pins even after using the LCKK bit sequence to initiate the lock but facing some unknown issues. My references are from HERE, page number 174 The ...
0
votes
0answers
34 views

How to configure STM32CubeIDE with Blackmagic Probe as a debugger?

I am trying to use my Blackmagic probe (an STM32 BluePill converted to a Blackmagic Probe) as a debugging device for the STM32CubeIDE and can't get to work! I tried this solution: https://github.com/...
0
votes
0answers
40 views

STM32F303K8 ADC value is between 27 to 112 instead of 4095

I have an STM32F303K8 and I am reading now ADC values. The values are too small. Between 27 and 112 instead of going up to 4095. Any idea why? Can it be because I am debugging with USB port and ...
-1
votes
1answer
20 views

STM32F407VG Discovery + CMSIS HSE Clock Configuration

I am trying to program an STM32F4 discovery board using Vscode, Platformio and CMSIS. However, I cannot set the right clock frequency. I have programmed it to blink an LED every second, except it ...
0
votes
0answers
48 views

Modifying library for the WSSFM10 Sigfox module for compatibility with STM32L476RG

Arduino IDE version 1.8.13 installed. Selected options: Board: "Nucleo-64" Board part number: "Nucleo L476RG" U(S)ART support: "Enabled (generic 'Serial')" USB support (...
2
votes
1answer
81 views

Is there a hardware only way to read a digital pin on the STM32 at a given frequency?

I'm using an STM32H7 and looking to sample a digital signal at ~6MHz directly into memory with periodic interrupts? I've seen an approach using a DMA read from the GPIO ODR address but this would seem ...
0
votes
0answers
36 views

ADC unresponsive when I use a slow starting power supply

I have a project using an STM32L412. It works fine on my bench power supply, but I made it to run on a piece of modular equipment which has a different power supply - this supply is slower starting. ...
0
votes
1answer
48 views

UART does not work properly after changing HSI to MSI in STM32L152

I am using STM32L152R8T6-A MCU. I use 3 UARTs in my project. UART buadrates are 9600 and 115200 bps. Initially I set the clock source to HSI (16MHz) and everything worked fine. But then I decided to ...
0
votes
0answers
25 views

STM32L4 UART Rx not working

I was trying to configure USART on an STM32L476 Discovery board. I know that register level coding is not great but it really works well for what I need to use the board for. I was able to send ...
0
votes
0answers
41 views

Feedback on converting signal from 3.5mm jack to ADC on STM32 Bluepill

I'd like some feedback on my circuit. My goal is to convert an audio signal coming out of my laptop's 3.5mm jack (using a sin generator at max volume gives me about a ±1.5V wave) to digital using the ...

1
2 3 4 5
65