STM32CubeMX (MCUs)

Showing results for 
Search instead for 
Did you mean: 

Forum Posts

usb cdc doesn’t work on stm32l152

I enabled usb cdc by stm32cubemx in an empty project. I connected dp, dm, gnd and (to ground). I tried a 1.5k pull up resistor on dp pin. But still I get “usb not recognized”. I am using stm32l152re-nucleo board.I have set up usb cdc on other stm boa...

Femah by Associate
  • 2 replies
  • 0 kudos

Problem with IDE

Hello, I've got problem with STMCubeIDE. You can see my problem at photos I attached. Can anyone help me to solve this problem. I try to work on Lenovo Legion 5 with Ryzen 5 5600h and RTX3060. Second graphic card is integrated with Ryzen CPU. This pr...

Resolved! [STM32L151] STM32CUBEIDE 1.9.0, FW_L1 V1.10.3 SPI1 and SPI2 are missing options to set Clock Polarity (CPOL) and Clock Phase (CPHA)

 I was able to resolve by adding to SPI2_Init  /* USER CODE BEGIN SPI2_Init 1 */ hspi2.Init.CLKPolarity = SPI_POLARITY_HIGH; hspi2.Init.CLKPhase = SPI_PHASE_2EDGE;But STM32CubeIDE 1.8.0 with same version FW_L1 V1.10.3 does have the options as below ...

0693W00000NpjEqQAJ.png 0693W00000NpjhnQAB.png

Where is the rank N°1 settings? (ADC / STM32L151RETx)

I try to set, using last version STM32CubeIDE, the ADC to get 8 analog inputs, using DMA, with permanent conversion.I doesn't see anymore the rank 1 ? (see picture)When I start HAL_ADC_Start_DMA, i have only the AN0 value, and only 8 bits (I set12bit...

lclor by Associate III
  • 5 replies
  • 0 kudos

Bug in ADC initialisation code (CubeIDE / FW_L1)

I found this issue whilst troubleshooting a couple of other issues - device target is STM32L152REx using low-level (LL) libraries.CubeIDE Version: 1.9.0CubeMX Version: 6.5.0-RC4STM32Cube_FW_L1_V1.10.3If I use lots of ADC channels (22 in my case) the ...

JU by Associate III
  • 5 replies
  • 0 kudos

Resolved! STM32L151C8T6A clock configuration in CubeMX

The Clock Configuration tab in CubeMX is not happy and I cannot figure out what the problem is exactly. I only want to use HSE a 25MHz external clock source in BYPASS. And I do not intend to use the PLL. Is this a bug in the tool? How can I satisfy t...


STM32L152 UART5 Pull Up forced by Mx?

I am trying to configure the UART5 on PD2 and PC12 for my STM32L152RE as open drain but the Mx GUI only offers pull ups. I searched manual and Errata but nothing indicates a special pin here. is this a bug in the Mx config or a real thing does anybo...

ASche.5 by Associate II
  • 2 replies
  • 0 kudos