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

How do I receive data over USB on an STM32F401RE Nucleo board?

Greetings Fellow Engineers! 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 ...
user avatar
1 vote
2 answers
79 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
  • 23
4 votes
1 answer
725 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 ...
user avatar
  • 179
1 vote
0 answers
73 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 ...
user avatar
2 votes
1 answer
68 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 ...
user avatar
0 votes
0 answers
19 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. ...
user avatar
  • 1
0 votes
1 answer
348 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, ...
user avatar
0 votes
2 answers
821 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 ...
user avatar
  • 1,127
0 votes
0 answers
26 views

Determine BRK Input State or Generating Interrupt on BRK in STM32G0 Timer 1 (STMCUBE IDE, HAL)

I am using an external BRK input for TIM1. I want to count how many BRK events occurred. I have tried callbacks unsuccessfully. Maybe I am not able to understand how to apply them. Tried reading HAL ...
user avatar
0 votes
1 answer
332 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 ...
user avatar
  • 1,852
0 votes
1 answer
687 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?
user avatar
0 votes
0 answers
117 views

Low-level I2C DMA transfer on an STM32L432KC

How do I send I2C data over DMA? In CubeMX, I have configured I2C and DMA at LL. I2C has been set up, as well as DMA request I2C1_TX (DMA1 Channel 6). Interrupts DMA1 channel6 global interrupt and ...
user avatar
  • 101
0 votes
3 answers
357 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 ...
user avatar
  • 1,127
1 vote
0 answers
67 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 ...
user avatar
1 vote
1 answer
533 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 ...
user avatar
  • 158
1 vote
0 answers
35 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 ...
user avatar
  • 2,656
2 votes
1 answer
313 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 ...
user avatar
1 vote
1 answer
426 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 ...
user avatar
1 vote
0 answers
188 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 ...
user avatar
  • 159
3 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
945 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 ...
user avatar
  • 4,923
0 votes
2 answers
158 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: ...
user avatar
1 vote
2 answers
340 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 ...
user avatar
1 vote
1 answer
291 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 ...
user avatar
  • 21
0 votes
1 answer
963 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 ...
user avatar
  • 3,328
1 vote
0 answers
774 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 ...
user avatar
  • 47
0 votes
1 answer
151 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?
user avatar
  • 465
0 votes
0 answers
34 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 ...
user avatar
0 votes
2 answers
236 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 ...
user avatar
  • 39
0 votes
0 answers
82 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 ...
user avatar
  • 106
0 votes
0 answers
358 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/...
user avatar
0 votes
0 answers
181 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 ...
user avatar
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; ...
user avatar
  • 13
0 votes
0 answers
305 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 ...
user avatar
2 votes
1 answer
284 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 ...
user avatar
3 votes
2 answers
454 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 ...
user avatar
  • 179
0 votes
3 answers
160 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 ...
user avatar
  • 128
0 votes
2 answers
5k 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 ...
user avatar
  • 101
0 votes
1 answer
479 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 ...
user avatar
  • 47
-1 votes
2 answers
199 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'...
user avatar
  • 432
0 votes
1 answer
99 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 ...
user avatar
  • 85
3 votes
2 answers
394 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....
user avatar