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
2
votes
1 answer

I get an Error when setting PCROP STM32H7 (STM32H743)

Goal I'm trying to set a PCROP area on my STM32H743VI microcontroller, but I'm getting the error code HAL_FLASH_ERROR_OB_CHANGE when executing HAL_FLASH_OB_Launch() and my PCROP area is not set. The relevant part of the code I'm using should be the…
Dugnom
  • 342
  • 1
  • 5
  • 12
2
votes
1 answer

External Flash Loader gets "failed to download Segment[0]" error on STM32CubeIDE

I have made a custom external flash loader(.stldr) file for my STM32 based board and this file works great with ST Link Utility(Read, Write and Erase) are work fine and i can Program the board correctly. But when i try to use the created .stldr file…
Amin Rostami
  • 157
  • 1
  • 9
2
votes
5 answers

HAL_GetTick() always returns 0

I'm currently working on a project with an existing codebase where HAL_GetTick() works in some places, but when I try to call the function in other files it returns 0. HAL_Delay() does work for some reason. Am I missing something obvious?
Tim
  • 31
  • 1
  • 3
2
votes
1 answer

STOP using HAL in cubeIDE

As I want to write an efficient program to use minimal RAM & Flash, I want to remove HAL library completely from my project & program only in registers. I want to use cubeIDE for compiling & Debugging but I do not know how to remove HAL library from…
2
votes
0 answers

How do I fix this "core_cm3.h" fatal error error while building a file in STMCube IDE?

I am trying to make an LED blinking program with the STMCube IDE but while building, I am getting the error: /Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h:132:10: fatal error: core_cm3.h: No such file or directory Sorry but I do not know…
2
votes
1 answer

How can I set up STM32CubeIDE for collaborative projects?

STM32CubeIDE is used for writing firmware for STM32 MCUs. Previously, we shared projects through export/import of projects and sharing include files/folders. This is quite cumbersome. I'm sure STM32CubeIDE is used by larger teams where they have to…
Musabb
  • 21
  • 1
  • 4
2
votes
1 answer

In what file are __io_putchar() and __io_getchar() defined?

I've noticed that the syscalls.c file for an STM32F407-DISC project (Made through the STM32CubeIDE) has __io_putchar() and __io_getchar() as externs. But I can't locate any file within the project where these functions are actually defined. This is…
2
votes
1 answer

HAL_Delay() crashes STM

I'm trying to upload code to an STM32F103RET6 MCU and have a simple setup by now (see image below). I have attached a LED to pin PA1 as a GPIO OUTPUT and an external oscillator at 16 MHz. The other three pins are connected to the JTAG connector that…
2
votes
2 answers

stm32cubeide reports firmware package is missing

I have a STM32 Nucleo F4 and I am trying to create a new C project in STMCubeIDE. I have STMCubeIDE version 1.5.0 Build: 8698_20201117_1050 (UTC) In the Embedded Software Packages Manager I have installed "STM32Cube MCU Package for STM32F4 Series"…
DavidW
  • 353
  • 2
  • 10
2
votes
2 answers

How to resolve: failed to insert all hardware breakpoints; you may have requested too many hardware breakpoints/watchpoints

I am using STM32 Cube IDE and I frequently get an error dialog that says: failed to insert all hardware breakpoints; you may have requested too many hardware breakpoints/watchpoints I know the ARM Cortex M0+ I use supports only 4 hardware…
user103185
  • 925
  • 2
  • 8
  • 20
2
votes
0 answers

Cannot exit sleep mode of bxCAN on STM32F429IGT in loopback mode

In short, SLAK bit won't reset when SLEEP bit is manually reset. In details : I am trying to achieve a successful transmission in loopback mode before venturing into making a network. I had it working at a point after a lot of documentation reading,…
thomashamain
  • 71
  • 1
  • 5
2
votes
0 answers

How to get data from Stm32 USB audio device and send to DAC?

I am using a STM32F103RCT6 board with STM32CubeIDE. I enabled the USB Audio device and the code is working and windows recognized the board as an audio device or speaker. I have searched and read documents but I have no idea what it is doing in the…
2
votes
1 answer

Issue with launching QEMU simulator from STM32CubeIDE

I'm trying out STM32CubeIDE, and I've been trying to get it to work with the GDB QEMU debugging plugin that's part of the Eclipse CDT package. I've been able to create the project and debug configuration for my STM32F4-Discovery board, and the…
javathunderman
  • 1,074
  • 2
  • 13
  • 31
2
votes
3 answers

How can i start the GDB server in stm32cubeide?

right now I am trying to program on the STM32G0-Disco-board with the program stm32cubeide on WIN10. This worked fine until it didn't. My problem right now is that I can't debug/run it anymore. This is the first day I used this program, which doesn't…
typ
  • 35
  • 1
  • 1
  • 4
2
votes
2 answers

STM32F107 Read Out Protection by Code HAL

i want to enable the normal Read Out Protection, currently I do it in the ST Link Utility but better will be in code. I found some old snippets which are for the old Std Lib, not for HAL: if (FLASH_OB_GetRDP() != SET) { FLASH_OB_Unlock(); …
vt1111
  • 71
  • 3
  • 12
1
2
3
25 26