Skip to content

STM32F373: 'ADC_InitTypeDef' {aka 'struct <anonymous>'} has no member named 'ExternalTrigConvEdge' #742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
michsens opened this issue Oct 30, 2019 · 0 comments · Fixed by #744
Labels
bug 🐛 Something isn't working

Comments

@michsens
Copy link

Hi,

I am using a STM32F373. Therefore, I created a variant. Compiling this leads me to following error:

~/.arduino15/packages/STM32/hardware/stm32/1.6.1/cores/arduino/stm32/analog.c: In function 'adc_read_value': ~/.arduino15/packages/STM32/hardware/stm32/1.6.1/cores/arduino/stm32/analog.c:670:18: error: 'ADC_InitTypeDef' {aka 'struct <anonymous>'} has no member named 'ExternalTrigConvEdge'; did you mean 'ExternalTrigConv'? AdcHandle.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; /* Parameter discarded because software trigger chosen */ ^~~~~~~~~~~~~~~~~~~~ ExternalTrigConv exit status 1
To overcome this, I changed the referenced code in the analog.c as followed:

#if !defined(STM32F1xx) && !defined(STM32F373xC) AdcHandle.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; /* Parameter discarded because software trigger chosen */ #endif

Then, the compiling was successfull. I am not sure wether this is correct though.

Regards

Robert.

@fpistm fpistm added the bug 🐛 Something isn't working label Oct 30, 2019
@fpistm fpistm added this to the 1.8.0 milestone Oct 30, 2019
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Oct 30, 2019
fpistm added a commit that referenced this issue Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants