Skip to main content
Rav K
Associate
June 29, 2018
Question

STM32Cube makefile project debugging in Atollic

  • June 29, 2018
  • 2 replies
  • 1022 views
Posted on June 29, 2018 at 18:38

I have generated a makefile project with cubemx. Furthermore, I was able to import that project in to Atollic (New->Makefile Project with Exisiting Code).

I am able to successfully compile the project, however I am unable to debug i.e. I would like to use breakpoints, look at register values, etc.

Has anyone else encountered this issue?

    This topic has been closed for replies.

    2 replies

    Vitaliy Chernobay
    Senior
    July 2, 2018
    Posted on July 02, 2018 at 20:22

    https://www.youtube.com/watch?v=Qlue89q-rWU&t=1462s

     
    Rav K
    Rav KAuthor
    Associate
    July 3, 2018
    Posted on July 03, 2018 at 15:40

    Thank you for your response. 

    I was able to follow the video, however this specific video did not go through the option of debugging a makefile project. I would like to use a makefile project along with ST-LINK to debug my code? Does this option exist with TrueSTUDIO?

    Thanks.

    Cyril FENARD
    ST Employee
    July 5, 2018
    Posted on July 05, 2018 at 10:20

    Hi

    ravi.kevat

    ,

    Let me share what I did:

    With CubeMx tool

    - Creation of the Makefile project for L476RG

    With TrueSTUDIO

    - File, New C Project, Empty project with Atollic ARM Tools, Next and Finish

    - File, New Folder, link to alternate location (where project from CubeMx is), Finish

    - Creation in Build Targets (build, and clean), as following for

    make --print-directory -C ../../NUCLEO-L476RG -f Makefile GCC_PATH=&39c:/gcc-arm/bin/&39

    (Fixed relative path from workspace to actual source code location)

    - Built/cleaned with these targets

    - Created Debug Setting, Embedded C/C++ Application, Target Settings with the Device (NUCLEO-L476RG in my case) with Debug probe set as ST-LINK probe with SWD

    I could start a debug session.

    Note rebuild when relaunch has to fixed.

    Hoping that gives idea to follow.

    Regards.

    Cyril