2017-09-25 03:41 AM
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 muchAntonioSolved! Go to Solution.
2017-09-27 03:41 AM
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\ExamplesAll 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
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
2017-09-27 03:41 AM
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\ExamplesAll 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
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
2017-10-03 04:57 AM
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
2017-10-03 07:06 AM
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.
Kind Regards,
Imen.
2017-10-10 03:36 AM
Sorry but there's no way to attach files
Antonio
2017-10-10 05:02 AM
Use the Thread View, you should be able to reply and add an attachment or edit your original post to ado one to that.
See bottom left corner below the edit box.
2017-10-10 07:32 AM
Thank you Clive,
Here you can find the zip file of a very simple True STUDIO projectcreated with the STM32CubeMX.
My target board is a Nucleo32 (STM32L011K4 based).
I would like to get a simple board initialization and the increment of a variable into the main loop.
When I launch the debugger, the program doesn't start at main, and locks into the GPIO initialization.
I've followed (I hope) the STM32CubeMX User Manual and her's the project.
Is there anything I have to do in the STM32CUBE settings.
Am I missing something?
Sorry, but I'm getting slightly insane
Thank You
Antonio
________________ Attachments : test.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyNt&d=%2Fa%2F0X0000000b6s%2Fuc7v2hVUWjxLZ7X6clxfBYyvM7GXLEFoAV7oq6WAYgQ&asPdf=false