Porting an ST CubeIDE project

Sysprogs forums Forums VisualGDB Porting an ST CubeIDE project

This topic contains 1 reply, has 2 voices, and was last updated by  support 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32844

    dmitri.r
    Participant

    Hi,

    Im trying to port a CubeIDE generated project to VisualGDB .

    I have managed to set the GDB to use  the same toolchain as the CubeIDE.

    After compiling the imported project  Ive noticed that the RAM and FLASH usage is not equal as in the CubeIDE compile, hence the build is different.

    How can I set the VisualGDB to build the project exactly the same as the CubeIDE ?

    Best Regards,

     

    #32847

    support
    Keymaster

    Hi,

    Most likely, some build parameters (e.g. optimizations, libraries, etc.) are different. Since both VisualGDB and STM32CubeIDE use the same compiler (gcc), you can get them to produce nearly identical output (the only difference will be the order of symbols in the image), however it will require comparing build command lines side-by-side. We have a detailed tutorial showing how to do it for another compiler here.

    Another option would be to use the Embedded Memory Explorer to quickly compare the footprints of 2 builds to see if there is any obvious difference (e.g. some symbols only present in one file, or every symbol being proportionally larger, implying different optimization).

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.