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

Encoder high speed error

Our encoder ( https://www.andymark.com/products/redline-encoder-kit ) counts per revolution is 4096. We try to get the encoder data by using CubeMx with Encoder Mode and interrupt. We use encoder mode ...
0
votes
0answers
37 views

Measuring high speed with STM32F103 via Encoder mode with interrupt

We have a motor with the parameters of 22000 rpm and 330kHz. We can read the data clearly when we are working on 0-2000 rpm. When we try to work on >2000 rpm we can't even read the data. How can we ...
0
votes
1answer
44 views

Problems in ADC DMA and UART in STM32F407 [closed]

i am working with stm32f4-Discovery. While writing code, UART reception is not proper when ADC DMA is enabled. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) { ...
0
votes
2answers
67 views

Driving led matrix with SN74LS595N instead of SN74HC595N

I worked out how to drive a ledmatrix (8x8) width monochrome leds with 2 SN74HC595N on a STM32F103C8 over SPI. It works. (Un) fortunately I got my hand on a free a bag of SN74LS595N's. I tried to ...
0
votes
1answer
49 views

STM32 - How to trigger a DMA transfer via hardware timer, while CPU is in SLEEP mode?

I'm trying to set up a simple project that does the following: Enter sleep mode and in the main loop, it waits for interrupt - __WFI(). Transmits data from a buffer[4] to the PC, via UART. The ...
1
vote
1answer
70 views

stm32 - i2c communication fail after disconnecting oscilloscope probe

I am trying to communicate with TCS34725 module with NUCLEO-F401R board. The first I tried is to read out ID register of TCS34725, which should be 0x44, to check the connection. Everything works fine ...
0
votes
0answers
39 views

Debugging STM32 with OpenOCD, STM32 for VSCODE won't work or flash, Configuration issue maybe?

First and for most I googled a lot and Its been a week of searching with no solution at all. Please bare with me! I tried to add all necessary info! Please request more If you need. My problem is: I ...
0
votes
1answer
25 views

Connecting multiple encoders in to STM32 TIMx hardware counter (using channels 3+4)

I have a requirement to connect 3+ standard rotary encoders (A/B quadrature) into an STM32 - the STM32L072x is the current choice. While I could bit-bang it, it would be nice if I can just use the ...
0
votes
0answers
21 views

Problems with STM32F746G-Discovery using another display

I encountered a problem during the configuration of a STM32F746G-DISCO Board for the use with another display. Initial situation: I unsoldered the connection between the STM32F7 Board and the default ...
-1
votes
1answer
36 views

What does 'pulse' in STM32CUBE in PWM generation

I would like to know what 'pulse(16 bits value )' for is it Ton of the PWM signal
0
votes
0answers
110 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 ...
0
votes
2answers
70 views

STM32F407 Discovery CAN Bus RX interrupt doesn't fire

I am designing a CAN Bus with two STM32F4 Discovery boards. I use transceivers SN65HVD234 from Texas Instruments. I configured the Discovery with CubeMX and used CubeIDE. I am using the HAL library. I ...
1
vote
1answer
115 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
45 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 ...
-1
votes
1answer
70 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
68 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
86 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
39 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 ...
0
votes
0answers
83 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
883 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
81 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
497 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
182 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
81 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
74 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
83 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
22 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
183 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
60 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
129 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
34 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
54 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
216 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
36 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
326 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 ...
0
votes
1answer
151 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
732 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
2k 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
404 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
68 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
35 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. ...
1
vote
1answer
483 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
1answer
45 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
1answer
38 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
2answers
154 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
75 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
1answer
541 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
103 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
329 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
331 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. ...