Search found 4 matches

by sgordon777
Fri Mar 07, 2025 5:40 am
Forum: General discussion
Topic: ADC+DMA using stm32 HAL
Replies: 6
Views: 1295

Re: ADC+DMA using stm32 HAL

Ok, finally got it running. What was missing was this:

extern "C" void DMA1_Channel1_IRQHandler(void)
{
HAL_DMA_IRQHandler(&hdma_adc1);
}

I'm defining HAL_ADC_MODULE_ONLY in my platform ini file. Thanks for the help






#include <Arduino.h>
#include <stm32g4xx_hal_adc.h>

// objects
ADC ...
by sgordon777
Wed Mar 05, 2025 1:40 am
Forum: General discussion
Topic: ADC+DMA using stm32 HAL
Replies: 6
Views: 1295

Re: ADC+DMA using stm32 HAL

Yes, I did try extern "C" on my callback functions, but not on the sysclock function. I'll try that and also verify that it;s entered. Thank you.
by sgordon777
Sun Mar 02, 2025 9:25 pm
Forum: General discussion
Topic: ADC+DMA using stm32 HAL
Replies: 6
Views: 1295

Re: ADC+DMA using stm32 HAL

Yes, I looked at that even before I posted my thread. Nothing in that thread helped
by sgordon777
Mon Feb 24, 2025 4:54 pm
Forum: General discussion
Topic: ADC+DMA using stm32 HAL
Replies: 6
Views: 1295

ADC+DMA using stm32 HAL

Hello, I’m attemping to get ADC with DMA working in stm32duino/PIO for a stm32g431KB target on a NUCLEO32 baord… My Strategy has been to contruct the app using the CubeMX designer + CubeMX-IDE, make sure it works in CubeIDE,then move the code (with whatever changes are needed) into an Arduino sketch ...

Go to advanced search