STM32CubeIDE (MCUs)

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! [STM32F411E-Discovery Board] HAL_RCC_OscConfig() always returns HSE_TIMEOUT while waiting for HSE to be ready and I can't figure out why. All peripherals are initialized to default Mode.

Using STM32CubeIDE v1.6.1 on MacOS 11.3.1Steps to reproduce:Create a new STM32 project.Board Selector -> Select STM32F411E-DiscoName project, leave everything else as default, hit finish.Initialize all peripherals with their default Mode? YesDebug as...

DNguy.9 by Associate II
  • 590 Views
  • 4 replies
  • 2 kudos

Multiple "expected expression before 'do'" errors

I'm new to STM32 and trying to bring up the STM32L053-DISCO project in STM32CubeIDE. It mostly comiles fine, but has an issue with the HAL defines, such as below:#define __HAL_RCC_GPIOA_CLK_ENABLE()  do { \                    __IO uint32_t tmpreg; \ ...

SHoll.1 by Associate II
  • 1612 Views
  • 12 replies
  • 1 kudos

Resolved! STM32 RCC Configuration with Register

Hi,I am using STM32F407 discoveryboard and I am trying to set the RCC configuration such as the clock frequency is 168 MHz. I configure the register as I want but some bits at the RCC_PLLCFGR registers are already assigned to 1, and when I cleared th...

AÜNAL.1 by Associate II
  • 1311 Views
  • 2 replies
  • 0 kudos

Resolved! STM32L4R9 reset reason flags always 0 (RCC->CSR)

Details:MCU: STM32L4R9ZGJ6IDE: STM32CubeIDE v1.6.1SDK: STM32Cube_FW_L4_V1.14.0Board: Custom PCBHello,I am seeing really strange behavior where bits 31-24 in the RCC->CSR register are usually always 0. I have verified this behavior on two boards. The ...

0693W00000Uon68QAB.png 0693W00000Uon7LQAR.png
DerekR by Senior
  • 1364 Views
  • 7 replies
  • 1 kudos

Comparing Nucleo-H743ZI2 and Nucleo-H745ZI-Q

I've written some code in STM32CubeIDE for the Nucleo-H743 which is simply toggling the board's LEDs and using the SPI channels to tx/rx with a few A/D converters. I've measured the loop's time to execute with a scope to be ~20us. I also have a Nucl...

CMcSh.1 by Associate II
  • 575 Views
  • 6 replies
  • 0 kudos