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
2
votes
2answers
186 views

Issue for TCXO through frequency multiplier (PLL) for STM32 I2S signal

I try to use TCXO (KT7050A24576KAW33TAD) at 24.576 MHz through frequency multiplier (PLL) x4 (NB3N511DG) to clock the I2S bus (SAI domain) at 98.304 MHz on a MCU (STM32L4R5VIT6). Signals are not what ...
0
votes
1answer
909 views

What is causing my error in executing arm-none-eabi-gcc.exe from Keil uVision?

I'm attempting to set up Keil uVision to build a simple C++ program for the STM32F3 microcontroller. I've downloaded the GNU ARM toolchain on my Windows computer and placed it into the directory ...
3
votes
4answers
14k views

High resolution system timer in STM32

I have some software running on an STM32F103 (I'd also like to be able to use the F4) where I'd like to be able to 'timestamp' events (such as interrupts on external pins) to the nearest microsecond (...
0
votes
1answer
345 views

PG2 GPIO output on Nucleo-F767ZI doesn't function

I have made a board on which I plug the Nucleo-F767ZI microcontroller board. There is one GPIO pin that I cannot get to function as a digital output: PG2. This is ...
3
votes
1answer
462 views

TX Polling Not Working when setting RX interrupt stm32f103rc

I was trying USART on STM32F103RC,baud 115200, sysclk 72MHz, 1 stop bit, no parity and i connected my stm with usb to serial to look my output on terminal. At first i did polling of RX and TX and send ...
5
votes
4answers
2k views

Should a ferrite bead be placed close to the MCU or close to the power supply?

I am trying to design a PCB based around the STM32F446RE microcontroller. I looked at the schematic provided by ST for their Nucleo-64 board, and physical placement of the ferrite bead on the board. ...
0
votes
2answers
855 views

STM32 Input capture PWM frequency measurement problem using HAL

I'm trying to measure time passed between two external interrupts generated by rising edges of a PWM signal (generated using a IC 555 timer). Point is to determine the frequency of the signal. I'm ...
0
votes
1answer
267 views

SPH0645 timing diagram

I am studying this SPH0645 module for use with a STM32. I started by checking the timing diagram of the I2S and compatibility between this module and the STM32. The STM32L151 MCU is compatible with ...
2
votes
1answer
5k views

Why does last data of I2C DMA transfer break?

I used DMA to transfer I2C data, but I always lose the last data. hardware configuration is shown below: ...
0
votes
1answer
24 views

SPI Daisy-chain with paralleled DIN

I'm trying to use daisy-chaining feature on three MAX5318 DAC's. However, I'm not sure how to do it properly. Do I need to turn CS low, then write 9 byte to SPI DIN, then double-trigger LDAC? Or to ...
0
votes
1answer
740 views

STM32F103 SPI MISO doesn't work as expected

In one of my small projects I use STMF103C8T6 as MCU and SPI memory W25Q128 of Winbond to store a data. The memory chip connected to SPI1. Here is a part of the scheme: The code is mostly generated ...
1
vote
1answer
38 views

How can you generate a PFM signal for an LLC converter?

I am researching resonant DC/DC converters that use PFM (Pulse Frequency Modulation). Before that, I was only familiar with PWM modulation, which I could generate at a given frequency from an Arduino ...
0
votes
0answers
21 views

Boot failure in wifi module

I am using a redpine rs9113 WiFi module in my device functioning with stm32l476 micro controller. Spi is used for the communication with the modem. While communicating with the modem, it constantly ...
1
vote
1answer
493 views

Stm32 C - Stepper motor start after 1 minute

I wrote a stepper motor driver with the use of DMA and TIM1. I accelerate the signal using the so-called Ramps. I calculate the times and load them into the DMA table and pass them to the TIM PERIOD ...
0
votes
2answers
79 views

Setting up STM32 to sample 50/60 Hz Signal

I'm setting up this ADC triggered each ms with a timer interrupt, or 1 kHz sampling frequency to read a 50/60 Hz AC signal and calculate its RMS with 1% accuracy. Also I'm using DMA. The AC signal ...
1
vote
0answers
45 views

USB host msc stop writing

I'm trying to write data to usb memory stick with stm32f107. Main function is: ...
3
votes
2answers
3k views

Add serial interface to ST-link clone

I recently started studying STM32 microcontrollers (BluePill STM32F103 dev board + ST-link V2 clone). I was wondering if it is possible to add serial communication to ST-Link clone? From what I ...
0
votes
1answer
1k views

STM32 FSMC/FMC and DS90CR285

I don't want to use an FPGA. I need to quickly put together a prototype that will relay DCMI data (small resolution camera sensor) to DS90CR285. Here performance doesn't matter that much – later it ...
-1
votes
1answer
83 views

What is IC/OC in microcontroller datasheets?

As I was going through STM32F103C8T6 microcontroller datasheet, I came across IC/OC/PWM. What is the meaning of IC/OC?
0
votes
2answers
1k views

Configuring ADC in STM32F3

I'm trying to enable an ADC converter. I'm using STM32F3 Discovery with SPL Library. I measure voltage on PA1 pin. I don't know why it doesn't work. What have I missed? The value of 'value' variable ...
1
vote
1answer
237 views

No output voltage from TI DAC chip, with stm32F7

I am using DAC60508 with my STM32F7, 60508 is 12 bits precision, and with 24 bits command-length, SPI interface. After initialize the SPI, I send 3 bytes separately, and I use a oscilloscope to check ...
0
votes
3answers
99 views

Optimization kills the switch statement that I need to use in a function

Optimization kills the switch statement that I need to use in a function Hi all, how are you?. I'm doing a project with a STM32F103C6 (it has 32KB flash) and I had to activate optimization options to ...
4
votes
2answers
782 views

What are VDDA and VSSA?

What do VDDA and VSSA mean? Are they for a separate analog power supply? What is an analog power supply in this context? How does it differ to a digital power supply? Which one is better to use and in ...
3
votes
0answers
131 views

Getting an ACK failure right away after writing slave address in interrupt mode for I2C [STM32F4]

I see that once slave address is written in the interrupt handler, I get an ACK Failure right away, but when I do the same thing with polling approach, I do get an ACK and goes on to read off the ...
0
votes
1answer
85 views

STM32 - cannot properly send UART response because EXTI frequently interrupts UART handler with higher priority

I'm using STM32F4 with HAL. It is configured as a simple counter as it counts pulses via EXTI interrupt. I want to asynchronously ask for the current number of impulses via UART. Highest frequency of ...
0
votes
1answer
38 views

Which voltage regulator should I choose to power STM32 + 4G module + GPS with low consumption when they're in stand by?

I'm trying to design a 4G tracker that uses a 4G module and a GPS receiver. The 4G module, as the datasheet says, uses a maximum of 600mA when connected through 4G + audio working, so this is the ...
0
votes
0answers
31 views

STM32F4 SPI Tx Data Register Problem

I am trying to communicate with IS25LP128F Flash IC via SPI on STM32F407. Firstly, I tried to send RDID command as you see in the picture.How to send commands and reading respond of them is explained ...
0
votes
1answer
254 views

STM32F103RCT6 custom design check

With little experience with electronics and comming from an Arduino background I am designing my first STM32 PCB. My question here is, since this is my first attempt, I would like to have some advice ...
1
vote
1answer
108 views

STM32 ADC continue mode

I am using STM32F030F4P6 when I call this Function my ADC starts successfully and I can read ADC value in ADC callback but my MCU hangs at this function line what is the problem? My code is generated ...
1
vote
1answer
203 views

Error when using vPortFree(ptr) CMSIS-RTOS on STM32F4

I will need to handle dynamic memory using malloc and free. Looking on FreeRTOS documentation, I found pvPortMalloc(size) and vPortFree(ptr) , pvPortMalloc(size) works fine. When try to release memory ...
0
votes
1answer
59 views

Why 2 equal decoupling capacitors are needed for each STM32 VDD pin?

I was watching this Kicad tutorial for an SMT32 chip and at 9:15 it says that the recommendation for each ot the VDD pins on the SMT32 chip is to put 2 100nf ...
1
vote
1answer
28 views

How to disable EXTI interrupt under stm32 MCUs with SPL library?

I need to disable EXTI interrupt under stm32 with SPL. Here is my configuration: ...
2
votes
1answer
1k views

Cube IDE : Error: unknown type name 'HAL_StatusTypeDef'

I am taking code from a stm32f0 series and trying to convert it to a stm32l4 series dev kit. I have already changed the necessary addresses and include files that I needed to migrate, but I keep on ...
0
votes
0answers
50 views

I WANT at least 3 uart in interrupt in stm32

while I am using six UART in interrupt then my hardware is not working properly i.e hanging. could you please tell me what should I do for this? while I am using the polling method then it's ok but on ...
0
votes
1answer
44 views

I2C reading sequence head-scratching diagram

I am using MPU6500 accelerometer in I2C mode. Datasheet explains the reading sequence on page 33. It may seem easy for someone who is an expert but it is my first time using the I2C interfaced device....
0
votes
0answers
22 views

stm32f407: usage of PSC in IrDA Low-power mode

Finally, I received my stm32f407 board, and a sample USART C project. The project comes with a Stm32f4xx_usart.c file (not HAL driver). I want to figure out what ...
2
votes
3answers
1k views

Driving Nokia TFT LCD with STM32

How do I increase the refresh rate of a Nokia LCD that I'm driving using the STM32F103 microcontroller? The LCD is 132*162 and takes a 9-bit instruction/DATA with RGB for each pixel in 565 format. ...
0
votes
0answers
52 views

STM32 MEMS microphone - weird output

I have an STM32f407vgt development board that has a MEMS microphone (MP45DT02) on it. I aim to take processable data from this microphone. STM32 provides PDMtoPCM conversion library and I2S ...
0
votes
3answers
114 views

STM32F7 NVIC INQUIRY

I'm trying to connect the NVIC interrupt to handle a keyboard, nonetheless I'm having troubles becuase two keys are connected to the line0, which use the EXTI0_IRQHandler, I saw in the stm official ...
0
votes
0answers
42 views

Setting up UART with STM32L4RGTx

The prompt here is to debug the issue with UART setup on the STM32 chipset. I've followed a couple of online blogs to understand and setup the UART interface. I want to transmit (only) a dataframe (...
1
vote
2answers
388 views

STM32F4 and SIM800L logic level

I am currently using an STM32F401RE that I have to interface with a SIM800L GSM module via UART. In a first "toy example" I used Arduino and found no problems, but passing to the STM MCU I am unable ...
5
votes
2answers
558 views

What is DMIPS/MHz?

As I was reading the datasheet of STM32F103C8T6, I saw that it had 1.25 DMIPS/MHz (Dhrystone). What is DMIPS/MHz? I am adding the link to the datasheet here
0
votes
0answers
59 views

Why is the over sampler slowing down my signal?

at it again. This time I am playing around with oversampler in the STM32L432KC. Page 425. Currently sampling at 44.410kHz. Making my Nyquist rate ~22205Hz. Everytime I enable the oversampler to have a ...
2
votes
1answer
113 views

Flash and debug of multiple STM32 in JTAG with J-LINK

I have a board where 3 STM32 are connected to a JTAG port. The 3 STM32 are daisy chained. I am using a JLINK EDU Mini with Atollic TrueStudio IDE. One STM32F746 is a master for the two slaves ...
0
votes
1answer
207 views

STM32 DAC Trigger

I am Trying to use the DAC output on my STM32L053R8 NUCLEO Board. I generate the corresponding Sin-Wave values to set the DAC Values like this. ...
0
votes
2answers
50 views

Recieving and processsing array of data on STM32

I am trying to use RealTerm to send a .txt file containing a 10X10 array of data to my STM32 NUCLEO board using UART. So far I have been using HAL_UART_Receive_DMA and I have been able to store simple ...
1
vote
1answer
3k views

LWIP Raw UDP API on STM32F2/F7 generated by CubeMX not sending on startup, requires an arbitrary amount of resets to work

I'm working on a project using the LWIP raw API with the stm32f2 and cannot get it to work. The basic concept of the project is to have the stm32f2 acting as the actuator and gets instructions from ...
2
votes
0answers
56 views

MCP2551 with STM32 MCU

im learning about the CAN protocol, and bought the transceiver module MCP2551 like this: I made the driver for CAN controller first in loopback mode for debug, im sending the numbers 1,2,3 and 4 with ...
0
votes
1answer
231 views

AC dimming with STM32 timers

I'm using an STM32 for AC dimming, for which I use a GPIO output (or timer channel out) to drive a triac, whenever I get a zero crossing detection (rising edge). Is there a way to solve this only ...

1
2
3 4 5
61