Questions tagged [stm32cubemx]

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

116 questions
12
votes
4 answers

Is there a way on VS Code to import Makefile projects?

As the title said, can I populate automatically c_cpp_properties.json from an existing Makefile? Edit: For others trying to import makefiles, I have found a set of scripts that perform exactly what I wanted to achieve, the management of STM32…
Andrea Nisticò
  • 466
  • 2
  • 4
  • 11
6
votes
1 answer

STM32CubeMx: How to add your own "USER CODE BEGIN / END" section?

I have a project where I need to add a few lines to one of the generated C files. However, the place where I want to add the change does not have a "USER CODE BEGIN / END" section. So whenever, I regenerate code, the changes are overwritten. I tried…
Dojo
  • 5,374
  • 4
  • 49
  • 79
5
votes
1 answer

STM32: Use USART with character match ISR and DMA buffer

I'm using a STM32L432 device with FreeRTOS and STM32CubeMX. I try to implement a M2M-Communication via USART based on an ASCII protocol. The protocol sequences can differ in length but have a maximum length and a defined end character ('\r' /…
PascalS
  • 975
  • 1
  • 16
  • 40
4
votes
5 answers

How to fix STM32CubeProgrammer No STM32 Target Found

Hello guys Any one here faced this problem before ? After I run my code into my stm32f446re I couldn't upload any code after my last code and give me this error " No STM32 Target Found " I tried to do these options :- 1- Update my ST-Link driver…
Mina Karam
  • 124
  • 1
  • 1
  • 10
4
votes
1 answer

CMSIS DSP in STM32CubeIDE

I want to use the DSP functions that are present in CMSIS. I'm using STM32CubeIDE with my target board being the ST32F411RE Discovery. Using CMSIS DSP with Keil uVision is extremely simple, you just select thew pack you want and use it but it's not…
ChrisD91
  • 249
  • 3
  • 10
3
votes
1 answer

stm32 as SPI slave, full-duplex transmitting via circular DMA buffer: changes to MISO buffer not (completely) reflected in transfer

Created a project template via CubeMX: STM32G030 is SPI slave and uses circular DMA bufs for transfers. As SPI master I'm using an ESP32 running micropython. This, though, should be irrelevant, as I don't rely on its output but what the Logic…
daten
  • 131
  • 1
  • 1
  • 12
2
votes
0 answers

STM32 USB CDC some data lost with Win 10

I use USB device - STMicroelectronics development board. Use firmware, that support usb hardware. Its works as USB serial port. On host PC (win10 21H1) i use serial terminal ("Tera Term") for get data from my device. I use standart windows usbserial…
MAndreyG
  • 21
  • 3
2
votes
2 answers

what is proper way to change properties/generated code of custom HID in STM32CubeIDE

I`m trying to create custom HID device with STM32F103C8, IDE that i choose is STM32CubeIDE and the tutorial that i was following is at ST youtube official channel. ST offers great tool "Device configuration tool" where i can configure…
PuFF1k
  • 303
  • 4
  • 13
2
votes
2 answers

STM32CUBEPGROGRAMMER: You are using OpenJDK, please Install OpenJFX error

STM32CubeProgrammer seems to be installed yet when I try to run the program I come across with this error. I have OpenJDK, OpenJFX and Oracle installed on my computer. How can I fix the error?
2
votes
1 answer

Problem related to programing STM32 microcontroller with CAN bus

I am new to STM32 microcontrollers and CAN bus communication protocol and I am working on programing an STM32F103xx microcontroller. I want to use CAN bus for transmitting data to another microcontroller from the same family. I set up all the…
Ward Mas
  • 43
  • 2
  • 6
2
votes
2 answers

FreeRTOS task priority and stack size

I have STM32F746ZG Nucleo-144pin board and generated the codes using STMCubeMx. I chose the FreeRTOS which is version 10.0.0 offered by CubeMx and the toolchain is SW4STM32. I made two tasks and the following is my function. My code here: void…
Hans
  • 398
  • 2
  • 4
  • 14
2
votes
1 answer

Import C Library in Atollic TrueStudio, STM32CubeMX

I am currently working on a STM32F767ZI-Nucleo board and a little security chip (microchip atecc508a), that is connected via i2c connection. For this chip is a library available CryptoAuthLib, that I want to use in my project. I'm also using…
Habebit
  • 957
  • 6
  • 23
1
vote
2 answers

Customize Project path and name in STM32CubeMX

Consider a CubeMX project where you have configured the STM32F103 microcontroller and have chosen EWARM as the main IDE/Toolchain. When generating code, if you select the Application Structure to advance, you may encounter the following directory…
Arian
  • 65
  • 6
1
vote
1 answer

HAL_RCC_OscConfig returns HAL_TIMEOUT

I'm trying to configure a development board with STM32F411CEU6. This board have two crystals (25Mhz and 32,768KHz). I'm trying to compile code generated from CubeMX with different configurations, but HAL_RCC_OscConfig returns always HAL_TIMEOUT. I…
Stefano
  • 23
  • 4
1
vote
0 answers

STM32f407VEt6 + ethernet + uip + dp83848 how can I do ping project?

Good day! I am writing a project for stm32f407vet6, the essence is simple - exchange over ethernet between the board and the upper level. I tried to use the LWIP stack, but the board does not start with it the first time and the ping does not pass…
Alleftinna
  • 11
  • 2
1
2 3 4 5 6 7 8