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
2answers
86 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
2answers
51 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 ...
0
votes
1answer
82 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 ...
0
votes
1answer
131 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 ...
0
votes
0answers
19 views

How to read values from registers in AS7262 spectral sensor with I2C using STM32H743ZI (STM32CubeIDE)

I have been trying to read data from AS7262 Spectral Sensor using STM32H743ZI2. I am writing the program using HAL Library. Here is the code that I tried for accessing the registers of the sensor, ...
0
votes
0answers
69 views

STM32 Half-execuring previous program, skipping breakpoints, weird

Basic Info: STM32F469 Discovery Board with 800x480 DSI Screen, with new LCD driver IC, unsupported natively by BSP (allegedly; takes some manual adjustment of BSP) Windows 10 CubeIDE + TouchGFX I was ...
0
votes
0answers
198 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 ...
0
votes
1answer
54 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?
0
votes
0answers
28 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
2answers
102 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 ...
0
votes
0answers
42 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 ...
0
votes
0answers
147 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
0answers
132 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
1answer
421 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; ...
0
votes
0answers
128 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
1answer
128 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
1answer
176 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 ...
0
votes
3answers
109 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 ...
0
votes
1answer
2k 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 ...
0
votes
1answer
263 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 ...
-1
votes
2answers
81 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'...
0
votes
1answer
83 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 ...
3
votes
2answers
203 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....