Skip to main content
Rogers.Gary
Senior II
December 1, 2015
Question

Using CubeMx with STM32L476 Discovery

  • December 1, 2015
  • 1 reply
  • 505 views
Posted on December 01, 2015 at 17:05

Hi,

I watched the intro video on the STM32L476 Discovery board, and it's clear that teh LCD screen can be unplugged from the DIP socket and those pins used for I/O. I have a need for a couple of ADC inputs and removing the LCD should free them up.

I want to use Cube to help configure and generate code, After selecting this board, I see nothing but yellow and red exclamations besides ADC1, ADC2, and ADC3. I get the impression I cannot use them? How can this be changed so I can determine which are free to use. unchecking the box at the top (keep configuration) yields no result.

There's nothing in the Discovery user guide either.

Can anyone offer some suggestions or help on this?

Thanks.

#stm32l476
This topic has been closed for replies.

1 reply

Nickname5522_O
Visitor II
December 8, 2015
Posted on December 08, 2015 at 11:24

Hi roofie01,

STM32CubeMx give the user the ability to change the default mapping of pins. So, if you have no need to LCD, you can change the mapping of pins ''PA6/7, PC4/5, PB0/1''. After that, you can enable ADCx channels.

In Appendix A of 

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00104712.pdf

, you find more details of pin assignment.

-Shahrzad-