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
13 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 ...
1
vote
1answer
47 views

STM32F7 HSE not starting

I'm using an STM32F765VGTx on a custom PCB with an external crystal (at 26 MHz), which however I can't seem to get working. My first question, before any further detail, is: how can I find out if the ...
0
votes
0answers
32 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
31 views

Connection between STM32F446 and CODEC (PCM3060)

I have decided to connect an external crystal to the MCU (STM32F446RC) and then doing the following routing using STM32cubeMX UI. MCU to the CODEC using the I2S mode of the SPI peripheral: I am ...
0
votes
0answers
278 views

Keil Error: Not a genuine ST Device! Abort connection

I am using ST-link V2 for programming/ debugging my STM32F103C8t MCU using Keil. So the problem is that when I try to program the STM32 controller it shows a popup error Not a genuine ST Device! Abort ...
0
votes
0answers
28 views

Programming of STM32 with RFM95 LoRachip in Arduino IDE

I'd like to design a custom board around some STM32 chip, one of STMicro's mainstream MCUs such as the STM32F103C8, which is used for the blue pill should do. I am now wondering: Can I manage to get ...
0
votes
1answer
53 views

How to flash a bootloader onto the STM32WLE

I am currently designing a custom PCB with this board: https://www.st.com/en/microcontrollers-microprocessors/stm32wle5jb.html I cannot find any mentioning that it comes with a factory installed ...
0
votes
2answers
74 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
80 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
77 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
1answer
125 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
55 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
31 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
43 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
119 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
235 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
262 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
78 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
71 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
117 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
103 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
62 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
114 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
1k 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
82 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
1k 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
214 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
119 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
151 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
135 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
28 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
281 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
107 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
vote
0answers
78 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
46 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
454 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
209 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 ...
1
vote
0answers
977 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 ...
1
vote
3answers
4k 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
1answer
37 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
669 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
49 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
48 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
199 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
88 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
755 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
131 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
495 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
467 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
1k 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 ...