Skip to main content

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

STM32G4x ADC DR always zero

I am using a STM32G413KB Nucleo Board, I am trying to test ADC with the code I write I give below, When I debug the code interrupt is triggering contuniously but ADC value don't change even I change ...
MSB's user avatar
  • 27
0 votes
1 answer
83 views

error in stm32cube ide

I have this error, what could be the reason, thank you for your help 09:27:59 **** Incremental Build of configuration Debug for project button2 **** c:\st\stm32cubeide_1.12.1\stm32cubeide\plugins\com....
Alireza ganjeh's user avatar
0 votes
0 answers
47 views

What is the memory address for 24AA16 EEPROM IC?

I am using 24AA16 EEPROM IC to read and write. But i don't know exactly the memory adddress to write something in this IC and also read from that. This is the datasheet for this IC, https://ww1....
Kuralmozhi's user avatar
0 votes
1 answer
59 views

EEPROM READ/WRITE Issue with STM32?

I am using 24AA16 EEPROM to store my data. I have write the code for read and write using STM32Cube IDE. I am using Nucleo-F410RB Dev board. Below code is for write, ...
Kuralmozhi's user avatar
0 votes
1 answer
56 views

How to use STM discovery board as an external debugger using SWD

I have F407G Disc1 board where it has the SWD ports and I want use this board as a standalone external debugger and I went through the manual for the connections but got stuck Also found a thread in ...
Subzee's user avatar
  • 21
0 votes
0 answers
60 views

How to detect if STM32 HAL is used

I wrote this function years ago and the plan was to make it work on a lot of different devices. I haven't used it in stm32cube before. I can remember that it took a long time to search for the right ...
hennep's user avatar
  • 393
0 votes
1 answer
45 views

STM32CubeIDE crashes - Problem: EXC_BAD_ACCESS (SIGABRT)

I'm using MacOS and I'm trying to build the default code on main.c on the STM32CubeIDE which is below: ...
tadm123's user avatar
  • 155
0 votes
2 answers
66 views

STM32F446 MCU SPI Problem with CC1120 Device

I'm currently working on a custom PCB with cc1120 datsheet as transceiver and stm32f446RET6 as MCU. I integrate the cc1120 library from IT's library. The device uses SPI as serial communication. Here ...
Burak Kayaalp's user avatar
0 votes
0 answers
90 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
84 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
223 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
49 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
77 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
60 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
80 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
68 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
201 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
159 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
78 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
144 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
608 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
302 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,109
0 votes
1 answer
81 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,130
0 votes
0 answers
55 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
463 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
44 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
389 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
220 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
146 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
279 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
270 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
  • 117
0 votes
0 answers
148 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
290 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
244 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,113
0 votes
0 answers
92 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
291 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
260 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
93 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
445 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,139
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
168 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
3k 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
2k 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
531 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
1k 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