Skip to main content
Lukasz rcc
Associate II
March 19, 2018
Question

minimum configuration cubeMX discovery board

  • March 19, 2018
  • 6 replies
  • 1207 views
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.

    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    March 19, 2018
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Lukasz rcc
    Associate II
    March 19, 2018
    Posted on March 19, 2018 at 17:57

    but I want to have minimal configuration

    Tesla DeLorean
    Guru
    March 19, 2018
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Bogdan Golab
    Lead
    March 19, 2018
    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.

    Lukasz rcc
    Associate II
    March 20, 2018
    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?