STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Reading I2c with sub-address

Hello All.Reading a register value from an I2C device assumes:  Writing the device address-> Writing the register address without STOP-> Reading the value . I am trying to figure out if I can do it using only available HAL functions but I don't see h...

baranovus by Associate III
  • 665 Views
  • 2 replies
  • 2 kudos

USB Device Connection and Disconnection

STM32F4 is working in USB Device MSC mode successfully.I need to detect the USB connection state. I put the HAL_PCD_ConnectCallback function in main.c but on compiling I received warning.Debug/../USB_DEVICE/Target/usbd_conf.c:307: multiple definition...

Nico3 by Senior
  • 1178 Views
  • 7 replies
  • 0 kudos

Error in AN2834 rev 9

Hello ST people, I spotted an error in AN2834 rev 9, figure 8. Please refer to the image attached.A negative offset error should be depicted in figure 8, but it is a positive offset error, just like in figure 7. To be a negative offset error, the act...

ke1wa_1-1718781759126.png
ke1wa by Associate
  • 420 Views
  • 2 replies
  • 0 kudos

Resolved! How to reset counter value ?

Hello everyone, i would like to know the HAL function that allows to reset the value of a simple counter. I don't find the HAL function to reset my counter to 0 before a next counting. So all i want to do is to count, read my counter value and reput ...

LHerm.1 by Associate III
  • 8864 Views
  • 6 replies
  • 1 kudos

Initialize the bootloader on STM32L432KC

I am a new embedded software engineer using STM32L432KC for my company's projects.I have been tasked to install a bootloader into this MCU. I am not sure how to proceed. I do understand that the BOOT0 pin which is grounded has to be set HIGH and BOOT...

Abijith by Associate II
  • 735 Views
  • 5 replies
  • 0 kudos

How to write multiple file in sd card sdio using fatfs

Hi, 1.I want to save multiple files but only 50 or 55 files savings.and how to save files next to next file.I want to fo fill data files up to to 32 GB.  2. how to reuse same memory for multi file creationint main(void){ /* USER CODE BEGIN 1 */  /* U...

pankaj4 by Associate
  • 636 Views
  • 3 replies
  • 3 kudos

Flash memory data access

Hi.I want to save and load data to flash memory. (STM32F373RC)And initialization code was generated through cubemx.All functions including SPI, I2C, and ADC were successfully tested.However, saving and loading data into flash memory failed.All functi...

YS4 by Associate
  • 642 Views
  • 1 replies
  • 1 kudos

Resolved! MCU can't be flashed anymore

Hi everyone,First I am sorry for the uneducated rest of this text and badly written code.I am currently playing around with a stm32f4 chip. I am using Platform IO CMSIS and a cheap stlink v2 to program the chip. I was trying to get PWM working when t...

Smar by Associate II
  • 726 Views
  • 3 replies
  • 2 kudos

Phase shifted PWM

Hello, Am using STM32L412RBT6 controller to generate PWM for our battery charger product. We need to generate two PWM's and am using TIM1_CH1 and TIM1_CH1N pins to generate 2 PWM's. These are all configured through Timer1.  Here i have a requirement,...

VasuManiV by Associate III
  • 472 Views
  • 2 replies
  • 0 kudos