Questions tagged [stm32cubeide]

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

(copied from https://www.st.com/en/development-tools/stm32cubeide.html)

STM32CubeIDE is an advanced C/C++ development platform with peripheral configuration, code generation, code compilation, and debug features for STM32 microcontrollers and microprocessors. It is based on the ECLIPSE™/CDT framework and GCC toolchain for the development, and GDB for the debugging. It allows the integration of the hundreds of existing plugins that complete the features of the ECLIPSE™ IDE.

STM32CubeIDE integrates all STM32CubeMX functionalities to offer all-in-one tool experience and save installation and development time. After the selection of an empty STM32 MCU or MPU, or preconfigured microcontroller or microprocessor from the selection of a board, the project is created and initialization code generated. At any time during the development, the user can return to the initialization and configuration of the peripherals or middleware and regenerate the initialization code with no impact on the user code.

STM32CubeIDE includes build and stack analyzers that provide the user with useful information about project status and memory requirements.

STM32CubeIDE also includes standard and advanced debugging features including views of CPU core registers, memories, and peripheral registers, as well as live variable watch, Serial Wire Viewer interface, or fault analyzer.

64 questions
6
votes
2 answers

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 occurs when I create a brand new project, which makes…
Izzo
  • 1,984
  • 2
  • 18
  • 37
4
votes
1 answer

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 strings within the messages. I read in 700…
Nick
  • 199
  • 7
4
votes
3 answers

STM32 DAC setup issues

I am using the STM32F3 Discovery development board which has an STM32F303VCT6 MCU. I am also using the STM32CubeIDE. I am trying to set up the DAC to perform one-off digital to analog conversions when I update the DAC output register, however, I…
Nick
  • 199
  • 7
3
votes
0 answers

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

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 STM32L4R5- Nuleo SMBUS example code onto the…
3
votes
1 answer

STM32F3DISCOVERY board using STM32CubeIDE download fails "No ST-LINK detected!" but CubeProgrammer works

Using the STM32CubeIDE with an STM32F3DISCOVERY board I was able to use the Run menu option to download and start running a program. After a Windows Update which involved updating USB drivers, the Run command no longer works. After updating my Dell…
Richard Chambers
  • 237
  • 1
  • 7
  • 19
3
votes
2 answers

Last address of program in STM32 HAL?

Is there a way to find the last address or last page of the program which is stored in an STM32(F1) using a HAL (or LL?) function? Background: I'm using EEPROM emulation in Flash and this works great. I changed the library from a hardcoded page to…
Michel Keijzers
  • 13,867
  • 18
  • 69
  • 139
2
votes
1 answer

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 check if the time has changed, like this: if…
Oliver Richter
  • 141
  • 1
  • 7
2
votes
3 answers

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 everywhere but there is such poor documentation and…
Harit
  • 73
  • 10
2
votes
1 answer

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 pull GPIO output pins: I am having some trouble…
2
votes
1 answer

STM32 bootloader break at address issue

I am writing a small application to start a bootloader that checks simple conditions and then jumps to the application memory. The application seems to crash and I am unable to figure out the reason and the debugger is throwing: Break at address…
dreamcoder
  • 143
  • 1
  • 1
  • 11
2
votes
1 answer

STM32 usart interface sends data but "128" is added to each sent byte

I'm using the newest version of stm32cubemx to config my hardware. I'm using a Waveshare STM32H743 dev board and it's completely healthy and uClinux works(I can easily communicate with it using that usart) on it. so, as I stated, it's not a board or…
2
votes
2 answers

Problems with programming STM32L mcu with stm32cubeIDE (failed to erase memory)

I am trying to program a STM32L152R8 MCU with stm32cubeIDE v1.4. The MCU is not brand-new and is soldered on a board. I want to change its firmware. While debugging with ST-Link Debugger I encounter the following error: Memory Programming…
Iman H
  • 121
  • 1
  • 6
1
vote
0 answers

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. When I don't generate code from TouchGFX (so…
AK16
  • 11
  • 2
1
vote
1 answer

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 have been reading the documentation on using the…
John Smith
  • 77
  • 4
1
vote
0 answers

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 following options: [..] SWD Debug :…
Filip
  • 111
  • 4
1
2 3 4 5