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
29 views

STM32F100RBT6 basic initialization code does not work

I have been currently working with the HAL libraries but I got fed up with it and want to access registers and make better use of the uC itself. So, I have a code that should blink a LED and I have ...
1
vote
1answer
27 views

STM32F405RGT6 for AD7768 ADC fast enough?

I want to operate 2 simultaneous channels of an AD7768 A/D converter @ 256 kS/s. Its resolution is 24 bit which yields a data rate of 2 x 24 bit x 256 kS/s = 12.288 Mbit/s. Using a microcontroller, I ...
1
vote
1answer
19 views

STM32F4 Discovery ADC trigger using Timer 2 and DMA | CMSIS Core

I am working with a very old problem which is to convert ADC and send to UART via DMA. I am stuck at making the correct sampling time. What I had done so far is to configure TIMER2 and ADC. I Used ...
3
votes
4answers
919 views

Why is my output signal aliased when my sampling rate is decently above the Nyquist theorem?

I'm really confused on what's happening here. I have my ADC sampling at 44.410kHz and any frequency above 11Khz it would alias the output signal. The max target frequency is 20kHz for clarification. ...
0
votes
1answer
55 views

STM32 Unwanted Bootloader on first power-up

According to this, seems like stm32 boot process is as follows: Check if FLASH is blank. if yes, goto bootloader mode Check if BOOT0 pin is asserted. if yes, goto bootloader mode goto Program mode ...
0
votes
1answer
40 views

STM32 HAL I2C always sends 0xFF as first byte when responding to master using HAL_I2C_Slave_Transmit

I have an STM32G4 using the HAL function HAL_I2C_Slave_Transmit to respond with some data when requested by a master on the I2C bus. In the image below you can see the device sends 0xFF followed by ...
0
votes
1answer
45 views

Configure SPI Slave to handle data coming at the wrong time

I am experimenting with the SPI protocol (fast speeds where 5 bytes of data is transferred in slightly less than 500us) on the STM32F410 configured as a SPI full duplex slave. A master device sends a ...
0
votes
1answer
22 views

FTDI and ST LINK devices together to STM32

I have an STM32 board (blue pill) that I am programming with the Arduino IDE. I couldn't program it using an FTDI adapter because I couldn't make the Arduino IDE communicate trough the USART for ...
3
votes
1answer
345 views

What is the meaning of this schematic symbol (labelled COMP.J1 JPAD3)

I am trying understand the schematic for a Waveshare Core 407I board, with an STM32F407IGT6 MCu. What is the meaning of this schematic symbol (labelled COMP.J1 JPAD3)? Link to full schematic: https://...
0
votes
0answers
40 views

stm32f401 usart: start bit detection sequence when oversampling by 8

I'm currently using usart on stm32f401. I'm wondering how the receiver detects start bit when oversampling by 8 is selected. The reference manual (RM0368) states that the start bit detection sequnce ...
0
votes
1answer
26 views

How to use chip XL6007E1 to build a boost ciruit?

My ciruit: Input: 3.7V But no matter how I adjust the potentiometer, the voltage did not rise. How can I solve it?
0
votes
1answer
43 views

What is the value present at the first address of flash memory of stm32 for every firmware?

Every firmware of Stm32 microcontrollers, the first value is starting with 0x2XXXXXXX, while working with custom bootloaders, I found that this is an address on SRAM, 1)What is actually present at ...
0
votes
0answers
45 views

Understanding a generic flow of a simple data logger via FreeRTOS

So I came up with this simple flow of the program that could be done without RTOS but I'm using it for the sake of learning. The generic idea is to get the user input over UART, and if it's something ...
0
votes
1answer
32 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 ...
0
votes
0answers
25 views

Linker error in Iar

When I compiled a program using stm32l476 micro controller using IAR embedded workbench IDE, I am getting the following linker error. Error[Li005]: no definition for "rtt_seq" [referenced ...
-1
votes
0answers
37 views

Need to showing image on display from internal flash without filesystem [closed]

I have an STM32F746I(LTDC) MCU with interface 5.0″ TFT, 800 x (RGB) x 480. I am able to display images,text using the TouchGFX tool(GUI creator). But I want to store the image in internal flash and ...
0
votes
2answers
103 views

Sending large ammount of data with USB

I'm currently facing a big problem. I've an MCU (STM32L4) connected to an SD card (SDIO) which stores tons of data (5Gb) from a microphone. I need to send this data as fast as possible from SD card to ...
0
votes
0answers
52 views

CANBus problem with STM32

I am working with CAN Bus on the Nucleo H743ZI2 (STM32), I have set up the times for a clock souce of 10 Mhz, and can baud rate of 1 Mbps. Everything seems to work correctly until the motor is turn on ...
-2
votes
1answer
44 views

Read RTC time from backup memory [closed]

I have a question and would be grateful if you could guide me. I want to use RTC with stm32f103c8 and a backup battery But when I turn on the device again, time is lost and everything starts from zero....
1
vote
0answers
20 views

STM32 H743 HRTIM with multiple PWM outputs

my question got closed on the programming forums, and was told to post here. I have a project with an STM32 H743 on which I am generating 6 PWM channels to control a brushless motor. Everything is ...
0
votes
1answer
34 views

STM32 HAL I2S problems

So I tried to power up codec (CS4272) together with my F401 board. After a lot of tweaking I got I2S to work and send data, but there were gaps. Upon further investigation it looks like ...
0
votes
0answers
49 views

ST link not working when PCB is powered with a 3v3 smps

I am programming a stm32 (2 wire SWD: SWDIO and SWCLK) series MCU with a st-link V2 i cut off a nucleo board. I usually just connect the 3V3 supply off of my arduino, but atm i am trying to make a box ...
-1
votes
1answer
51 views

RTC time is not kept in Stm32f103 by vbat

I am using stm32f103c8 and External Clock Crystal (LSE). I connected the Vbat with a 1220 coin battery. But when I turn off VDD and turn on the micro again, the time and date are all zero. Why time is ...
0
votes
1answer
31 views

Essential difference between normal irda mode and low-power irda mode?

guys, I'm learning stm32f401x mcu. All I have is an rm0368 reference manual pdf file. No mcu chip right now. From the manual, I learnt that PSC instead of ...
0
votes
1answer
37 views

HC-05 connection to Stm32f103c8

I wrote a code on stm32f103c8 to communicate with the HC-05 Bluetooth module. So far I have no problem and I receive and send any data correctly, but once I disconnect from the module via mobile phone ...
0
votes
1answer
79 views

I2C communication with multiple slaves

Hi guys may I ask for your inputs on the I2C communication. I am using STM32F103C8 MCU with 2 slaves on the I2C bus. 1st slave is PCF8574 IO expander and 2nd slave is MCP4725 DAC. I'm using CubeMX to ...
0
votes
0answers
16 views

STM32 NUCLEO-F302R8 UART : RX pin does not trigger RX callback

I'm using an STM32 NUCLEO-F302R8 and wish to communicate with it using any UART instance (1,2,3) through its RX/TX pins. So far, I've managed to read from the TX pin but never managed to send messages ...
0
votes
0answers
8 views

How to solve the netIF_SetOption function(IP address changing problem) in CMSIS?

I am following this https://www.keil.com/pack/doc/mw/Network/html/network_create_app.html#Runtime%20Configuration tutorial about the Network library with CMSIS. I could change the Mac address via ...
0
votes
1answer
48 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: ...
0
votes
3answers
141 views

STM32F103C8T6 ADC value problem

We are designed and printed the PCB of the stm32f103c8t6 blue pill board as per stm rules.. After fabrication and assembly finished, we connect the board to Keil software and device detected and the ...
0
votes
1answer
56 views

How to initialize a 16x2 I2C LCD in 4-bit mode with an STM32 MCU?

As part of an alarm clock project, I am trying to interface a 16x2 I2C LCD with an STM32F103RB microcontroller. The LCD uses an I2C backpack and only utilizes D7-D4 meaning 4-bit mode must be used. ...
0
votes
1answer
51 views

HardFault with FreeRTOS at STM32 - New Project

Is this a bug. First I created a new project and enabled FreeRTOS and then I set the Time Base Source to TIM3. Then I got hard ...
0
votes
2answers
35 views

Is there a way to download a firmware from an stm32f103c8t6?

We have a prototype that uses an STM32 chip, however our software guy went off the grid since COVID-19 and we have only 1 out 5 working prototypes with the software uploaded and working. Now we cant ...
-1
votes
1answer
46 views

How to obtain the unique id of STM microcontroller?

I need to know how to obtain the STM32f107 microcontroller unique ID. I have read this page but it doesn't cover how to find the address of unique ID of different STM MCU.
0
votes
0answers
34 views

DMA + ADC + FreeRTOS in STM32 - Cannot read any ADC value - Why?

I'm using Nucleo STM32F401RE board. I have a small issue. I have connected SPI connections + two potentiometers and FreeRTOS. But I can't read the ADCs. I wonder why? I have created an array called <...
0
votes
1answer
41 views

STM32MP157 GPU documentation

Reference Manual Chapter 20 of this document describes GPU and basically uses 2 sentences about, it is just present, however it mentions that it supports OpenGL ES 2.1 API. The question is, ST ...
8
votes
3answers
732 views

STM32 - How does analog configuration of MCU pins affect the power usage?

When I was creating a new project using the STM32CubeMX, I saw a check box stating that setting all free pins as anlog will decrease the power consumption. I couldn't figure out how it works. How can ...
0
votes
0answers
72 views

Running two threads at the same time is causing a hardfault

So i'm learning FreeRTOS on STM32 and currently following a tutorial to get things started. Following are my concerns with the first one being the most: I have two threads, but upon running a ...
0
votes
0answers
21 views

Can Nuttx/ChibiOs OS can be flashed on STM NUCLEO-F412ZG/F746ZG

I am trying to find compatibility between Nuttx OS/ChibiOs (RTOS) with NUCLEO-F412ZG/F746ZG. I want to develop applications compatible with Nuttx and deploy it on STM32 NUCLEO-F412ZG/F746ZG ...
0
votes
0answers
79 views

STM32F105 stop executing after 16 seconds

I'm facing an issue with an STM32F105 microcontroller which with a simple code executing in a while loop it stops after 16 second here is code which I don't think there is a problem with the code ...
0
votes
2answers
67 views

STM32F10x microcontroller debugging problem

I'm a beginner and I'm using STM32F10x family to learn about electronics.I was using STM32F103 blue pill in the past few months and I can debug it and upload code to it while both boot0 and boot1 are ...
1
vote
2answers
61 views

Context Switch in C in 32-Bit MCU

I am trying to understand the concept of 'Context switch' in reference to C-language and 32-bit MCUs. For example if I am programming STM32F407 MCU in C-language using STM32CubeIDE and I want to ...
0
votes
1answer
64 views

Do I really have to cast float to uint8_t if I just want to convert 203.0 to 203 at a microcontroller?

In computers, it's OK to use float as an argument where the argument should actually be a uint8_t ...
1
vote
0answers
28 views

BHI160b driver usage

i am trying to read quaternion's out of the BHI160b, that's why i purchased the BHI160b shuttle Board from Bosch. I want to connect it with my NUCLEO-L053R8 from STM. So i implemented the library into ...
0
votes
3answers
129 views

Is this a proper way to find the derivate of a 12-bit ADC?

I'm seeking a solution to find the derivative of an 12-bit ADC. It's for STM32 but let's say it's for likely for an arbitrary micro controller. ...
4
votes
1answer
151 views

Why operations on float variable are performed on a double? STM32F401RE, MDK-ARM v5

I am debugging a simple line of code: float temp_f; ... ... temp_f= temperature[0] +(temperature[1] >> 5)*0.125; that is assembled into ...
0
votes
0answers
49 views

SPI Slave sometimes sends incorrect data

I apologize in advance if I should have not created a new thread as I ran through new issues after making updates to my project posted on this previous thread: SPI data arrives at every 2nd send and ...
0
votes
1answer
41 views

STM32 Device_only USB_OTG

I a working on a project around the STM32H7 (Nucleo STM32H743ZI2) on which I am using the user USB to communicate through CDC interface. Everything is working fine, however, I just noticed that this ...
0
votes
1answer
38 views

How can I open and run the blink example from the STM32F3 MCU package?

I have previously written, compiled and flashed applications to an STM32F3 Discovery board succesfully with the STM32CubeIDE. ST offers an STM32Cube MCU Package for STM32F3 series, which I downloaded ...
0
votes
0answers
40 views

CAN filter configuration

I'm trying to understand how to configurate CAN filter. STM32F4 MCU is used. Idea is to catch only dedicated messages, for example messages with ID from 0x100 to 0x190. I understand that each CAN ...

1
2 3 4 5
61