cancel
Showing results for 
Search instead for 
Did you mean: 

ADC

Rizwan Syed
Associate II
Posted on April 22, 2017 at 08:36

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

3 REPLIES 3
S.Ma
Principal
Posted on April 22, 2017 at 13:41

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...

Posted on April 22, 2017 at 14:07

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Rizwan Syed
Associate II
Posted on April 25, 2017 at 10:06

Thanks for your reply.

Port and Pin settings were wrong