Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
32 views

Verify Total conversion time of ADC1 STM32F303

I am using ADC1 channel1 of STM32F303 in Time triggered mode. TIM1 is used to generate update event and is used as trigger source for ADC1. Time Trigger comes at 1kHz. I want to verify the total ...
0
votes
1answer
88 views

STM32F030R8 Nucleo-64 Board ADC Voltage Reference

I want to decrease the reference voltage of the ADC to have a better resolution, by now I do not want to try other options. Could someone explain me how can I do this? I am using the Nucleo-64 ...
0
votes
1answer
54 views

Implementation of RTOS in irrigation embedded application on stm32

I have designed a small project in which i have two sensor nodes(stm32) with each sensing temp, humidity and soil moisture and actuating the relay based on some threshold of moisture value. These ...
0
votes
3answers
98 views

What code issues could persist past a reset? (STM32F103)

I have a project running off a Bluepill board (STM32F103C8T6) that ceases to function only after it runs for ~6 hours. Up to that point it behaves totally normally, and UART logs don't indicate ...
0
votes
1answer
37 views

Timer capture STM32

I have some questions about timer capture in the STM32. Is it possible to capture a digital signal? Like this: Actually, I'd like to know how many clock ticks between rising and falling edge, in ...
0
votes
1answer
60 views

STM32 interrupt from Matlab Code

I'm using the STM32 MAT plugin and embedded coder for Simulink to generate C-Code out of my models to compile them onto an STM32F4. As IDE I use TrueStudio and for my MCU Configuration I use CubeMX. ...
0
votes
0answers
27 views

Interfacing tft lcd ili9225 with nucleo f767zi

How to interface tft lcd ili9225 with nucleo board f767zi. There are no libraries for the ili9225 driver IC with nucleo board. And I don't know where to start without pre built libraries like ...
0
votes
0answers
197 views

STM32H7 SPI DMA

On STM32H7 I'm using DMA for SPI transfer. I use SPI1 and SPI4, both in D2 domain, together ...
1
vote
3answers
81 views

SPI and I2C connections by using mosfet (high side, low side)

I need to design sensors card in altium for sensors connected I2C and SPI. When I searched modules on internet, while some used mosfet to handle high and low side others did not use mosfets. I could ...
0
votes
2answers
54 views

STM32 TFT not displaying solid color

I am trying to use this display with an STM32F0 using SPI. I begin by setting up the peripherals using the following ...
4
votes
3answers
244 views

How to properly use STM32 flash memory as an EEPROM?

I have to save certain parameters to the flash memory and these values should be non-volatile. But my program will change these parameters and I want the changes updated to the flash. I understand to ...
0
votes
0answers
23 views

STM32F405 - learning turn LED on with momentary switch

I have just started using a homemade STM32F4 development board. The board works OK and I am using STM32 Cube-MX to configure it and Keil uVision 5 as a compiler. I started with a simple blink and ...
0
votes
0answers
56 views

STM32L4 External SPI NOR FLASH WinBond W25Q80DV

I am attempting to communicate with a winbond memory chip over SPI with the STM32L4VG. I am first just trying to read the manufacturing ID and my results are never consistent. Running the same code ...
1
vote
2answers
201 views

STM32F3 I2C hangs on busy flag (interrupts)

I am using two STM32F303K8 Nucleos and hooked up the SDA/SCL (GPIO B PIN 6 & 7) pins to 3.3V across roughly 4.7K resistors to 3V3. When I check the voltage on the pins, both are 3V3 so it's not ...
0
votes
1answer
53 views

Identifying unhandled interrupt

I stopped in the middle of debugging a very simple project where I send "hello world\r\n" every couple seconds out of USART2. The first print hits the console and then I hang in an infinite loop ...
3
votes
2answers
325 views

How to configure DMA to receive variable length USART messages?

I am trying to receive USART messages on a microcontroller originating from PC which will command it to execute certain tests. I am using STM32F4, I chose to use DMA as messages on the same USART ...
0
votes
1answer
29 views

CS43L22 DMA constant beep noise

I am using CS43L22 with STM32F4 discovery board. I generate sounds by sending I2S messages to CS43L22 using circular DMA buffer (32 size array). However, chip creates a constant beep whether it's ...
0
votes
2answers
90 views

STM32F429 CANopen with or without transceiver

this might be a stupid question but i'm unable to clarify this by myself. So i'm working on a project with a STM32F429zit microcontroller. I would like to use CANopen in my project so i can ...
0
votes
1answer
35 views

DMA Init code for ADC sampled data

I am trying to figure out how this DMA Initialization code is used to sample following 4 ADC channels and save data in 'adc_data'. ...
0
votes
0answers
34 views

Change SWD pin Back to SWD mode at run time in STM32F030F4

Im using PA_14 (SWCLK) as Output mode in stm32f030f4 microcontroller. I change state of this pin to output mode for a buzzer that is not in service at all time. At the end of the buzzer function I ...
0
votes
1answer
64 views

STM32 bootloader protocol

I am attempting to update the application code on an STM32 chip programatically from another chip. I have an Intel format hex file generated from the build process and I would like to use the ...
1
vote
2answers
47 views

STM32F0 Disco on-board “Cannot connect to target”

So I've already went through these topics: "can-not-connect-to-target-using-stm32f0-discovery-board-as-st-link" "STM32 & ST-LINK - SWD connector not working" I cannot access on-board target with ...
1
vote
1answer
68 views

Finding ADC pins from Init code

I am trying to figure out the GPIO Pins that are used for ADC input looking at the following ADC Initialization code for STM32L476RG. ...
-1
votes
1answer
80 views

Weird character from UART. STM32L100RC

I'm having problems communicating with UART on my STM32L100RC discovery board. I get character such as xþ when I'm sending the letter 'F'. I'm using Hercule to receive data. Hercule's configuration is ...
1
vote
3answers
172 views

STM32F4 HardFault_Handler

I've been trying to program an STM32F412RG but my program is stucked at HardFault_Handler once debug starts. My board is an Wio LTE EU Version and I'm trying to ...
1
vote
0answers
49 views

simple uart code doen't work

I wrote simple uart transmit and receive functions(for serial communication between PC and stm32f4 discovery board). I am using usart4 on the board and a usb to serial converter to create a virtual ...
0
votes
0answers
41 views

STM32F4 stop mode exit on Usart receive interrupt

I am using STM32f4 board and trying to achieve lowest power consumption . So i am using stop mode and wake up through RTC that is successfully tested . now i want to wake up through USART interrupt ....
0
votes
1answer
60 views

how to enable FPU in cubemx

For STM32F407 Discovery board how do I enable its FPU from CubeMX? The following instruction is used in handwritten code. How can I get it generated from CubeMX? // Enable FPU SCB->CPACR |= ...
1
vote
3answers
61 views

issue with timer code

I wrote a simple code to blink an LED connected to PA3 on the STM32F4 Discovery board every 1sec using timer4. I haven't declared any of the swd pins of the board for gpio, yet I get the following ...
0
votes
1answer
65 views

Connect STM32F4 with smart card ISO7816

everybody. My task is to connect STM32F4 discovery Board with Smart Card ISO7816. I don't use interface ST8024CDR only hooked paid directly by the scheme specified in the image: I tried to adapt the ...
0
votes
1answer
33 views

ST STM32H743XI (ARM M7 based) MCU - ADC Configuration

I am using the ST STM32H743XI (ARM M7 based) MCU, I want to use the ADC to measure 7 Hall sensors (use both slow and fast channels), i need the conversion time for all seven ADC channels to be the ...
2
votes
2answers
179 views

STM32 programming and BOOT0 pin

I am developing a STM32H7 board which will be programmed via SWD. I am curious, is there any reason why I should connect BOOT0 pin to GND via resistor and not directly to GND? I won't be using the ...
0
votes
1answer
109 views

STM32F746 - DISCO I2C HAL_TIMEOUT

I am attempting to implement I2C interface on the STM32F7-Discovery Board using the a VEML 6070 UV light sensor (https://www.vishay.com/docs/84277/veml6070.pdf). The 7-bit slave address for the ...
0
votes
0answers
28 views

Can I use the st-link/programmer on nucleo l432kc to program external baords?

Can I use the st-link/programmer on nucleo l432kc to program external boards? I know that I need the SWCLK and SWDIO pins and they don't seem to be connected to external headers but I saw some people ...
0
votes
0answers
62 views

STM32L0 Hangs on writing EEPROM

I've got an STM32L073RZ and I'm attempting to write a 4 byte value to the internal 6 KB EEPROM. I'm running MbedOS 5.11.4 but attempting to use the HAL for this. Here's the code: ...
3
votes
0answers
111 views

Weird problem on STM32 ADC with Interleaved Mode

I am sampling a signal on the STM32F3 Discovery board (stm32f303vct6) with two ADCs working in interleaved mode. It works great with a 200kHz 1V sine wave. But when I apply 10kHz 100mV sine wave, I ...
1
vote
0answers
60 views

Reading Sensor register data using SPI STM32

I am asking you kindly your help. I am trying to read register data from the LSM6DS3 IMU sensor from Sparkfun using SPI. I succeeded reading the value 0x69 from register WHO_AM_I using Arduino. Now ...
0
votes
0answers
81 views

Multiple read ADC STM32

I'm trying to read multiple ADC value one after the other using the continuous scan method. I have fallowed quite a few tutorial and example, but nothing seems to work for me. I am using the ...