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

MCU:STM32G0B1 fails flash page erase with HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError)

Why using:/* Fill EraseInit structure*/ EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES; EraseInitStruct.Banks = FLASH_BANK_1; EraseInitStruct.Page = StartPage; EraseInitStruct.NbPages = ((EndPage - StartPage)/FLASH_PAGE_SIZE) +1; /* F...

JPikk.1 by Associate
  • 892 Views
  • 2 replies
  • 0 kudos

I2C HAL_I2C_Mem_Read ( ) failed

Hi,I am working on I2C read EEPROM. The HAL function failed due to the I2C_FLAG_BUSY is always SET.Is there anything I am missing in init code?Thx  if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK)  {   ...

STM32G030 UART_DMA

I'm trying to 500ms once transmit 5 byte of data. but 2 byte of data only transmit . below i given my code . i don't know where i made mistake if any one know help me.UART_HandleTypeDef huart2; DMA_HandleTypeDef hdma_usart2_tx; DMA_HandleTypeDef hdma...

STM32F429ZIT6 Encoder Mode not counting

I have a custom PCB with a STM32F429ZIT6 on, I am using CubeMX and STM32CubeIDE.The board generates encoders signals with TIM1 & TIM3 in Output Compare mode.I can scope and see the correct encoder signals being generated by both timers.Then, I also w...

_legacyfs_online_stmicro_images_0693W00000blEsJQAU.png _legacyfs_online_stmicro_images_0693W00000blF1GQAU.png _legacyfs_online_stmicro_images_0693W00000blF1LQAU.png
DPatr.2 by Associate III
  • 1359 Views
  • 5 replies
  • 0 kudos

NVIC and Piority Grouping in STM32 after reset

Hi.I have in my hand Nucleo with STM32F103 (old uC but to understand grouping newer is not needed).In Programming Manual PM0056 on page 134 and 135 I can see a SC_AIRCR register which on PRIGROUP field at reset are all zeros, but on next page in tabl...

sholojda by Associate III
  • 1457 Views
  • 5 replies
  • 0 kudos

Resolved! WUF flag when exiting Standby

Hello.STM32G070CI'm having some issues with the WUF flag when exiting Standby. Exit mode is set to WKUP1 (PA0).I poll the register after exiting standby and in the PWR->SR1 register, the SBF flag is set, but the WUF1 flag is cleared.I also noticed an...

Akoli.2 by Associate III
  • 1485 Views
  • 3 replies
  • 0 kudos

STM32U575ZIT6Q to STM32U575RGT6 migration problem

Tip me please why after migration from STM32U575ZIT6Q (evaluation board STM32U5 Nucleo-144) to STM32U575RGT6 (user board) with the same configuration and project code I have problems:FD-CAN works up to 2Mbit/s instead 2.5MFlash programming a fault (t...

MKash.1 by Associate II
  • 693 Views
  • 1 replies
  • 0 kudos

HAL_UARTEx_ReceiveToIdle_IT Causing Hard fault

I was using HAL_UARTEx_ReceiveToIdle_IT to receive data on modbus. After running for couple minutes without any issues it hits the HardFault_Handler. My registers at the time of HardFualtany help would be much appreciated

_legacyfs_online_stmicro_images_0693W00000bVeq9QAC.png _legacyfs_online_stmicro_images_0693W00000bVf4xQAC.png
JThom.15 by Associate III
  • 1245 Views
  • 3 replies
  • 0 kudos