cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I am trying to sett up an STM32f030 processor and tries to get the ADC_ExternalTrigConv_T1_CC4 to trig the ADC from TIM1.

TBerg
Associate II

I am using the old StdLibs to do this since I am (I thought I was) comfortable with these. 

Anyone that can point out some code showing how to do this in detail? Have been struggling with this for three days and begin to loose my faith in this.

Thanks,

Tomas

3 REPLIES 3
TDK
Guru

It should take you well under 3 days to do this with HAL. More examples available as well. Consider switching:

https://github.com/STMicroelectronics/STM32CubeF0/tree/master/Projects/STM32072B_EVAL/Examples/ADC/ADC_TriggerMode

If you feel a post has answered your question, please click "Accept as Solution".
TBerg
Associate II

Yes, mostly it takes just a couple of hours setting up the peripherals but this one just seem to get me stuck. I will look closer on your example. Thanks! Im thankful for any more examples if there are!

Regards,

Tomas

Just drill down in the repository to find specific examples:
https://github.com/STMicroelectronics/STM32CubeF0/tree/master/Projects
You could also search using a function name to see if and where it's used in any examples.
Not saying SPL can't work, but it's getting less and less used and it's harder to find examples or help if and when you need it. I would move to either HAL or direct register access.
If you feel a post has answered your question, please click "Accept as Solution".