Questions tagged [stm32cubeide]

STM32CubeIDE is an all-in-one multi-OS development tool, which is part of the STM32Cube software ecosystem.

Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

NUCLEO-L432KC timer PWM frequency problem: PSC and ARR values not resulting in desired PWM frequency

I have been trying all day to use timer 1 channel 1 of a nucleo-L432KC (with a STM32L432KC MCU) to generate a PWM signal of frequency 50 Hz (pulse width 20 ms). I tried many, many, MANY different ...
Luis Alcantara's user avatar
-1 votes
1 answer
82 views

Data sheet says 14 bit output, I am getting 16 [closed]

I am doing a project on Cube IDE using a Nucleo board and a magnetometer. In the data sheet for the magnetometer I can either have a 12 bit output or 14 bit output. I have set it up so I get 14 bits ...
Elliot Walster's user avatar
0 votes
2 answers
72 views

STM32 Help receiving serial data sent from python's pyserial

I need some help communicating between python's pyserial and an STM32f030R8 microcontroller. This is for a 2 DOF robot which has a python base GUI. The GUI will send, via serial communication, the ...
Eric14003's user avatar
0 votes
0 answers
40 views

Passing data on microframe stm32

I am trying to get an 8kHz polling rate mouse (I don't know if polling rate is the right word though), and the only problem I have come a cross is the speed of HID. I am using USB 2.0 HS. My ...
YANNTASTIC5915's user avatar
1 vote
1 answer
63 views

STM32 UART in LIN mode sends with incorrect baudrate but not in asynchronous mode

I am using the UART of an STM32F103C8T6. When selecting the Asynchronous mode via the CubeMX everything works fine using either of the functions ...
Felix's user avatar
  • 13
0 votes
0 answers
46 views

AD7708 ADC SPI receive problem in STM32

I'm currently working on a ADC AD7708. There is not much document or library for this IC. I'm writing ad7708 driver for stm32f446 mcu. In datasheet register structure of ad7708 shown as below: I ...
Burak Kayaalp's user avatar
2 votes
0 answers
76 views

STM32f030 Inconsistent clock

I am trying to write my own microsecond delay function for an STM32f030R8t6 by using the counter function on Timer 3. The first time I power the microcontroller up after flashing the delay works ...
Eric14003's user avatar
0 votes
0 answers
43 views

STM32G4 low-power mode

I have an issue with going into low power mode on the STM32G473. To be able to use the low power regulator the SYSCLK must be below 2Mhz however it seems impossible to reduce the SYSCLK that low on ...
Birdie's user avatar
  • 41
0 votes
0 answers
86 views

Can't enable SWV data trace timeline graph in STM IDE

I am using STM32F401RE Nucleo board with STM IDE. I am starting the SWV data trace graph window but the start trace option is not being enabled(I cant click on it). I have attached pictures of ...
funtastic rdj's user avatar
0 votes
1 answer
129 views

Trying to read temperature, but always reading 655.000000 from Si7021 sensor connected to STM32 NUCLEO-F746ZG via I2C

I am trying to read temperature and humidity data from the Si7021 temperature and humidity sensor on an STM32 NUCLEO-F746ZG over I2C, and then send it over UART to be viewed on a computer. After ...
p1unge's user avatar
  • 1
1 vote
0 answers
70 views

Intermittently working hardware/software breakpoints with STM32H7

Problem: I have experienced issues with hardware/software breakpoints not being hit during debugging sessions in STM32CubeIDE with the STM32H743. When breakpoints are set or disabled during a ...
gguadianaSPARX's user avatar
0 votes
0 answers
113 views

LCD 16x2 Interfacing with STM32 (4Bit Mode)

I am trying to interface LCD 16x2 with STM32 for learning purpose. I already interfaced with AVR, PIC etc. that code ported some of. But its not working. What am I doing wrong? ...
Electrone's user avatar
0 votes
3 answers
414 views

Can I write a 8 bit or 16 bit Data to the outport of the STM32 directly

I am using STM32F103, CUBE IDE with HAL library. I am trying to write the outport as giving a 4 bit value to the entire port (16 bit) by using a shift bit operator. Can I directly apply that data to ...
Electrone's user avatar
0 votes
0 answers
257 views

How to make new versions of Stm32CubeIDE (1.9+) to debug fake stm32 chips

So, I have an old installation of Stm32CubeIDE 1.6.1. And, a new installation of Stm32CubeIDE 1.13.1. And, a bunch of blue pills with CH32 chips from the chip shortage times. The 1.13.1 version does ...
sx107's user avatar
  • 1,097
0 votes
1 answer
72 views

How to program and download a file to STM32F746-disco board?

I'm trying to program my touchGFX project and download a music file to this board without much luck. The touchGFX project works fine but I'm testing the sound part now. I managed to extract the ...
Rodo's user avatar
  • 1,066
0 votes
0 answers
52 views

STM32 - update firmware from data stored in SRAM

I would like to remotely update the firmware of my STM32WLE5 device. I can transfer the new binary file from the server to the STM's SRAM using my custom link only, which means I cannot utilize other ...
Foreen's user avatar
  • 111
0 votes
2 answers
335 views

High power consumption in STOP2 mode

I'am using the STOP2 mode in stm32wb55 microcontroller. I followed the stm example code and got the desired behavior with a power consumption of 10 µA. However for my application I need to leave one ...
Faiz-983654's user avatar
1 vote
0 answers
39 views

STM32H750B-DK output pins don't work while using the display

I am trying to make a relay driver with STM32H750DB-K, so I could switch the relays with toggle buttons on display, but I have a difficulty writing on digital pins. I am working with STM32CubeIDE. ...
AK16's user avatar
  • 11
0 votes
0 answers
304 views

SD Card with SDIO Interface Issues on STM32F446RET6 PCB

We are currently working on a PCB that has an STM32F446RET6 MCU. The PCB is equipped with various sensors for data collection. Additionally, we are using an SD card for data logging and have opted for ...
Burak Kayaalp's user avatar
0 votes
0 answers
170 views

STM32G474 Bizarre ADC Issue - Values starting jumping periodically some time after startup

I'm at my wits end trying to debug an STM32 ADC issue. I'm using 9 channels of ADC4 to read cell voltages from op amps, instrumentation amps, and a few other voltages through dividers. These circuits ...
Ryan Coleman's user avatar
0 votes
0 answers
121 views

MPU6050 returns HAL_BUSY in the second read attempt

I am trying to connect to MPU6050 from STM32F103C8T6 microcontroller. For this purpose, I use STM32CubeIDE programming environment. The initialization process succeeds and I can read the module data ...
Fariborz Dehghani's user avatar
1 vote
1 answer
219 views

How does decreasing the clock speed for the timer (increasing the prescaler) raise the Minimum readable frequency?

Currently trying to get a STM32 F446RE to read frequencies of two signals that can change from 0 to 1kHz with granularity potentially as low as 0.001 Hz (Likely just gonna be 0.1 Hz) in real-time. I ...
John Smith's user avatar
0 votes
0 answers
233 views

STM32 - How to convert ADC (with DMA) sample number to time without assuming uniform conversion time?

I'm new to working with ADCs on STM32. I'm reading a rectified voltage using ADC with DMA on an STM32G0B1. I know the ADC conversion time from the datasheet but I want to compare the ADC's output with ...
Kartik's user avatar
  • 17
0 votes
0 answers
132 views

Array not initialized properly in STM32Cube IDE

I have a function conv 2D , that takes in 4D and 1D vectors as inputs (inputs, weights,outputs and biases) along with size parameters which are int (filter height, width etc). The function directly ...
satan 29's user avatar
  • 189
0 votes
0 answers
125 views

How to connect Nucleo-32 L432KC (stm32) to Mac using DFU

I'm doing my first steps using STM32 board, and it's pretty complicated so far... I'm trying to use the Nucleo-32 L432KC board since I need to build a prototype device that runs on batteries and the ...
Avi Levin's user avatar
0 votes
0 answers
247 views

Please install STM32CubeIDE toolchain to open the project

I want to create a project with STM32CubeMX, but when I say Generate Code, "Please install STM32CubeIDE toolchain to open the project. Or associate the file type of the project with your ...
nes's user avatar
  • 1
0 votes
0 answers
193 views

Is there a RadioHead library equivalent for STM32CubeIDE?

I have been using the RadioHead library for Arduino with devices such as RF95 and RF69, and have found it very useful for simplifying device interfacing (i.e. removing the need to implement all of the ...
Nick Bolton's user avatar
  • 2,083
0 votes
0 answers
132 views

STM32 TIM1 Input Interrupt Setting

I would like to get help with the input interrupt setting at TIM1. The inputs are PWM with different frequency. What I need is to get the rising edges and calculate the frequency of the input signals. ...
charles's user avatar
0 votes
0 answers
84 views

ADC Converter not reading value on STM32L432KCU6

Morning guys! I'm writing a program on my STM32 microcontroller; by means of a potentiometer connected to pin PA3. It is meant to read the value (between 0V and 3.3V) and change the blinking period of ...
neil_huygens's user avatar
1 vote
0 answers
232 views

Nucleo F303RE STLink connection problems in STM32CubeIDE

I have tried to flash/debug Nucleo F303RE using STMCubeIDE and I have encountered several problems. First when trying to start debugging I receive following message: "Starting server with the ...
Filip's user avatar
  • 121
0 votes
1 answer
182 views

Getting started with STM Nucleo boards. Mapping from processor pins to board functionality (like LEDs)

Please tell me if there is a more appropriate group! I'm just starting with STM developmeent using STM32CubeIDE. I have a background in programming (C#/C++/C) on the desktop and some minor experience ...
Dave's user avatar
  • 195
0 votes
0 answers
82 views

Input pin stm32g0 always remains low

I am learning the stm32 using a stm32g070cbt6 micro controller with custom PCB. When I add an external pull-up to the pa4 pin and use it as an input pin. Nevertheless, when I read the pin, the output ...
Riayat's user avatar
  • 1
0 votes
1 answer
391 views

Convert Arduino Code to STM32 cubeide, [closed]

I giving paramter setting of LoRa module which is [e32 433t20d][https://www.cdebyte.com/products/E32-433T30D] over the Arduino Nano with ebyte [RF setting software][https://www.cdebyte.com/pdf-down....
mehmet's user avatar
  • 1,119
0 votes
1 answer
1k views

STM32 multiple addresses and .bin files

I have situation where I need to flash two BIN files to different addresses on an STM32. For example: the first file goes to 0x08000000, and the other goes to 0x08080000. Is there any way to do tbus ...
roksage's user avatar
0 votes
1 answer
2k views

How to use STM32Cube Static Stack Analyzer as an automatic compile time sanity check?

I'm currently using the STM32Cube IDE to develop a project. It automatically runs the static stack analyzer every time I compile the project, but I've found if the stack size exceeds the total RAM of ...
DaggerOfMesogrecia's user avatar
3 votes
0 answers
22 views

How to convert SMBUS example code to fully compatible MCU, STM32L4R5 -> STM32L496 [duplicate]

Has anyone been able to use the STM32 SMBUS/PMBUS examples codes, and successfully port it to another compatible mcu? If so what was the steps taken for the conversion? (Currently trying to flash ...
soccernismo's user avatar
0 votes
0 answers
159 views

ETHERNET STM32F4Discovery with stm32CubeIDE

I'm using Software: -STM32CubeIDE v1.10.1- -STM32Cube FW_F4 V1.27.1 Hardware: -STM32F4Discovery -PHY DP83848 -RJ45 I want to implement the Ethernet peripheral in the STM32F407 mcu with RMI mode ...
origine17's user avatar
2 votes
1 answer
1k views

RTC on STM32 doesn't start running, except when a breakpoint is active

I use: STM32L071K8U3 Segger JLink + Segger Ozone + SWD with 4 MHz Cube Ide External LSE or internal LSE, same problem. I wrote firmware that displays the time using the RTC. To update the display, I ...
Oliver Richter's user avatar
1 vote
1 answer
2k views

How do I receive data over USB on an STM32F401RE Nucleo board?

I am very new to STM32s. I have been trying to interface a sensor using an STM32F401RE Nucleo board but failing to receive sensor data from the board. I generate 3 clock signals to drive the sensor. I ...
Harit's user avatar
  • 83
2 votes
3 answers
1k views

How do I program the STM32F401CCU6?

I am transitioning from Arduino to STM32 development. I just purchased an STM32F401CCU6 board and I cannot get it recognized by my computer. I am running Ubuntu 22.04. I have tried searching ...
Harit's user avatar
  • 83
0 votes
1 answer
1k views

STM32 CubeIDE Could not connect to target problem

I'm trying to code the stm32g030f6p6 microprocessor using J-link using STM32 CubeIDE, I get the warning "Could not connect to target, Please check power, connection, and settings". When I ...
buccno's user avatar
  • 23
4 votes
1 answer
2k views

STM32 C function "strstr()" not working

I am trying to use an STM32 microcontroller (STM32L010C6T6 to be exact) to parse NMEA sentences from a GPS module over UART. I receive the messages fine, but run into issues when I look for specific ...
Nick's user avatar
  • 199
1 vote
0 answers
503 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 ...
Ujanderas's user avatar
2 votes
1 answer
883 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 ...
Tiaan Stals's user avatar
1 vote
1 answer
2k 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, ...
Caspar Westerberg's user avatar
0 votes
2 answers
10k views

How does STM32CubeIDE locate the header file in such case?

I created a C/C++ project in STM32CubeIDE as follows: In the main.c I had to write the include as follows: #include "..\Inc\myRandom.h" otherwise if I ...
GNZ's user avatar
  • 1,729
7 votes
2 answers
4k views

Why does STM32CubeIDE debugger always stop on HAL_Init()

I've noticed that while debugging an STM32 project using the STM32CubeIDE debugger, the debugger always stops on the HAL_Init() function call even when I don't have a breakpoint listed. This even ...
Izzo's user avatar
  • 2,014
0 votes
1 answer
3k views

(CubeIDE) How can i use printf and scanf on CubeIDE?

I want to use scanf and printf on CubeIDE (v1.7.0). Can I configure properties of project to handle this issue?
qt_goodi's user avatar
0 votes
3 answers
1k views

Why are MSPs in STM32 HAL defined as callback functions?

Please see my edit: I asked this question stackoverflow and no one answered. In STM32CubeMX MSP stands for MCU Support Package and of all here is what it basically about: MSPs are user callback ...
GNZ's user avatar
  • 1,729
1 vote
0 answers
159 views

Cannot access array after coming back from a function which execute with Interrupts STM32 Cube IDE

Hi I am using STM32 Cube IDE to Program Neucleo F746zg board. In my code there is a function to check if the elements of an array is equal to some value and if it is I execute some Functions. I first ...
Wedahitha Yapa's user avatar