cancel
Showing results for 
Search instead for 
Did you mean: 

ADC Inputs on STM32L4 Discovery

Rogers.Gary
Senior II
Posted on December 01, 2015 at 06:26

Hi,

I've got all documentation for the STM32L4 Discovery board (and I have a board too)

and want to remove the LCD screen to free up some I/O for some ADC inputs.

I am trying to use the CubeMX tool to help with this. I've selected the board in the configuration.

It shows ADC1,2 and 3 as not available (used up by this, that and everything else) For example, if I wanted to (physically) remove the LCD and use PC3 on ADC1, how do I convince CubeMx I really want to do this? I mean, it just won't let me.

Or can CubeMx not be used this way? The ST video on the Discovery board seems to assure the user that the I/O can be used if the LCD is removed, but CubeMx doesn't seem to let the user have them.

Thanks for any help on this!

#stm32l4-adc-cubemx
2 REPLIES 2
raptorhal2
Lead
Posted on December 01, 2015 at 19:42

Just tell CubeMx you have a STM32L476VGT6

PC3 is connected to VLCD circuitry that doesn't go away when you remove the LCD.

My recommendation: get a NUCLEO-L476RG to experiment with ADC programming.

Cheers, Hal

Rogers.Gary
Senior II
Posted on December 01, 2015 at 20:06

thank you for answering, baird.hal.001

Looks great - CubeMx looks like it will let me use and configure all the ADC's I need.