STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

I am trying to read 3 ADC channels via DMA. One weird thing happen: if I use a breakpoint on the line of the readings, I get the correct values from the ADC. If I don't use a breakpoint, the values are always 0 or random. Can you help me ?

I tried using delays, but they don't solve the problem. Data are retrieved using HAL_ADC_Start_DMA(&hadc1, value, DATA_LENGTH) HAL_ADC_Stop_DMA(&hadc1);here below my intialization and function:void MX_ADC1_Init(void){    ADC_ChannelConfTypeDef sConf...

LScar.1 by Associate
  • 475 Views
  • 1 replies
  • 0 kudos

LSE Gain margin

Hi,I am using a crystal from AN2867 (ECX-.327-CDX-1293). I'm having trouble starting LSE on stm32g474 mcu.When I calculate gain Margin, I reach 1.24. The expression in the application note also tells us to be careful that the oscillator transconducta...

Continuous SPI transactions using DMA

A little background first. I'm use the STM32F412 in a custom design and not using STM32Cube packages.What I want to do is continuously transmit/receive a fixed number of bytes on a SPI interface (master) using DMA with no software interaction (i.e. n...

KSGreenA by Associate
  • 620 Views
  • 1 replies
  • 0 kudos

Resolved! ADC Sequence conversion not working on STM32G030. Only a single EOC and EOS event when CHSELR = 0b111.

I have tried multiple different configurations, software trigger, hardware trigger, the only way to read ADC channels in sequence is to use DISCONT=1 and trigger each reading individually. I have minimized my project to a testcase where a software tr...

deltronix by Associate II
  • 1171 Views
  • 3 replies
  • 0 kudos