I have a working Debug configuration. The Release configuration does not build because it fails to include a header file located in the same folder the source code is.
The path to the corresponding directory is included in both cases and actually in both cases I can see the corresponding gcc parameter (-I"/path/to/src") including it in "All options" ... BUT in the Release configuration the parameter is not included in the subdir.mk file. Furthermore, if I edit subdir.mk to include this parameter, it builds.
What may be wrong here?
What I found out now is that in my case (Linux version) Simplicity Studio does not update the building after the configuration has been changed. For example, if I change optimze to -Os, in the building process I still get -O0.
Thank you for contacting Silicon Labs regarding your Release configuration build problem. Thank you for bringing this to our attention. I have created a ticket in out internal system to have our Simplicity Studio team take a look at the problem. In the meantime, I recommend using the workaround that you also mentioned, which is to update the subdir.mk file manually.
Please let me know if you have any further questions.
Have you tried cleaning your project and rebuilding? Also, be sure that your active configuration is the Release configuration. You should be able to see the current configuration next to the project name.
To change the configuration, select Project > Build Configuration > Set Active.
Could someone explain step by step how to create a release configuration that is working please ?
I know that there are a lot of parameters that we can modify and I am a bit lost.
Thank you in advance.
Not sure I understand you question correctly or not, when you create a 'silicon labs MCU project' project, I think you would get a step like below picture:
I did it but I had some errors of files that were missing. I had to copy symbols and includes from GNU ARM - Default/Debug to GNU ARM - Release.
But now I am asking if it is possible to release my project to the my development BGM13S22 board ? If yes, how can I do it ? Simply by pressing "Build" icon ?
Thank you in advance.