Questions tagged [stm32cubeide]

An Eclipse-based all-in-one IDE from ST Microelectronics for C/C++, with an embedded STM32CubeMX tool

STM32CubeIDE is an all-in-one multi-OS development tool, which is part of the STM32Cube software ecosystem. STM32CubeIDE is an advanced C/C++ development platform with peripheral configuration, code generation, code compilation, and debug features for STM32 microcontrollers and microprocessors.

381 questions
7
votes
1 answer

Can I stop STMCubeIDE from opening startup .s file on microcontroller reset (debug)?

When I'm debugging STM32CubeIDE opens startup_stm32f722xx.s file when microcontroller resets (when I start debugging or when I reset microcontroller. It looks like the debugger has some "hidden" breakpoints and it hits them, and then continues, but…
Kamil
  • 13,363
  • 24
  • 88
  • 183
5
votes
1 answer

STM32 Cube IDE - after initial successfull launch and use now remains idle during splash screen launch stage (Linux)

I am using Ubuntu 22.04 with the official Debian installer of STM32 Cube IDE (latest version), downloaded directly from STM's website. After installing everything (default installation, which is in /opt/st/) I launched the IDE and started playing…
rbaleksandar
  • 8,713
  • 7
  • 76
  • 161
5
votes
2 answers

Where to add new .h and .cpp file in STM32CubeIDE project

I used STM32CubeIDE to create a new (C++) project for my nucleo-f411re board by File > New > STM32 Project. The project was created as usual. I renamed "main.c" to "main.cpp" since I selected C++ as the target language. A simple "blinky" compiles…
MPW
  • 329
  • 2
  • 13
5
votes
1 answer

STM32CubeIDE Break at address "xxx" with no debug information available, or outside of program code

I'm busy bring up some new hardware with a STM32F030C8 mcu. I'm using the STM32CubeIDE with gcc. I'm very new to microcontroller development and this is my first project with ST and their tools. This is a very basic program that just triggers a…
TJ Snyman
  • 167
  • 1
  • 2
  • 6
4
votes
1 answer

How to add sanitizer support to STM32 ARM GCC?

I am working on a large embedded system (STM32F423 CPU and CubeIDE environment on Windows, all the code is in C), and recently I found out that there must be a buffer overflow somewhere. The mbedtls library reports an error suggesting the server did…
4
votes
2 answers

Why STM32 I2C slave is returning unwanted NACK or indefinitely clock stretching?

I am trying to write an STM32 as an I2C slave device with a simple interface that works like this: So master will always send a registered address every time, then either write or read from that register address. The slave then needs to always…
4
votes
1 answer

STM32WL immediately wakes from shutdown sleep mode

I'm attempting to cause an STM32WL (currently on a WL55JC1 devboard) to sleep using the shutdown mode, and am running into a an issue where the MCU immediately exits sleep after it enters it. Here's what I'm using to get into sleep: …
Todd Rylaarsdam
  • 438
  • 6
  • 19
4
votes
1 answer

Installing STM32CubeProgrammer on macOS Big Sur

I'm trying to install STM32CubeProgrammer on MacOS BigSur, I have followed this steps from the website: https://community.st.com/s/question/0D50X0000BmnqrB/how-to-run-stm32cubeprogrammer-on-macos-catalina-10151-19b88?t=1620993010340. Although when I…
4
votes
1 answer

Why are there 2 generated linker scripts by STM32CubeIDE?

I'm learning STM32 bare metal programming and in that quest I'm using STM32F429ZI mcu. I read a lot of examples on the internet and all of them use only one linker script. I'm thinking if these examples perfected for my MCU then the linker script…
3
votes
2 answers

Failed to execute MI command: target remote localhost:61234

I tried to run a program on STM32L552ZET6Q MCU. I use STM32CubeIDE for writing programs, ST-LINK (ST-LINK GDB server) as debug probe and SWD interface. I successfully compiled the program, but while debugging, I got the following error: Failed…
Rohit
  • 41
  • 1
  • 8
3
votes
6 answers

Stm32CubeProgrammer not connecting (no error msg) using ST-LINK V2 dongle and Lora E5 mini board

I've tried countless settings in an attempt to program my stm32 board. The main tutorial I followed is https://wiki.seeedstudio.com/LoRa_E5_mini/. I have connected a USB st-link v2 dongle to my laptop with pins SWDIO, SWCLK, GND correctly wired to…
Cu29p
  • 51
  • 1
  • 4
3
votes
1 answer

Can't resolve snprintf warning in C

Facing a warning which I am not able to resolve. I am using stm32 MCU and STM32CubeIDE with a standard C11 compiler. I can easily get rid of the warning by increasing size of the array gStr but would like to know what is the issue here. Current size…
EmbeddedManiac
  • 189
  • 1
  • 12
3
votes
3 answers

Failing to receive data from UART in DMA mode

I am trying to receive 8 bytes from my pc on my NUCLEO F446RE stm32 board. Transmitting to the pc works. The problem is, I am unable to receive data using DMA. I saw an example with almost the same code and it has worked for the person. If I use the…
Knee Caps
  • 181
  • 2
  • 9
2
votes
0 answers

How to stop and restart ADC with DMA in STM32L4

How to correctly and repetitively stop and restart ADC with DMA in STM32L476RG? I need to measure signal a number of samples before the trigger and a number of samples after the trigger. I set: DMA in circular mode, ADC in continuous conversion…
hooboe
  • 133
  • 8
2
votes
0 answers

How do I port an Arduino C++ library to an STM32CubeIDE C library?

The library in question is the Adafruit VL6180X TOF sensor (https://github.com/adafruit/Adafruit_VL6180X). I am using the Nucleo L432KC development board. I believe i have successfully ported the both header files but I am having trouble with the…
Joel Farr
  • 21
  • 1
1
2 3
25 26