McuxPresso Binary file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

McuxPresso Binary file

跳至解决方案
1,562 次查看
claudiobrunelli
Contributor II

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

0 项奖励
1 解答
1,556 次查看
ErichStyger
Senior Contributor V

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

在原帖中查看解决方案

0 项奖励
3 回复数
1,557 次查看
ErichStyger
Senior Contributor V

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

0 项奖励
1,548 次查看
claudiobrunelli
Contributor II

Hi ErichS

As usual, your tips & tricks are very very precious.

Thanks

Claudio

0 项奖励
1,527 次查看
ErichStyger
Senior Contributor V

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

0 项奖励