You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered: