cancel
Showing results for 
Search instead for 
Did you mean: 

minimum configuration cubeMX discovery board

Lukasz rcc
Associate II
Posted on March 19, 2018 at 17:39

Hi,

What is the minimum cubeMX configuration on stm32L4 discovery board? I want to have clean project without peripheral, only with debugging functionality.

6 REPLIES 6
Posted on March 19, 2018 at 17:45

There are project templates and examples using HAL below the Cube repository

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on March 19, 2018 at 17:57

but I want to have minimal configuration

Posted on March 19, 2018 at 19:21

If you would like to use CubeMX just enable single LED. The current CubeMX can initialize the on board stuff but you can skip it, and instead select port where the LED is connected to, configure it as output and use HAL_GPIO_WritePin() to turn on the LED.

Not sure what you want to achieve  - I guess you would like to study the generated config starting from the scratch, and add more resources as you go...

You can also use register based approach if you will.

Posted on March 19, 2018 at 18:29

Not difficult to take a hatchet to the template and make a tighter one if required.

Or are you looking for an .IOC file template to feed CubeMX?

>> stm32L4 discovery board

Describes about 4 boards

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Lukasz rcc
Associate II
Posted on March 20, 2018 at 08:20

I have solved problem:

set all free pins as analog in configuration

pinout-> SYS -> Serial Wire

and I have clean configuration on my discovery board. Is it proper solution?