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
1 answer
17 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 ...
  • 193
0 votes
0 answers
26 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 ...
  • 1
0 votes
1 answer
56 views

Convert Arduino Code to STM32 cubeide, [closed]

I giving paramter setting of LoRa module which is e32 433t20d over the Arduino Nano with ebyte RF setting software. With this code Arduino work as middleman. I want to use same code with stm32. How to ...
  • 1,031
0 votes
1 answer
66 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 ...
0 votes
1 answer
95 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 ...
3 votes
0 answers
15 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 ...
0 votes
0 answers
60 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 ...
2 votes
1 answer
390 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 ...
1 vote
1 answer
566 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 ...
  • 73
2 votes
3 answers
520 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 ...
  • 73
0 votes
1 answer
390 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 ...
  • 23
4 votes
1 answer
1k 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 ...
  • 189
1 vote
0 answers
277 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 ...
2 votes
1 answer
259 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 ...
0 votes
0 answers
47 views

Stm32CubeIDE ADC interrupt code generation

I configured the ADC interrupt and its priority in the Stm32CubeIDE configuration pannel but the autogenerated code does not mention them at all, other than others configuration e.g. ...
  • 1
0 votes
1 answer
1k 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, ...
0 votes
2 answers
3k 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 ...
  • 1,365
4 votes
2 answers
1k 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 ...
  • 1,934
0 votes
1 answer
2k 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?
0 votes
3 answers
803 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 ...
  • 1,365
1 vote
0 answers
111 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 ...
1 vote
1 answer
2k views

Debug and View Registers

I would like to view and analyze the registers in STM32 Embedded Cards(For Ex. STM32F407DISK) in STM32CubeIDE. As far as I know from the user manual and my own experience in CubeIDE, I did see my ...
  • 158
1 vote
0 answers
57 views

STM32CubeIDE : flip pinout not available

I'm using STM32CubeIDE to programm and and configure my STM32 microcontrolers. Right now, I'm designing a PCB with a STM32 on the bottom side. It would make things easier to me if in the pinout ...
  • 3,427
2 votes
1 answer
764 views

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 ...
1 vote
1 answer
791 views

STM32f7 I2C master transmission using DMA does not work

The problem is the code: HAL_I2C_Master_Transmit_DMA (&hi2c1, (uint16_t)(MCP4725A0_ADDR_A00<<1), (uint8_t *)buffer, 2); Though it returns ...
1 vote
1 answer
388 views

STM32CubeIDE .ld files font colors

On STM32CubeIDE (IDE based on eclipse, from ST), i don't find any options to change the font color for some files like linker scripts (for C/C++ Files it's ok). It's very difficult to read the file ...
  • 159
3 votes
1 answer
3k views

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 ...
1 vote
1 answer
2k views

How to fix STM32 Stuck with error ST-LINK error (DEV_TARGET_NOT_HALTED)

I have a custom board with a STM32H7A3ZIT mcu. I'm programming it with a ST-Link V2 via SWD. I'm trying to get an external hyperbus ram working, and immediately after programming the mcu with some ...
  • 5,594
0 votes
2 answers
296 views

STM32 interrupt triggers by itself

I am using stm32cubeide to program a stm32f030f4p6 MC. I have assigned one pin as an external interrupt and it is connected to the data output of an RF433 receiver. Here is a summary of my code: ...
1 vote
2 answers
792 views

In STM32 the timers are connected to which bus?

I am using STM32H723ZG and in our application, I wanted to know to which bus (APB1 or APB2) the timers are connected. I need these detail, as I have to configure the timer to that particular bus's ...
1 vote
1 answer
529 views

STM32cube printf to SWD stops working when C++

I had a main.c file with SWV prinf working just fine in the SWV console. Now I changed the main.c file to cpp file and now print to SWV stops working. How to fix? Using STM32CubeIDE and gnu tools. I ...
  • 41
0 votes
1 answer
1k views

STM32CubeIDE how to import complete working program from TouchGFX Designer

Situation: STM32F469 Discovery board with DSI 800x480 Screen, broken native BSP drivers (Display-related part). I tried to create a project in STM32CubeIDE, set all the settings, initialized as ...
  • 3,438
1 vote
1 answer
1k views

STM32G474 FDCAN Callback is not called. Classic frame

I have a custom board with an STM32G474RE. I use 3 CANs with 3 independent CAN tranciever on the board. I tried sendind CAN message from CAN1 to CAN3 but the message is not received. At least the ...
  • 47
0 votes
1 answer
253 views

How to change adc sampling time in STM32 to 20 Hz

I want to change the sampling rate of my STM32F303RE to 20 Hz. Is this possible with a ADC clock with 8 MHz and without a HAL_Delay() function?
  • 465
0 votes
0 answers
36 views

Loading fine-tuned MobileNetV3 ConvNet in STM32CubeAI

I loaded my mobilenetv3 model in STM32CubeAI but when I tried to choose the compression ratio of 4 and 8 to reduce size, the RAM and FLASH requirements are still the same. Also, I optimized my model ...
0 votes
2 answers
361 views

STM32F407VTG6 HardFault_Handler

(note: Using STM32F407VTG, STM32CubeMX for config, FreeRTOS, and tried both IAR and STM32IDE for compilers/debuggers). This seems to be a common problem, but the solutions I find either aren't clear ...
  • 39
0 votes
0 answers
116 views

Cannot launch GDB client

I am new to embedded coding outside of Arduino, so I need a lot of hand holding. I made a custom board with just a STM32 chip (STM32L082) and a LED. I am trying to debug it using GDB (I hear that's ...
  • 106
0 votes
0 answers
581 views

How to configure STM32CubeIDE with Blackmagic Probe as a debugger?

I am trying to use my Blackmagic probe (an STM32 BluePill converted to a Blackmagic Probe) as a debugging device for the STM32CubeIDE and can't get to work! I tried this solution: https://github.com/...
0 votes
0 answers
229 views

Could a china ST-Link have bricked my STM32F4?

I have built several boards with STM32F405 on them and I have been flashing them with a cheap china ST-Link knock-off from eBay which worked perfectly for many months now. However, I now noticed, that ...
1 vote
1 answer
1k views

How to load Touchgfx files to external flash

I have W95Q64 flash memory and STM32F429 custom board. I want to load Touhgfx files to external flash memory. For this purpose, firstly I added below declarations into FLASH.id file as; ...
  • 13
0 votes
0 answers
441 views

stm32l431 Read multiple channels ADC

I am trying to read from 2 channels of ADC 1, I have followed other tutorials and tried but I am not getting any success. I can read from one channel but not the other. ADC configuration: This is my ...
2 votes
1 answer
396 views

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 ...
3 votes
2 answers
720 views

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 ...
  • 189
0 votes
3 answers
229 views

Optimization kills the switch statement that I need to use in a function

Optimization kills the switch statement that I need to use in a function Hi all, how are you?. I'm doing a project with a STM32F103C6 (it has 32KB flash) and I had to activate optimization options to ...
  • 148
0 votes
2 answers
6k views

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 ...
  • 101
0 votes
1 answer
577 views

si7060 I2C temperature sensor with STM32 CubeIDE?

I am trying to read an SI7060. It's my first time using i2c and it doesn't seem to work. Do I make something wrong here? SI7060 datasheet ...
  • 47
-1 votes
2 answers
277 views

STM32F030P6 MCU returning high even when no voltage is measured on the pin

I am trying to make a custom PCB based on stm32f030p6 MCU. one of the requirements is to read a pin's value (digitally i.e. high or low). for this purpose I am using stm32CubeIDE, and to read the pin'...
  • 452
0 votes
1 answer
113 views

1V on ADC pin with DMA continuous requests

I have a STM32G071 Nucleo Board and also the IC itself. In CubeIDE, I set a pin as ADC and activate DMA and enable the DMA continuous request in the ADC settings. After executing the code and ...
  • 95
3 votes
2 answers
533 views

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....