STM32CubeMX (MCUs)

Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32CubeMX 6.15.0 released

We are pleased to announce that the version 6.15.0 of STM32CubeMX is available. What is new in 6.15.0: Enhanced microprocessor support: Added the STM32MP21-A35-TD, STM32MP21-M33-TD, STM32MP25-M33-TD, and STM32MP23-M33-TD trusted domains for the STM32...

Resolved! STM32CubeIDE modify HAL code

We have to make minimal changes to parts of the HAL code, which would be overwritten by code generation.Is there a recommended way to implement such changes, such that they don't get reverted by generation?The two ways I can think of both have their ...

JKut by Associate II
  • 734 Views
  • 1 replies
  • 0 kudos

Why don't I have HAL_CAN_Transmit in the generated CubeMX code?

I setup a project in CubeMX (STM32F302C6), activated CAN (and other peripherals) and did everything. I generated the code and opened it in eclipse. However, in the HAL_CAN library the functions like HAL_CAN_Transmit are missing. I have these control ...

YFric by Associate II
  • 3290 Views
  • 6 replies
  • 0 kudos

Resolved! How to set DIVN2 and DIVP2 of PLL2 in code

I have set the clock for the ADC to 51.2MHz by PLL2P with the DIV set as seen below. Without reprogramming the STM32H7A3 I would like to change DIVN2 to x16 and DIVP2 to /32 to give me 4MHz clock to the ADC, but I can not seem to find where these are...

0693W00000NqiT8QAJ.png
KSOdin2 by Associate III
  • 2390 Views
  • 11 replies
  • 0 kudos

[STM32F303] Internal connection of COMP1 and COMP2 to TIM3IC1

Hi,I am using a TIM3 configured in OPM mode, trigger source set to TI1FP1.The COMP1 and COMP2 outputs are configured as internal connection to TIM3IC1. If I turn on only one comparator everything works, if both are on, it doesn't work. Configuration ...

PKurz.1 by Associate III
  • 1082 Views
  • 3 replies
  • 0 kudos

CubeMX in batch mode and dialog box "Proxy Error" popping on

I use the CubeMX in batch mode on a "nightly buid machine" without an internet connection. Now with CubeMx version 5 there is always a dialog box "Proxy Error" popping on which prevents the further processing of the batch file so that the code could ...

0690X000006DFoXQAW.png
HLewo by Associate
  • 2573 Views
  • 6 replies
  • 5 kudos

STM32F302C8T6: CubeMX generated custom HID can only receive two packets if "USBD_CUSTOM_HID_SendReport" is used to send data back

I have a custom board with STM32F302C8T6. I generated a custom HID project by CubeMX(STM32Cube_FW_F3_V1.11.3), and found that only two packets could be received if "USBD_CUSTOM_HID_SendReport" is used to send data back to host.Here are some more deta...

14545714 by Associate II
  • 1248 Views
  • 2 replies
  • 1 kudos

Resolved! BUG in CubeMX code generation for STM32G050K6Tx

Enable both USART1 and USART2.The code generated for initialization of the GPIO looks like this:void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) {   GPIO_InitTypeDef GPIO_InitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; if(u...

Resolved! X-CUBE-IRREMOTE for stm32g030f6p6

 Hey,I am trying to include X-CUBE-IRREMOTE for stm32g030f6p6 but it doesnt show up in software packs in cubeMXif i try to manually install it it gives an error of invalid packet

Ashja .S by Associate II
  • 1078 Views
  • 3 replies
  • 0 kudos