STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

I am trying to read Vbat(battery voltage) using ADC in STM32F042 ,the reading always is Zero. Anyone please find the reason for it.The code is as follows..please dont metion the syntax error ..i have copied only the necessary parts

void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc){ if(__HAL_ADC_GET_FLAG(hadc,ADC_FLAG_EOC)){ adc_value=HAL_ADC_GetValue(hadc); }}main(){ HAL_ADC_Start_IT(&hadc); while(1) { }}static void MX_ADC_Init(void){ ADC_ChannelConfTypeDef sConfig =...

RR.7 by Associate II
  • 363 Views
  • 0 replies
  • 0 kudos

STM32H7xx I2C driver with DMA not working

Hello,i use STM32CubeIDE with FW 1.60 with and want to use the I2C driver with DMA to read and write some data do a device.I configured it properly in CubeMX and the code has been generated and all interrupts etc. are implemented.When i test it with ...

CKörn.2 by Associate II
  • 321 Views
  • 0 replies
  • 0 kudos

Resolved! DFU - FAIL VERIFY - 8 byte align magic...

Posted on February 13, 2017 at 21:45So I'm DFU'ing. Successfully bootloading the device with the USB connections on PA11 and PA12 DFU is built into the STM32L476. Plodding along and loading my micro a few times with a few different compilations all ...

Resolved! Measuring DC current with ACS271(20A)

Hi everyone,I am too new at STM, so I couldn't understand how to measure DC current. Can anyone help me to do my setting and code, please. I found out code for AC current and I decided to change some parts of this code, but I couldn't understand how ...

MÇETİ.1 by Associate III
  • 634 Views
  • 2 replies
  • 0 kudos