Sunday , 18 April 2021
iten

Release-Debug build


Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2551
    pedro
    Participant

    Hi Carmine,

    I have a previous (little) experience with Eclipse and gcc. I’m using Kubuntu 14.04 , Eclipse Mars and all the installation from your book step by step.

    When building a project I had always use Build configuration->Set active->Release.

    I want to use the debugger, so I think I must use the Debug configuration. But there is no file project.bin in the Debug folder.
    Only after I build the project with the Release option I can find a project.bin file in the Release folder. I can then flash the board. Am I missing something?

    Another question: what are the advantages of using QSTlink2 instead of texane stlink in linux?

    Saluti,
    Pedro.

    #2562
    Carmine Noviello
    Keymaster

    Hi Pedro,
    Well, technically speaking, Debug and Release are just two project configurations, which essentially differ for two things: the debug level (the Debug one is compiled with the -g3 options that adds more debug “information” to the binary) and the optimization level. But both of the two can be flashed on the MCU using OpenOCD.

    When you compile the project, you should find inside both the Debug and Release folders a file named “.elf“: that one is the file to flash on the MCU using OpenOCD or other flash utility tools.

    About texane and QSTlink2. They essentially do the same think, but I decided to talk about QSTLink in Linux because it also has a GUI that simplifies flashing procedure. However, OpenOCD is the only tool you need at the end.

    #2572
    pedro
    Participant

    Grazie Carmine,

    Adesso è tuuto più chiaro.

    Saluti,
    Pedro.

    1 user thanked author for this post.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.