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
Generate the ADC code for the STM32H750 using CUBEMXV6.11.1, where the Oversampling Ratio must use ADC3_OVERSAMPLING_RATIO_XXX, but an error occurs when compiling.
#293
Closed
wdfk-prog opened this issue
Jun 16, 2024
· 1 comment
wdfk-prog opened this issue
Jun 16, 2024
· 1 comment
Assignees
Labels
adcADC-related issue or pull-requestbugSomething isn't workingcube mxIssue related to the Cube MX tool rather than the firmware published within this repository
The board (either ST RPN reference or your custom board) : STMH750XX
IDE or at least the compiler and its version: STM32CUBEMX V6.11.1
STM32Cube_FW_H7_V1.11.2KEIL V5.40ARMCLANG V6.22
Describe the bug
How To Reproduce
Indicate the global behavior of your application project
Generate a code with ADC functionality using STM32CUBEMX V6.11.1
To compile, an error will be reported
The modules that you suspect to be the cause of the problem (Driver, BSP, MW ...)
You can see that you must have ADC_VER_V5_V90 for the following code to take effect
/** * @} */#if defined(ADC_VER_V5_V90)
/** @defgroup ADC_HAL_EC_OVS_RATIO Oversampling - Ratio * @{ */#defineADC3_OVERSAMPLING_RATIO_2 (LL_ADC_OVS_RATIO_2) /*!< ADC oversampling ratio of 2 (2 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_4 (LL_ADC_OVS_RATIO_4) /*!< ADC oversampling ratio of 4 (4 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_8 (LL_ADC_OVS_RATIO_8) /*!< ADC oversampling ratio of 8 (8 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_16 (LL_ADC_OVS_RATIO_16) /*!< ADC oversampling ratio of 16 (16 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_32 (LL_ADC_OVS_RATIO_32) /*!< ADC oversampling ratio of 32 (32 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_64 (LL_ADC_OVS_RATIO_64) /*!< ADC oversampling ratio of 64 (64 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_128 (LL_ADC_OVS_RATIO_128) /*!< ADC oversampling ratio of 128 (128 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_256 (LL_ADC_OVS_RATIO_256) /*!< ADC oversampling ratio of 256 (256 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_512 (LL_ADC_OVS_RATIO_512) /*!< ADC oversampling ratio of 256 (256 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
#defineADC3_OVERSAMPLING_RATIO_1024 (LL_ADC_OVS_RATIO_1024) /*!< ADC oversampling ratio of 256 (256 ADC conversions are performed, sum of these conversions data is computed to result as the ADC oversampling conversion data (before potential shift). Applicable for ADC3 on devices STM32H72xx and STM32H73xx */
/** * @} */#endif
You can see that stm32h750xx.h does not have this macro definition
You can see the original configuration code
So I think this is a generation problem with cubemx that needs to be corrected;At present, I will manually modify it and use it
The text was updated successfully, but these errors were encountered:
This point is related to the CubeMX generation problem and not directly related to the firmware published in this repository. Unfortunately we don't treat aspect related to CubeMX tool in our GitHub repositories.
In case you have CubeMX-related issues to share, please submit them in the ST Community in the CubeMX related section. There you shall find people who will address your request and whom you will hopefully find a solution with.
Thank you for your comprehension and thank you again for having reported.
adcADC-related issue or pull-requestbugSomething isn't workingcube mxIssue related to the Cube MX tool rather than the firmware published within this repository
Describe the set-up
STMH750XX
STM32CUBEMX V6.11.1
STM32Cube_FW_H7_V1.11.2
KEIL V5.40
ARMCLANG V6.22
Describe the bug
![image](https://private-user-images.githubusercontent.com/66928464/340111141-fef977d3-3851-4787-9cbc-588e0013e3c7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTc2MjAsIm5iZiI6MTcyNDYxNzMyMCwicGF0aCI6Ii82NjkyODQ2NC8zNDAxMTExNDEtZmVmOTc3ZDMtMzg1MS00Nzg3LTljYmMtNTg4ZTAwMTNlM2M3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwMjIwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkYjYxOWExMzQwMGM5NGE5NzI2MDQyYjMyN2Y5YTUyM2RlZDhmNzY5ZTEzMzllYTMzYjBlN2ZkNDVkYTM5YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vGqi7QhaP3q2TTprn4JiwndwC8Ja6xm3z2KSm4uxf9s)
How To Reproduce
STM32CUBEMX V6.11.1
ADC_VER_V5_V90
for the following code to take effectstm32h750xx.h
does not have this macro definitionThe text was updated successfully, but these errors were encountered: