Questions tagged [stm32cubemx]

A C/C++ MCU configuration generation tool for STM32 products, from ST Microelectronics

116 questions
0
votes
0 answers

Nucleo L4R5ZI-P board - Can't get an LED to blink because the HAL_DELAY call gets stuck in an infinite loop

I've just bought an STM32 Nucleo board for my final project at university, specifically, it's the L4R5ZI-P board. I've downloaded the (STM32)CubeIDE and the MXCube,created a new STM32 project that's suited specifically for said board, with the…
Saar
  • 1
  • 1
0
votes
1 answer

Azure NetX Duo only provides the driver for LAN8742 compatible Ethernet PHYs. How can I manage other Ethernet PHYs?

I'm developing an application for STM32F4 with Azure RTOS Netx Duo. In particular I'm trying to adapt the example Nx_TCP_Echo_Server application for my board where is present the Ethernet Phy ADIN1200 produced by Analog Devices. Note about example…
frankfalse
  • 1,553
  • 1
  • 4
  • 17
0
votes
1 answer

arm-gcc compiled code is bigger than on armclang

I've generated the same project on STM32CubeMx and added the same code uint8_t* data = new uint8_t[16] HAL_Delay and HAL_GPIO_TogglePin in infinite loop for the Keil MDK project and as Makefile project. In both main.c is changed to main.cpp The…
lazba
  • 129
  • 9
0
votes
0 answers

How to passing variables from c++ to vb.net

I have c++ api function : `int readMemory(unsigned int address, unsigned char** data, unsigned int size);` I want to translate it into vb.net function: Public Function readMemory( ByVal address As UInteger, ByRef data As IntPtr, ByVal…
Luke W
  • 1
  • 2
0
votes
0 answers

The callback function HAL_DAC_ConvCpltCallbackCh1(DAC_HandleTypeDef* hdac) with STM32U575CGU6 doesn't work

Could some one assist and clarify how to use the callback function HAL_DAC_ConvCpltCallbackCh1(DAC_HandleTypeDef* hdac) with STM32U575CGU6. I try to integrate mp3 player with STM32U575CGU6. I checked flags and the status of DAC. All works but…
0
votes
0 answers

STM32 Multiple Timer Clock Configuration for PWM Generation and Timer Source Delay Function

I try to temperature control with close loop control system. I use dımmer circuit for control my AC heater. Dimmer circuit has a psm pin for current based heat control. For use the psm control i set my APB1 timer source 16 MHz. I use DS18B20 sensor…
0
votes
2 answers

HAL_UART_Receive_DMA works only once. How can I fix it?

I am working with STM32F103RB board and I want to simply echo everything I receive from my computer via serial port back to that port. I must do it using UART and DMA. I've set up DMA on USART2_RX with CubeMX in normal mode. My problem is that…
0
votes
1 answer

Read MyCharNotify as a character instead of a HEX value

I am programming an STM32WB board using the following tutorial (https://www.youtube.com/watch?v=Zgw3wRpGSRQ&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=18&ab_channel=STMicroelectronics) I am able to send a hex value to the phone using the ST BLE…
0
votes
1 answer

Using HAL libraries without uncommenting HAL_conf.h specific library

I want to use uart without uncommenting stm32****_HAL_conf.h: #define HAL_UART_MODULE_ENABLED I've tried to add it on main.h and/or including manually: #include "stm32h7xx_hal_uart.h" but these adding causes to cubeIDE to tell: Undefined reference…
mohammadsdtmnd
  • 330
  • 1
  • 11
0
votes
0 answers

STM32 SPI Driver issue (AD5270 potentiometer)

I am working with AD5270 IC (10 bit digital potentiometer): https://www.analog.com/media/en/technical-documentation/data-sheets/ad5270_5271.pdf I am writing SPI drivers for it on STM32F407. Little bit about hardware: On the same SPI bus, I have…
TheBestPlayer
  • 324
  • 2
  • 13
0
votes
0 answers

lwIP on STM32F107 work only with debugger (stm32cubemx)

I have STM32CubeMX 6.6.1 and keil 5.31 I wrote a simple program and it works properly. After that, I enabled the ETH option from the Connectivity section and set the PHY to DP83848 I have also set the mode option to RMII and the Master clock Output…
GBg
  • 223
  • 4
  • 12
0
votes
1 answer

How to setup NVIC for DMA in STM32CubeMX?

I am trying to connect STM32G070 microcontroller with Quectel BC660K-GL via UART in DMA mode. I am using STM32CubeMX for programming. I understand basic principles how DMA works, therefore settings inside the DMA Settings tag are quite clear to me,…
Nemanja
  • 13
  • 1
  • 5
0
votes
0 answers

HardFaultHandler in STM32

I am using a NUCLEO-WB15CC board trying to build a BLE application. I followed the instruction from a YT video by STM: https://www.youtube.com/watch?v=i10X4Blr8ns I generated code with CubeMX version6-5-0 on linux. The code called HardFaultHandler()…
砂糖君
  • 1
  • 1
0
votes
2 answers

Why are MSPs defined as callback functions?

In STM32CubeMX MSP stands for MCU Support Package and of all here is what it basically about: MSPs are user callback functions to perform system level initializations such as (Clock, GPIOs, DMA, interrupts). Now I'm looking at such a function used…
GNZ
  • 575
  • 2
  • 10
0
votes
1 answer

How to Debug in STMCubeIDE?

I am new to STM32. I have recently installed STM32CUBEIDE. I have written basic code . connected ST-Link v2 (STM8 & STM32) to my laptop and pressed F11 (to debug). I get the following error Error in initializing ST-LINK device. Reason: ST-LINK…