Hi
I have just created a new test proget with the xpresso ide. In the attached file ther's the corresponding binary file and a little screenshot of it.
Does anyone to explain me why I find in this file the information that I lighted ? Is this correct to find this kind of information in the binary file ? Is there any setting to make to avoid it ?
Thanks in advance.
Claudio
Solved! Go to Solution.
Hi @claudiobrunelli ,
>>Does anyone to explain me why I find in this file the information that I lighted ?
Yes. It is because you have asserts enabled in your project.
>>Is this correct to find this kind of information in the binary file ?
Yes. Because you are using asserts the way it is implemented in the SDK
>>Is there any setting to make to avoid it ?
Yes, disable asserts with the NDEBUG setting. See https://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/
PS: There is a nice hex editor plugin in Eclipse too. Have a look at https://mcuoneclipse.com/2012/04/02/5-best-eclipse-plugins-4-ehep/
I hope this helps,
Erich
Hi @claudiobrunelli ,
>>Does anyone to explain me why I find in this file the information that I lighted ?
Yes. It is because you have asserts enabled in your project.
>>Is this correct to find this kind of information in the binary file ?
Yes. Because you are using asserts the way it is implemented in the SDK
>>Is there any setting to make to avoid it ?
Yes, disable asserts with the NDEBUG setting. See https://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/
PS: There is a nice hex editor plugin in Eclipse too. Have a look at https://mcuoneclipse.com/2012/04/02/5-best-eclipse-plugins-4-ehep/
I hope this helps,
Erich
Hi ErichS
As usual, your tips & tricks are very very precious.
Thanks
Claudio
Hi @claudiobrunelli ,
thanks you :-).
To add to the answer: there reasons for the strings are the asserts which use things like __FILE__ and __LINE__ for the printf() messages: they get stored in FLASH.
Erich