Skip to main content
antonio239955_stm1
Associate II
September 25, 2017
Solved

NUCLEO32+STM32L011K4+MXCUBE Debug Issues

  • September 25, 2017
  • 2 replies
  • 1659 views
Posted on September 25, 2017 at 12:41

Hi guys!

I'm a completely newbie to the STM32 and to make some experiments I've bought a nucleo 32 board based on the STM32L011K4 microcontroller.

Then I've downloaded and installed the Atollic TRUEStudio, the STCubeMx and the STM32L0 libraries.

Then I've generated a simple project just to see the increment of a variable into the main loop.

The things I've done to generate the project are just the choice of the corresponding board and the setting of the TrueStudio as used toolchain.

Once made, compiled and downloaded the code I see that the debugger doesn't start at the first instruction of the main function but it jumps to the hal initialization where it gets lost.

Is there any other setting I need to do in the MXCube.

It is not enough to choose the board and the developement tool to get a simple working main loop?

I don't need to use any other peripheral.

Is there anybody willing to give me some advice.

Thank You very much

Antonio
    This topic has been closed for replies.
    Best answer by Imen.D
    Posted on September 27, 2017 at 12:41

    Hello

    Pessina.Antonio

    ,

    You may find firmware examples in the STM32CubeL0 package using the

    STM32L011K4-Nucleo

    that can help you in your project: STM32Cube_FW_L0_V1.0\Projects\STM32L011K4-Nucleo\Examples

    All examples in the package integrate the IDEs: EWARM, MDK, SW4STM You can select the one suitable for you.

    Otherwise, I recommend you to select the

    http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/sw4stmhtml

    free toolchain as it isa free multi-OS software development environment based on Eclipse.

    You may start from the template project in the STM32CubeL0 package, review the structure of the projects provided in the Templates for supported tool chains,and then add your own modifications (new functions, new files)...

    You have also the demonstration under STM32Cube_FW_L0_V1.0\Projects\STM32L011K4-Nucleo\Demonstrations.

    I recommend, also, that you refer tothe user Manual UM1718 'STM32CubeMx for STM32 configuration and initialization C code generation' for more details about CubeMx (in the section: 4.8 Project Settings window) and the generated files options allows defining theperipheral initialization.

    If you still have problems,you can post your code or .ioc file in the community, it will be easier for user forum to help/answer to you.

    Best Regards

    Imen

    2 replies

    Imen.DBest answer
    Technical Moderator
    September 27, 2017
    Posted on September 27, 2017 at 12:41

    Hello

    Pessina.Antonio

    ,

    You may find firmware examples in the STM32CubeL0 package using the

    STM32L011K4-Nucleo

    that can help you in your project: STM32Cube_FW_L0_V1.0\Projects\STM32L011K4-Nucleo\Examples

    All examples in the package integrate the IDEs: EWARM, MDK, SW4STM You can select the one suitable for you.

    Otherwise, I recommend you to select the

    http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/sw4stmhtml

    free toolchain as it isa free multi-OS software development environment based on Eclipse.

    You may start from the template project in the STM32CubeL0 package, review the structure of the projects provided in the Templates for supported tool chains,and then add your own modifications (new functions, new files)...

    You have also the demonstration under STM32Cube_FW_L0_V1.0\Projects\STM32L011K4-Nucleo\Demonstrations.

    I recommend, also, that you refer tothe user Manual UM1718 'STM32CubeMx for STM32 configuration and initialization C code generation' for more details about CubeMx (in the section: 4.8 Project Settings window) and the generated files options allows defining theperipheral initialization.

    If you still have problems,you can post your code or .ioc file in the community, it will be easier for user forum to help/answer to you.

    Best Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    antonio239955_stm1
    Associate II
    October 3, 2017
    Posted on October 03, 2017 at 13:57

    Hello Imen,

    thank you very much for your advices.

    I would like to use TrueSTUDIO and send you the zipfile of my project, but I don't find any command to insert it in this message.

    Have a nice day

    Ciao

    Antonio 

    Technical Moderator
    October 3, 2017
    Posted on October 03, 2017 at 14:06

    Hi,

    When 

    you reply to the post, please 

    click on ''Use advanced editor''

    link at the top right of the editor window

    , then you can add the attachment.

    0690X00000608SlQAI.png

    Kind Regards,

    Imen.

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    antonio239955_stm1
    Associate II
    October 10, 2017
    Posted on October 10, 2017 at 10:36

    Sorry but there's no way to attach files

    Antonio