STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Measuring elapsed time in nanoseconds

I need to measure the time it takes for a component to reach a certain voltage, read out with the ADC. So far I have been measuring in microseconds but it turned out that that is not precise enough.I found the following code to measure time on Stacko...

Qwyntex by Associate III
  • 10787 Views
  • 13 replies
  • 3 kudos

Needed help in ADC callback using Interrupts.

__IO volatile uint8_t ADC_ConversionFlg=0;void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc){/* Prevent unused argument(s) compilation warning *//*ADC_ConversionFlg |= 0x01;CTP=HAL_ADC_GetValue(&hadc1);} MX_ADC1_Init(); HAL_ADC_Start_IT(&hadc1); ...

Tushar_4 by Associate II
  • 924 Views
  • 3 replies
  • 1 kudos

Resolved! HAL_StatusTypeDef function

Hi, i come across a H7 code that use HAL_StatusTypeDef , could anyone kindly advise what does the HAL_StatusTypeDef do, whats HAL_OK means? what does ret != HAL_OK mean? and what does return HAL_OK means?HAL_StatusTypeDef spi_write(reg, *pData){  HAL...

Resolved! NMI Fault While Debugging (STM32G474 nucleo board)

Hello,I keep getting an NMI fault when I attempt to read a variable with gdb (either with a mouseover on a variable in STM32CubeIDE or the print [var] command in gdb). I'm not seeing anything useful when I view the microprocessor registers after the ...

toofer25 by Associate
  • 780 Views
  • 1 replies
  • 0 kudos

Getting inaccurate value of ADC of STM32F030R8T6

Hello,I am working on STM32F030R8T6 with HAL.We are trying to read ADC values from the 4 ADC channels and 5th channel as VREFINT.The ADC is configured in continuous DMA read by using:HAL_ADC_Start_DMA(&hadc, (uint32_t *)ADC_Buffer, 5);Our AVDD = 3.3 ...

Resolved! DMA request generation on STM32H7

Hi!I am looking into the possibility on using LPTIM1 to trigger a DMA transfer with no CPU interrupt. This timer is chosen because it can be clocked directly by the HSE clock input. In the datasheet of STM32H7B3 (DS13139 - Rev 8) table 4, it states t...

HansPLJ by Associate III
  • 1296 Views
  • 4 replies
  • 3 kudos