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

STM32 GPIO_Init() function use

What is the exact use of the function GPIO_Init()? Can anyone please explain with an example? I really appreciate any help you can provide.
1 vote
0 answers
43 views

Commutation BLDC Motor with Complementary PWM produces slower speeds than Independent PWM

'"a complementary PWM can be used, which will also reduce the power dissipation in the devices". That means using Complementary PWM makes the MOSFET cooler. However, in my program, using ...
1 vote
2 answers
873 views

Garbage in SPI RX Buffer with DMA (STM32)

MCU: STM32f030f4p6 There is garbage in reception buffer, when I use SPI and 2 DMAs (for reception and transmission). ...
2 votes
1 answer
117 views

Why DMA can't approach global variable (STM32)?

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 ...
0 votes
0 answers
23 views

STM32H7 DMA not transferring correct values into TIM15 CCR1 register, why?

I feel like I am running out of options as to why this is occurring as the RM isn't that accurate to setup DMA + PWM using Timers. The goal is to use TIM15 as a PWM generator running @ 800kHz running ...
2 votes
2 answers
191 views

CAN ports on STM32F407G board

The project I'm starting with requires multiple development-boards connected with CAN buses. Is it possible to put two CAN ports on an STM32F407G board?
1 vote
1 answer
1k views

STM32F0 - interrupt/breakpoint not working on certain hardware

OK I realise this sounds like a dumb/noob question but please do read it through before calling me an idiot - at this stage I'll gladly take it if you can spot where I've gone wrong! The scenario: ...
-3 votes
0 answers
57 views

Writing into flash memory [closed]

I am using STM32 HAL library for read and write flash. I have few questions: What will happen to data present in flash when we reset power? What will happen to data, if we flash new code with only ...
3 votes
3 answers
161 views

"Idle State" Not Respected after PWM on STM32

I am playing a tune on a speaker on an STM32G0B1 using PWM, however, sometimes after playing a tune the speaker continues to be driven despite Stop being called and ...
0 votes
1 answer
3k views

Measuring speed with Input Capture Mode [STM32 & CubeMx]

I have the L432KC Nucleo. I'm trying to measure low speeds with a 1 PPR (pulse per revolution) sensor. For low PPRs, using the Period Measurement Method is suggested. If I get the period of the signal,...
2 votes
1 answer
60 views

GPIO pins not changing state - unsure how to debug

I am using an STM32F072CB. Some of the GPIO pins are connected to a multiplexer for controlling the channel, and others are connected to some MOSFETs. The pins are configured as regular no push/no ...
1 vote
1 answer
770 views

Interfacing OV7670 camera with STM32F4 (no FIFO)

I have to interface my STM32F401RE with an OV7670 camera module without external AL422. I followed some of the many tutorials for Arduino, and I was able to capture images using Arduino UNO. ...
0 votes
2 answers
55 views

STM32F303 - is it possible to read the state of PB14 when in MISO SPI mode?

I have an ADC chip, CS5532, that sets the MISO line on PB14 Hi if data not available, and Lo if it is. Can I read the state of the MISO line? Every time I try to do it I read that the pin is Hi (I am ...
1 vote
1 answer
372 views

Unable to flash a stm32 (STEVAL-PTOOL1V1) : No device found on target

The board is a STEVAL-PTOOL1V1. The setup was tried on different boards. The programmer board used is a STLINK-V3SET. I followed the instructions on the ...
0 votes
1 answer
191 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, ...
0 votes
1 answer
3k views

How to use both RTC and RTC alarm on STM32?

I've got a board with STM32F103C8T6 and a 32.768 kHz external crystal. The RTC module of STM32 is used as a calendar as I set the prescaler to 32767. But, to reach the minimum power consumption, I ...
0 votes
0 answers
22 views

STM32CubeIDE Importing a Project in C Language

I am trying to import a project written by C language into STM32CubeIDE. The files are arranged as follows: Acoustic recorder, acoustic transmitter and master_rf are separate projects (each should be ...
2 votes
1 answer
181 views

STM32 always USBD_BUSY after 1 send packet with Windows host and no problems with Linux host

I use STM32G474 and USB in V-COM mode with default transmit function: ...
1 vote
1 answer
607 views

Quad-SPI (QSPI) net length mismatch

I am trying to make a good layout for the LAN9252 mac and STM32F7 controller, running at 80 MHz and I had to route data tracks with different lengths. The question is should I use nets lengths ...
1 vote
1 answer
402 views

STM32F4 Discovery Board timers, PWM and LEDs

I'm working on a project where I need the on-board LEDs to respond to PWM from the timers in order to make the LED pulsate over a given time period. I've been able to get the LED to pulsate (blue LED -...
0 votes
1 answer
2k views

STM32L011 jump to bootloader from user code

I'm trying to make it so that my STM32L011 can jump from user code to the ST bootloader that allows flash to be reprogrammed over USART2. This is hypothetically the same question as STM32F091 Jump to ...
0 votes
1 answer
956 views

MicroSD with STM32 and SPI mode - pull-ups and EMI filters

In the context of using the STM32F103C8T6 microcontroller I wonder I am thinking about the most practical and relevant method of the microsd application in the device from the point of device security....
3 votes
0 answers
32 views

Multiplexer bandwidth limit (Datasheet decryption) for two external clock on STM32

I would like to have the possibility to select between two main clock on my STM32. Both clock are single ended, 3V3 LVCMOS output. First clock is a 19.2 MHz TCXO, and second clock is a variable clock ...
0 votes
1 answer
41 views

STM32F407VET6 - How can I handle frame and noise errors in UART?

I'm receiving data in UART Rx with DMA and I need to make it immune to disconnections. Now, sometimes I can recover the communication after a disconnection, but I need to recover it always. Using the ...
0 votes
1 answer
1k views

STM32L4 Clocks Configuration

Does anyone know of a code template to properly configure clocks, PLL, latency, etc. for the STM32L4x parts? I'm using a NUCLEO board with this part (L476RG) and have struggled for days with the ...
0 votes
1 answer
462 views

FMPI2C on STM32F407

Is it possible to use Fast mode I2C on STM32F407 ? I looked everywhere for the I2CX pins GPIO but Can't find them at all.
-1 votes
1 answer
37 views

MCU receive CAN data after a while

I am using stm32f4 and sensor with my Canbus experiments. When I transmit canbus data to sensor, sensor send to some data as in below picture( green is Canbus H line, pink is CAN-Rx line) And blue is,...
0 votes
0 answers
21 views

How to handle large MQTT data (240000 Bytes) on STM32

I am using STM32L475 dev board and SIM7600 4g module. I have implemented MQTT communication in this project. I can successfully connect to MQTT broker and also able to receive the data. But the ...
0 votes
0 answers
15 views

Canbus Rx pin shows Tx data [duplicate]

I am trying to see some data on the CANBUS line , I show the CANH and CANL data on the osciloscope line. And detect Rx line, When I show the Transmit message on the CANBUS line, I show the this data ...
0 votes
3 answers
59 views

Can Tx-Rx Data Line

I am trying to see some data on the CANBUS line , I show the CANH and CANL data on the osciloscope line. And detect Rx line, When I show the Transmit message on the CANBUS line, I show the this data ...
0 votes
1 answer
36 views

Facing problem to download Hex file to STM32 using Command line

I managed to write a script for flashing hex file into STM microcontroller. ...
0 votes
1 answer
161 views

STM32F103C8 SPI1 clock frequency too low (~32kHz)

I am trying to program SPI1 on STM32F103C8T6 (black pill board). I have configured it as follows: ...
1 vote
1 answer
57 views

Schematic to work with an SD card

The application note AN10911 from NXP contains several schematics for working with SD cards, for example the schematic shown below. However, it also states: This schematic does not include details ...
1 vote
1 answer
48 views

QSPI/QuadSPI: alternate bytes purpose?

I'm getting familiar with QSPI on my STM32F746-Discovery (not really relevant for the question, just some context). While reading reference manual, it lays out in details how the peripheral functions (...
1 vote
4 answers
2k 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 ...
0 votes
3 answers
194 views

STM32F7 NVIC INQUIRY [closed]

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
1 answer
1k views

Selecting the correct ILI9341 Drive Mode for STM32F407 using FSMC

I have selected the STM32F405 for my next project. With this controller, I am planning to drive a 240x320-TFT with an ILI9341 display controller by using the STM32's internal FSMC interface. I have ...
0 votes
1 answer
284 views

Transistor in the Darlington pair getting burned?

I have a relay board controlled by an STM32 to switch two AC loads (a compressor and an MD40 pump). The circuit seems to work fine but after about a day of operation, my BC847 got burned and the ...
0 votes
0 answers
39 views

STM32 SPI transfer only working correctly with first transfer, is there a relationship between the correct numbers and received values?

I have a custom PCB that contains a stm32f411re and a stm32f446re with the f411 acting as SPI master and the f446 is the slave. At the moment I have some very simple code, with the slave waiting in a ...
2 votes
0 answers
3k views

STM32 HAL PWM output with DMA misbehavior

I use the Blue pill STM32F103C8T6 to generate variable duty cycle PWM with DMA and using HAL library. And stuck with undesired results. First, I generated code with STM32CubeMX v5.0.1, HAL v1.7.0, ...
0 votes
0 answers
14 views

STM32F103: TIMER1 (CH3) doesn't work / produces no PWM (using libopencm3)

I use a STM32F103C8T6 with libopencm3 and I'm trying to get timer 1 on channel 3 (PA10) working. The datasheet (pg. 31) lists as ...
1 vote
1 answer
319 views

Debug and View Registers

I would like to view and analyze the registers in STM32 Embedded Cards(For Ex. STM32F407DISK) in STM32CubeIDE. As far as I know from the user manual and my own experience in CubeIDE, I did see my ...
0 votes
2 answers
354 views

How to design a circuit that the input signal type(positive or negative) can be selected via software configuration

Firstly, Hello to all, I am trying to design a circuit for automotive application that circuit will read positive and negative input signals in the same pin via selecting the type of input in the ...
1 vote
1 answer
450 views

STM32G030 BOOT0 pin - SWCLK

I designed a board with an STM32G030C8T6 MCU and some peripherals. The board is working just fine, regarding the functionalities, but I have some issues with flashing. So, the first "strange"...
5 votes
1 answer
4k views

STM32 UID decoding

In my project I need to make readable 96bit UID, in reference manual is described how the number is encoded: ...
1 vote
2 answers
52 views

Can CANopen coexist with CAN2.0B on the same bus?

I am new to CAN protocol so I have questions about combinations of CAN-Bus nodes on same network: Is it possible to communicate with two different devices one having CAN in Automation (CiA) CANopen DS ...

1
2 3 4 5
77