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?
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.
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.