STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! HAL_I2C_Mem_Write is not working properly

Hello all,Must use I/O expander (PCA9534PW) with STM32F334K8T6.Code:HAL_I2C_Mem_Write(&hi2c1, 0x20<<1, 0x03, I2C_MEMADD_SIZE_8BIT, 0x00, 1, 15000);All code (CubeMX generated): https://pastebin.com/GKNxHSut The usual HAL_I2C_Transmit is not suitable, ...

Glebiys by Associate
  • 1531 Views
  • 1 replies
  • 0 kudos

special incremental encoder reading

There is a very old machine that I want to remake.I cannot change the machine's sensors. The incremental encoder of one of the motors produces a jitter-like signal below at position 0. How can I determine this in reading with a timer. I am using STM3...

0693W0000059s90QAA.png

Resolved! Flash Sector Erase - STM32F207

Hello, I currently have this code setup to erase a specific sector of the STM32F207 internal flash:static void eraseSector(uint32_t sector) { FLASH_EraseInitTypeDef eraseInitStruct = { 0 }; HAL_StatusTypeDef status = HAL_OK;   if( HAL_FLA...

Anvi by Associate III
  • 804 Views
  • 3 replies
  • 1 kudos

STM32407x ADC , DMA and overrun

Hello, I want to know when ADC DMA is enabled and if ADC overrun status sets to 1. the RM says this >>>>>>>>>>>>>>>>.To recover the ADC from OVR state when the DMA is used, follow the steps below: 1. Reinitialize the DMA (adjust destination address ...

n.serina by Associate III
  • 569 Views
  • 1 replies
  • 0 kudos