2017-04-21 11:36 PM
Hi,
I am testing ADC interface on STM32F769i-Eval board.
When i use default Example of ADC provided by ST, it works properly.
STM32Cube_FW_F7_V1.6.0\Projects\STM32F769I_EVAL\Examples\ADC\ADC_RegularConversion_Polling
But when i create a new Application and add the same code , it odes not work.
I need
ADC_RegularConversion_Polling to be working with my code.
How can i make it work?
Any suggestions.
Thanks and Regards
Rizwan Syed
2017-04-22 04:41 AM
Well, the merge of the code is incomplete. Use a debugger, and look at the GPIO and ADC register values for both projects. It should give you some clues of what's missing. If the registers are all 00 it means the ADC clock was not enabled, etc...
2017-04-22 05:07 AM
Cube/HAL abstracts important initialization code into sub-functions, pay attention to the detail. Use tools like Winmerge to understand the differences between your code, and the code that works.
2017-04-25 01:06 AM
Thanks for your reply.
Port and Pin settings were wrong