STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Why does configuration tool code generator changes my code in main between /* USER CODE BEGIN 5 */ and /* USER CODE END 5 */? I thought user code sections where untouched? What can be wrong?

Everytime i run code generator, the main file is changed between User Code ? */ /* USER CODE END Header_StartDefaultTask */ void StartDefaultTask(void const * argument) { /* USER CODE BEGIN 5 */ /* Infinite loop */ for(;;) { LedTask(); ...

sde c.1 by Senior II
  • 505 Views
  • 3 replies
  • 0 kudos

Resolved! Hi, good morning, I have a compilation error what I add Flash functions such as HAL_FLASH_Unloc() ... I don't understand why, maybe I miss a setting in the project. The microcontroller is ESP32G070xx. Can anyone help me? Thank you very much Julian

#include "stm32g0xx_hal.h"  HAL_FLASH_Unlock();  FLASH_Erase_Sector( FLASH_SECTOR_11,VOLTAGE_RANGE_1 );  HAL_FLASH_Lock();ERROR:../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g070xx.h:531:31: error: expected declaration specifiers or '...' before ...

JMigl.1 by Associate
  • 806 Views
  • 3 replies
  • 0 kudos

rms value measurement in stm32f030c6t6

dear experts i am working on stm32f030c6t6 MCU i want to calculate the adc measurement of sine wave form at Gpio pin and that gpio pin has a adc channel also i am using the DMA here i am using another Adc channel for other purpose please check my cod...

Sbomm.1 by Associate
  • 1460 Views
  • 2 replies
  • 1 kudos

Resolved! USART 2 Transmit not working

Board : STM32F746GI configure USART1 with same configuration. USART1 is working fine. I did same configuration for USART2 also, but USART2 not working. I don't know what's happening.Thanks Manikandan D

Mani1 by Associate II
  • 1497 Views
  • 9 replies
  • 0 kudos

Push button: is there a need for software debouncing?

Hi. I am trying to trigger and external interrupt using a push button (rising edge trigger and use internal pull down). When the push button is pushed, the variable cnt should be incremented and the pulse width of the PWM shall be changed according;...

M7890.1 by Associate III
  • 3713 Views
  • 3 replies
  • 0 kudos

Incorrect RTC operation in STM32L073CZ

Good afternoon.I have developed a device for collecting data from sensers and storing them in external memory.During testing, I revealed a failure in the operation of the device.Investigation of the behavior showed that there is an error in the RTC o...

AManu.1 by Associate II
  • 1197 Views
  • 6 replies
  • 0 kudos