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
1answer
36 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
27 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 ...
-1
votes
0answers
28 views

How to include cpputest or unity to stm32 cubemx ide project [closed]

For a while I am trying to import cpputest framework to my ongoing stm32 project on cubemx ide. Even i convert my project from C to C++ and renamed main.c as main.cpp , there are always problems. I ...
0
votes
0answers
32 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
18 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
20 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
17 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
20 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
40 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
36 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
112 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
327 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
84 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
49 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
29 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
112 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
50 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
35 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
35 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
23 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
24 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
66 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
54 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
82 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
154 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
87 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
67 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
128 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. ...
1
vote
1answer
301 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
122 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
165 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
38 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
194 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
242 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
2k 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 ...
0
votes
1answer
156 views

Do I really need to learn how to use registers - Programming a microcontroller? [closed]

I have a curious question. Do I really need to learn how to use registers when I program a microcontroller? I have been using Arduino for a long time. I quit using Arduino and starting to use STM32 ...
0
votes
0answers
100 views

STM32 HSE clock is affected by LTDC_DE signal?

My STM32F429 project works fine before I added the LTDC module generated by CubeMx. After I added LTDC, the FMC interface began to lost data occasionally which was good before. I thought it may be ...
0
votes
1answer
70 views

Interfacing SD card with STM32F44

I'm using STM32F44VET6 controller(using cubemx code configurator), I need to interface a 64GB SD card,and this controller has SDIO pheripheral also But I'm confused how to choose interface type SPI ...
0
votes
0answers
17 views

how to receive broadcast from the slave in SMBus?

I am using SMBus to monitor the battery, and could get all info I need, but when battery broadcast some critical info to the host, how should I be able to receive it? From the manual of the battery: ...
0
votes
1answer
139 views

Where does STM32CubeMX generate AF GPIO initialization?

i was wondering where does CubeMX (when you export it to an IDE such as Atollic) generate GPIO initialization for alternate functions such as Timer capture pins, UART pin ect. (we are talking about ...
1
vote
1answer
112 views

STM32CubeMX not showing the resolution in ADC

I am trying to use ADC in stm32f103 micro-controller. I use STM32CubeMX to configure the ADC. Based on the videos I gave seen on YouTube, I must be able to configure the resolution of the ADC (8, 12 ...
0
votes
2answers
200 views

How to upgrade StdPeriph drivers for STM32F103 project [closed]

I have an old project which is built on using "StdPeriph drivers" for STM32F103 MCU and Keil environment. It uses various drivers for gpio, adc, can, dac, dma, i2c, spi, tim, uart etc. As these ...
0
votes
0answers
38 views

stm32CubeMX SMBus setup question

there are some terms in stm32cubeMX I do not understand how to set properly, I am using L476RG MCU, and read PMM240(power management board) with RRC2054-2 battery via SMBus. 1, in the manual it ...
0
votes
3answers
102 views

STM32F7 NVIC INQUIRY

I'm trying to connect the NVIC interrupt to handle a keyboard, nonetheless I'm having troubles becuase two keys are connected to the line0, which use the EXTI0_IRQHandler, I saw in the stm official ...
0
votes
1answer
159 views

SMBus is always busy after HAL_SMBUS_Master_Transmit_IT()

I'm using PMM240 power management board to control battery RRC-2054, and I have problem to use SMBus, please see the code I listed below, looks device is ready, but when you send something, it is ...
0
votes
1answer
54 views

stm32cubeMX difference between Gpio_output and Gpio_input [closed]

I will use L476RG to connect with a battery power board, battery board will use two Gpio ports to ONLY send out info, such as battery is full, battery is in charge, and so on, now the question is, in ...
0
votes
0answers
44 views

stm32cubeMX SMbus Listen Complete callback function

I am using PMM240 to manage RRC2054-2 battery, it is based on SMbus, I have questions about how to make sure the command is complete, I noticed there are library functions ...
0
votes
0answers
31 views

How to solve STM32CubeMX keil error?

I have installed keil v5 and installed STM32 package. When I start the STM32 project and add the Software components Here is the directory
2
votes
1answer
594 views

STM32CubeIDE HAL_Delay not working

I am trying to toggle the GPIO port 8 with: ...