STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! How PLL affects timer Pre-sclaer.

Below i have attached a code which enables the PLL freq of 72MHz using HSI of 16MHz. The issue is if I give a Timer pre-scaler of 36000-1 (I am using timer2, which in case of STM32F401RE is on APB1 bus so using a pre-scaler of 2 for APB1 which makes ...

DJ1 by Associate III
  • 4968 Views
  • 12 replies
  • 2 kudos

Resolved! UCPD activation crashes STM32U5 MCUs - hardware bug?

Using Nucleo-U575ZI-Q (rev X) board I try to do a PoC - a very simple UCPD source app providing default USB 5V and 0.5A max. With undocumented onboard SB8-10 shorten this probably can be accomplished. I know this board does not provide output current...

TDJ by Lead
  • 6298 Views
  • 20 replies
  • 4 kudos

Resolved! CRC16-DNP calculation error

Hi,Im trying to get CRC16 - DNP from a string array that its the next:char Message2[] = { 0x00, 0x00, 0x00, 0x29, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x32, 0x30, 0x36, 0x33, 0x57...

Dosan by Associate III
  • 5294 Views
  • 11 replies
  • 0 kudos

Bitwise shift left STM32F723

Hi there i m a student working on STM32F723 the first time, I encountered an register setting example as follows: GPIOC->MODER |= ((2<<(6*2)) \ (2<<(7*2)));  i konw its setting the GPIO register but whats the meaning of * and 2<< at the beginning sen...

StanJerm by Associate III
  • 5030 Views
  • 8 replies
  • 1 kudos

Resolved! Clock enable for SWD ports (STM32G0)

I'm a bit confused about the necessity of clocking the SWD ports using STM32G0B1 chip.There is a I/O port clock enable register (RCC_IOPENR) that enables the functioning of each of the GPIO ports (Port A - Port F), its reset state is all zeroes, so n...

AYash.1 by Associate II
  • 5609 Views
  • 4 replies
  • 1 kudos

Resolved! Fastest way to read RTC

I have an app where I timestamp all the data I get from a bunch of external devices.  I'm trying to come up with the fastest way to read the RTC and have 2 approaches, one using snprintf and some LL driver code that's pretty easy to read.  It's not m...

magene by Senior II
  • 4169 Views
  • 6 replies
  • 5 kudos

I can't set adc12 register of STM32G4A1KEU6

I try to using the bare-metal programming this is my code RCC->AHB2ENR |= (1UL<<0);  // Enable clock to GPIO port ARCC->AHB2ENR |= (1UL<<13); // Enable clock to ADC1,2 GPIOA->MODER |= (1UL<<0);  // Set PA0 to analog modeGPIOA->MODER |= (1UL<<1);// GP...

BaBQ by Associate
  • 523 Views
  • 0 replies
  • 0 kudos