Questions tagged [stm32cubemx]

Anything related to the STM32CubeMX. It is a program to ease developers' life by reducing development efforts, time and cost. STM32Cube covers the STM32 portfolio.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

STM32F7 USB CDC problems with connecting when clocks are changed dynamically but only sometimes

I'm working on a project where the device has to be as low power as possible in different functional states and for that I'm dynamically changing PLL so that HCLK and buses are working at frequency of ...
-1
votes
1answer
62 views

STM32 send code directly to chip

I have just started in the world of stm32 microcontrollers and I have seen that they have many boards for debugging, testing, etc ... But my question is the following. If I develop software with ...
0
votes
1answer
31 views

Does USB host mode on an STM32 require VBUS sensing?

I’ve been using an STM32F413ZH Nucleo board as a USB host device. All is working well. However, I’m in the process of designing my own PCB based on the Nucleo design, but using a full-size USB Type A ...
2
votes
1answer
59 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 ...
0
votes
0answers
24 views

STM Nucleo-F722ZE UART weirdness when setting the baud rate (it needs to be set 3 times larger)

For the past days I've been trying to communicate via UART between an Arduino and an STM32 Nucleo F722ZE board. After much troubleshooting with the oscilloscope I realized that when I set a baud rate ...
-2
votes
0answers
25 views

Stm mat target external mode demo example(nucleo f446ze) not working

I am using STM32 Nucleo F446ZE LQFP-144, MATLAB 2020a, STMcubeMX 5.6.0, Keil v5.31.0.0. STM MAT TARGET rev 2.5. I am using ...
0
votes
0answers
46 views

Setting up UART with STM32L4RGTx

The prompt here is to debug the issue with UART setup on the STM32 chipset. I've followed a couple of online blogs to understand and setup the UART interface. I want to transmit (only) a dataframe (...
8
votes
3answers
787 views

STM32 - How does analog configuration of MCU pins affect the power usage?

When I was creating a new project using the STM32CubeMX, I saw a check box stating that setting all free pins as anlog will decrease the power consumption. I couldn't figure out how it works. How can ...
0
votes
0answers
80 views

STM32F105 stop executing after 16 seconds [duplicate]

I'm facing an issue with an STM32F105 microcontroller which with a simple code executing in a while loop it stops after 16 second here is code which I don't think there is a problem with the code ...
0
votes
2answers
119 views

STM32F10x microcontroller debugging problem

I'm a beginner and I'm using STM32F10x family to learn about electronics.I was using STM32F103 blue pill in the past few months and I can debug it and upload code to it while both boot0 and boot1 are ...
4
votes
1answer
156 views

Why operations on float variable are performed on a double? STM32F401RE, MDK-ARM v5

I am debugging a simple line of code: float temp_f; ... ... temp_f= temperature[0] +(temperature[1] >> 5)*0.125; that is assembled into ...
0
votes
1answer
56 views

STM32 Device_only USB_OTG

I a working on a project around the STM32H7 (Nucleo STM32H743ZI2) on which I am using the user USB to communicate through CDC interface. Everything is working fine, however, I just noticed that this ...
0
votes
1answer
40 views

How can I open and run the blink example from the STM32F3 MCU package?

I have previously written, compiled and flashed applications to an STM32F3 Discovery board succesfully with the STM32CubeIDE. ST offers an STM32Cube MCU Package for STM32F3 series, which I downloaded ...
-1
votes
1answer
43 views

How to flash a large binary file to the 512-Mbit Quad-SPI memory of the STM32F7308-DK board?

I have a STM32F7308-DK board: I want to upload my custom binary code.bin for the board to execute it and display output on the screen. For that, I downloaded and ...
0
votes
0answers
17 views

Connect Nucleo ST-LINK to another Nulceo Board Target

I am having issues displaying serial data, when I connect a Nucleo ST-link to another Target. My Pins Connections are as follows: ST-Link -> Nucleo Board VCC -> From JP1 of ST-link to 3.3V ...
1
vote
1answer
80 views

Where can I find the EEPROM memory in STM32 Nucleo F401RE?

I'm looking for to store and read values on STM32 Nucleo F401RE and I need to find which sector and begin address to start with. I did watch a tutorial how to do, but he's using another STM32 board. ...
0
votes
0answers
36 views

Why do I get Hard Fault error when I use RTOS with STM32?

I have created a library for ILI ILI9341 LCD that can do lot's of stuffs. It's made for STM32 and it can do: Plots Number pad Icons 16 bit Windows 3.11 Question dialog Frames But when I try to load ...
0
votes
0answers
80 views

Proteus doesn't see the code of my .elf file

I created a project for stm32 in cubemx then the project was edited in system workbench for stm32. I got .elf file for an stm32f103c6 microcontroller and I can't run it. I load the file in the ...
0
votes
0answers
25 views

Remote Debugging problem on CUBE MX IDE via ST LINK

Are there any way to debug my codes which is located on my remote desktop via ST-LINK which connected to my local notebook's USB port ?? How to do configure settings on local and remote PCs and CUBEMX ...
1
vote
0answers
35 views

Debugger connection fails when using UART2 in DMA mode in Nucleo-401RE

I am trying to build a simple communication between my PC and a Nucleo-F401RE using UART over the USB connection. I am able to do this successfully using a “polling” or an “interrupt” configuration. ...
0
votes
0answers
79 views

ADC Triggering with TIM3 TRGO running in PWM mode in STM32F446

I have been trying to trigger an ADC using TIM6 with TRGO signal in STM32F446RE board. I am unable to do it. I have used CubeMX initialization and have been trying to use the HAL libraries for ...
0
votes
0answers
25 views

MCU Package of STM32f1 series for stm32CubeMX

I am trying to download MCU Package of STM32f1 series for stm32CubeMX from the following link: https://www.st.com/en/embedded-software/stm32cubef1.html But the given link sends this messege that the ...
-1
votes
1answer
151 views

Can we program and debug STM32F401C via SWD interface using STM32 Cube IDE and STM32CubeMX?

I am planning to use STM32F401C microcontroller for my project, so I am in the process of gaining knowledge on it. I am planning to use the SWD interface to program as well as debug the ...
1
vote
1answer
90 views

STM32f103 NRF24L01 Communication Problem

I am trying to apply communication between two stm32f103c8t6 with NRF24L01 modules. And using uart with usb to ttl module to reach putty terminal. I am using KEIL and for generating code CUBEMX. Here ...
0
votes
0answers
392 views

STM32CubeIDE issues with CMSIS-DSP library files

I have been trying to add the Library file libarm_cortexM4lf_math.a in the Eclipse based STM32CubeIDE as shown in the pictures below. But the linker is not able to find the library, and drops the ...
0
votes
3answers
1k views

STM32 USART 1-wire communication

I'm fairly new to embedded developping and I'm trying to read and write to a 1-wire device (DS18B20) using USART. After digging around I found two alternatives: Connecting USART RX and TX pins with ...
0
votes
0answers
237 views

How to use the Hardware Semaphore (HSEM) on STM32?

Currently, I am working with a STM32H743VI microcontroller, using HAL library from ST and initialization code generated by STM32CubeMX. When I try to use its hardware semaphore, all its registers are ...
0
votes
0answers
55 views

ADC value over UART (STM32)

I am trying to transfer ADC value over UART, every 1 second TIM2 elapse continuously (STM32F103). After, restart it sends data only once and then stops working. When debugging i see that ADC gets ...
0
votes
1answer
32 views

Atollic's TrueSTUDIO IDE / SDK displays unbelievable variable values

While debugging with Atollic's TrueSTUDIO IDE / SDK, variables are reported to contain unbelievable values. But, if the code is left to run, the code behaves as if the variable values are correct. ...
0
votes
1answer
271 views

Why Nucleo-STM32G474RE HAL_GPIO_ReadPin returns wrong value?

I am using the on board user button, which is connected to the port C13 and has an external pull up resistor. The HAL_GPIO_ReadPin function returns 0 when the button is not pressed and returns 1 when ...
0
votes
0answers
121 views

CubeIDE firmware missing?

When I start a new STM32 project, I chose Nucleo F030R8 board, type in project name and click "Finish", the program downloads and unzips required firmware, but then I get the following error message: ...
0
votes
1answer
37 views

Problems with interfacing Nucleo-F446RE and ADF4153 via SPI

I am trying to interface with a ADF4153 device via SPI, the problem is that the ADF4153 is not responding. I expect the problem is with the SPI connection. The pin connections are as follows; MOSI -> ...
0
votes
0answers
39 views

Piconet with STM32's BlueNRG 2 Development Kit

I would like to develop a piconet using STM32 BluenRG 2 development kit by setting up one master device and multiple slave devices. Every slave is connected to an analog sensor and the master should ...
0
votes
1answer
29 views

Initialize IWDG with two difference handles

I am implementing a watchdog in my project, where i am using a IWDG in STM32F4 series controller. I am trying to initialize the watchdog twice with different handles, since it is implemented in two ...
0
votes
0answers
29 views

How to configure bq25700a (charger ic) in stm32cubeIDE

I am trying to do communication between Charger IC(BQ25700A) and STM32 controller by using I2C communication protocol.For taking the status of charging/discharging current of battery from charger ic,i ...
0
votes
2answers
102 views

Can I re-use pins that are labeled as the same physical STM32G4 Nucleo pin?

Poorly written question. Let me elaborate. The Nucleo-32 board I'm developing (STM32G431KB) in STM32CubeIDE shows on the CubeMX "pinout view" that there are 4 distinct pins ...
0
votes
1answer
65 views

Embedded Development Support plugin does not generate CMake files in CLion on Ubuntu 19.10

I can build, run and debug my old projects. But when I try to import new STM32CubeMX project, nothing happens. No CMakeLists.txt file created. Pressing '...
0
votes
0answers
133 views

STM32CUBEIDE Clock configuration for USART

My MCU is STM32F072C8T7 and I am using the STM32CUBEIDE to initialize the peripherals and the clock configuration. In the clock configuration option (attached below), I can see the clock settings ...
0
votes
1answer
329 views

Connect STM32F103 to MPU9250 over I2C with HAL (ERROR)

my experience in programming MCU is only Arduino (also STM32F103 over Arduino) I have now started to use the STM32CUBEIDE and an ST-Link V2 to program my STM32f103. I have tried the functions: ...
0
votes
2answers
93 views

Internally Pulled-Up signal on STM32 interrupt pin? [closed]

I used 2 pins of STM32F103C8T6 as button interrupt which is both located on GPIOA port and 12 & 15 pins. the code compiled and loaded to the board successfully using STM32cubeIDE. One of the input ...
0
votes
0answers
193 views

stm32 SPI and UART not working together

I am using an stm32f042k6 - Nucleo Board. I am using SPI and UART in non - blocking mode initialized through Cube-MX. I am trying to interface an RPI through SPI1 and a BMS through USART1. SPI1 is ...
0
votes
1answer
235 views

STM32 DAC Trigger

I am Trying to use the DAC output on my STM32L053R8 NUCLEO Board. I generate the corresponding Sin-Wave values to set the DAC Values like this. ...
2
votes
1answer
494 views

stm32 which timer and DMA channel should I use?

I am trying to control two lines of digital LEDs (WS2812b) with my STM32F103 using Timers with DMA and PWM. LED strips data lines are connected to PB5 and ...
0
votes
0answers
205 views

Shutdown mode on stm32 consuming a lot of power

I am testing the demo code given in the directory STM32Cube\Repository\STM32Cube_FW_L4_V1.14.0\Projects\NUCLEO-L476RG\Examples\PWR for CubeMX. I am testing the code PWR_ModesSelection and am recording ...
1
vote
0answers
252 views

Mounting Problems SD Card and STM32F7 Discovery

I've got some problems with the FATFs library and the STM32F7 Series. I want to connect a SD-Card (32GB, SanDisk, FAT32) with the F746G-Discovery-Board to save some data on it. (at first .txt-Files, ...
0
votes
0answers
43 views

CubeMX doesn't create bluenrg_utils.c

In case someone already stumbled upon this issue I'd be glad about every advice. So I have an STM32 that is connected to a BlueNRG-MS and I set everything up using the CubeMX. There I select the ...
0
votes
1answer
334 views

How to debug a program using FTDI in STM32CubeIDE?

I want to debug a test project for my board the STM32F103C minimum systemboard, sometimes called the bluepill, I use linux so i downloaded the original STM32CubeIDE as .sh execute it and downloaded ...
0
votes
1answer
379 views

STM32F103 SPI Pinout Problem

I am currently working on a project with LoRaWAN technology using STM32F103C8T6 microcontroller. For LoRa I am using SPI in Full-Duplex Master mode (spi1 specifically) and in CubeIDE when you activate ...
1
vote
1answer
42 views

Changing clock speed of STM32F779II

I'm configuring the clock of the LCD which has a max clock of 30MHz as following. Plus I'm using the touch at I2C1, and USB at 48MHz. The clearing and painting an image to the LCD is slow, and it's ...
3
votes
2answers
3k views

FreeRTOS on STM32 - What API should be used: CMSIS-RTOS API (v1 or v2) or FreeRTOS API? [closed]

According to ST's user manual UM1722 "Developing wireless applications on STM32Cube with RTOS" there are two APIs available: Generic CMSIS-RTOS API (v1 or v2) FreeRTOS API The CMSIS-RTOS API ...