<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: text string in generated binary file in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447613#M4413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thanks !&lt;/P&gt;&lt;P&gt;I was not aware of this pdf folder !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2015 14:29:14 GMT</pubDate>
    <dc:creator>guylejeune</dc:creator>
    <dc:date>2015-12-03T14:29:14Z</dc:date>
    <item>
      <title>text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447603#M4403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when compiling the same project from different place on the computer, we get different binaries.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Digging in the .elf file, it turns out some computer paths are included:&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;00002511 &amp;lt;__func__.8045&amp;gt;: &amp;nbsp;&amp;nbsp;&amp;nbsp; 2511:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4e49 5f54 5953 5f53 6e45 6261 656c 5249&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INT_SYS_EnableIR &amp;nbsp;&amp;nbsp;&amp;nbsp; 2521:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0051 682f 6d6f 2f65 656c 656a 6e75 2f65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q./home/lejeune/ &amp;nbsp;&amp;nbsp;&amp;nbsp; 2531:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 694b 656e 6974 2f73 6554 7473 685f 6861&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Kinetis/Test_hah &amp;nbsp;&amp;nbsp;&amp;nbsp; 2541:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3361 532f 4b44 702f 616c 6674 726f 2f6d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a3/SDK/platform/ &amp;nbsp;&amp;nbsp;&amp;nbsp; 2551:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6168 2f6c 6e69 2f63 7366 5f6c 6f70 7472&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hal/inc/fsl_port &amp;nbsp;&amp;nbsp;&amp;nbsp; 2561:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 685f 6c61 682e 7000 6e69 3c20 3320 5532&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _hal.h.pin &amp;lt; 32U &amp;nbsp;&amp;nbsp;&amp;nbsp; 2571:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2f00 6f68 656d 6c2f 6a65 7565 656e 4b2f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./home/lejeune/K &amp;nbsp;&amp;nbsp;&amp;nbsp; 2581:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6e69 7465 7369 542f 7365 5f74 6168 6168&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inetis/Test_haha &amp;nbsp;&amp;nbsp;&amp;nbsp; 2591:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2f33 4453 2f4b 6c70 7461 6f66 6d72 732f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/SDK/platform/s &amp;nbsp;&amp;nbsp;&amp;nbsp; 25a1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7379 6574 2f6d 6e69 2f63 7366 5f6c 6e69&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ystem/inc/fsl_in &amp;nbsp;&amp;nbsp;&amp;nbsp; 25b1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6574 7272 7075 5f74 616d 616e 6567 2e72&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; terrupt_manager. &amp;nbsp;&amp;nbsp;&amp;nbsp; 25c1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0068 2030 3d3c 6920 7172 754e 626d 7265&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h.0 &amp;lt;= irqNumber &amp;nbsp;&amp;nbsp;&amp;nbsp; 25d1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6900 7172 754e 626d 7265 3c20 203d 5346&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .irqNumber &amp;lt;= FS &amp;nbsp;&amp;nbsp;&amp;nbsp; 25e1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5f4c 4546 5441 5255 5f45 4e49 4554 5252&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L_FEATURE_INTERR &amp;nbsp;&amp;nbsp;&amp;nbsp; 25f1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5055 5f54 5249 5f51 414d 0058 682f 6d6f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPT_IRQ_MAX./hom &amp;nbsp;&amp;nbsp;&amp;nbsp; 2601:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2f65 656c 656a 6e75 2f65 694b 656e 6974&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e/lejeune/Kineti &amp;nbsp;&amp;nbsp;&amp;nbsp; 2611:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2f73 6554 7473 685f 6861 3361 532f 4b44&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s/Test_haha3/SDK &amp;nbsp;&amp;nbsp;&amp;nbsp; 2621:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 702f 616c 6674 726f 2f6d 6168 2f6c 6e69&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /platform/hal/in &amp;nbsp;&amp;nbsp;&amp;nbsp; 2631:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2f63 7366 5f6c 7067 6f69 685f 6c61 682e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c/fsl_gpio_hal.h&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit further, we even get some clear text:&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;00002642 &amp;lt;__func__.6255&amp;gt;: &amp;nbsp;&amp;nbsp;&amp;nbsp; 2642:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4f50 5452 485f 4c41 535f 7465 754d 4d78&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_HAL_SetMuxM &amp;nbsp;&amp;nbsp;&amp;nbsp; 2652:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 646f 0065 0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ode...&amp;nbsp; 00002658 &amp;lt;gpio1_InpConfig0&amp;gt;: &amp;nbsp;&amp;nbsp;&amp;nbsp; 2658:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 020c 0000 0001 0101 0000 0000 ffff ffff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ................ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&amp;nbsp; 00002670 &amp;lt;gpio1_OutConfig0&amp;gt;: &amp;nbsp;&amp;nbsp;&amp;nbsp; 2670:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0100 0000 0000 0000 0001 0001 ffff ffff&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ................ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... &amp;nbsp;&amp;nbsp;&amp;nbsp; 2688:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2e2e 472f 6e65 7265 7461 6465 435f 646f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ../Generated_Cod &amp;nbsp;&amp;nbsp;&amp;nbsp; 2698:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2f65 736f 3161 632e 6400 7669 6469 7265&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e/osa1.c.divider &amp;nbsp;&amp;nbsp;&amp;nbsp; 26a8:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2120 203d 5530 4f00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; != 0U.&amp;nbsp; 000026af &amp;lt;__func__.8420&amp;gt;: &amp;nbsp;&amp;nbsp;&amp;nbsp; 26af:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 534f 5f41 6954 656d 6e49 7469 2c00 6620&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_TimeInit., f &amp;nbsp;&amp;nbsp;&amp;nbsp; 26bf:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6e75 7463 6f69 3a6e 0020 7361 6573 7472&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unction: .assert &amp;nbsp;&amp;nbsp;&amp;nbsp; 26cf:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6f69 206e 2522 2273 6620 6961 656c 3a64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ion "%s" failed: &amp;nbsp;&amp;nbsp;&amp;nbsp; 26df:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6620 6c69 2065 2522 2273 202c 696c 656e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file "%s", line &amp;nbsp;&amp;nbsp;&amp;nbsp; 26ef:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2520 2564 2573 0a73 4300 0000 0800&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d%s%s..C...&amp;nbsp; 000026fc &amp;lt;_global_impure_ptr&amp;gt;: &amp;nbsp;&amp;nbsp;&amp;nbsp; 26fc:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0408 1fff 2d23 2b30 0020 6c68 004c 6665&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....#-0+ .hlL.ef &amp;nbsp;&amp;nbsp;&amp;nbsp; 270c:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4567 4746 3000 3231 3433 3635 3837 4139&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gEFG.0123456789A &amp;nbsp;&amp;nbsp;&amp;nbsp; 271c:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4342 4544 0046 3130 3332 3534 3736 3938&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCDEF.0123456789 &amp;nbsp;&amp;nbsp;&amp;nbsp; 272c:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6261 6463 6665 0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abcdef.. &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step to reproduce:&lt;/P&gt;&lt;P&gt; - new Kinetis project, with Processor Expert&lt;/P&gt;&lt;P&gt; - our board: TWR-K60D100M&lt;/P&gt;&lt;P&gt; - compiler with size optimization (-Os)&lt;/P&gt;&lt;P&gt; - use of the fsl_gpio component&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use a KDS 3.0 &amp;amp; KDSK 1.3.0 for Linux (Centos 7).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are beginning with KDS &amp;amp; Eclipse, so are we missing something (particular option somewhere, ... ) ?&lt;/P&gt;&lt;P&gt;Removing the default debugging option (going from default -g3 to none) doesn't bring any change.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I don't want to leave it the way it is:&lt;/P&gt;&lt;P&gt; - same source produce different output ;&lt;/P&gt;&lt;P&gt; - we try to do size optimization.. and this doesn't help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 15:40:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447603#M4403</guid>
      <dc:creator>guylejeune</dc:creator>
      <dc:date>2015-11-26T15:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447604#M4404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project generates the .elf file.&lt;/P&gt;&lt;P&gt;The .elf includes the code and debug information.&lt;/P&gt;&lt;P&gt;By debug information I mean all information that the debugger needs to debug the application.&lt;/P&gt;&lt;P&gt;This is including the path of all source files in order to display the file associated to the executed code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the same project is moved to another folder, the elf file will change too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can generate a Srecord file (bin, hex, ...) containing code only without debug info.&lt;/P&gt;&lt;P&gt;To enable the Hex/Bin Converter you need to enable the "Create flash image"&amp;nbsp; option under C/C++ build - Settings - Toolchains tab.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="106484_106484.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120841iD2584CF7C0956E6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="106484_106484.png" alt="106484_106484.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52051i91FF6BFC218B33AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;now back to Tool Settings tab, a new config is available:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cross ARM GNU create Flash Image&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="106485_106485.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120842i5F7FE92A93238455/image-size/large?v=v2&amp;amp;px=999" role="button" title="106485_106485.png" alt="106485_106485.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52063i6C9BFE1A60EB4ADF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it the option/process you're looking for ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:14:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447604#M4404</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-11-27T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447605#M4405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for looking into this.&lt;/P&gt;&lt;P&gt;The extract of the elf file I've printed above are included in the binary file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I see the following line in the .elf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14486319024243166" data-renderedposition="155_8_1232_16" jivemacro_uid="_14486319024243166"&gt;&lt;P&gt;&lt;SPAN class="number"&gt;2511:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4e49 5f54 &lt;SPAN class="number"&gt;5953&lt;/SPAN&gt; 5f53 6e45 &lt;SPAN class="number"&gt;6261&lt;/SPAN&gt; 656c &lt;SPAN class="number"&gt;5249&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INT_SYS_EnableIR&amp;nbsp; 
&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find the corresponding data in the generated binary:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14486319594263814 jive_text_macro" data-renderedposition="213_8_1232_16" jivemacro_uid="_14486319594263814"&gt;&lt;P&gt;0002510 495b 544e 535f 5359 455f 616e 6c62 4965&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I still end-up with paths and other "printf-like" text in ascii in my binary files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea on how to remove them ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:50:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447605#M4405</guid>
      <dc:creator>guylejeune</dc:creator>
      <dc:date>2015-11-27T13:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447606#M4406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the suggested action is not solving the problem (see my post from Nov 27).&lt;/P&gt;&lt;P&gt;Is it possible to remove the "assumed answered tag" ?&lt;/P&gt;&lt;P&gt;It looks it is the same problem as &lt;A _jive_internal="true" href="https://community.nxp.com/thread/380496"&gt;https://community.freescale.com/thread/380496&lt;/A&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 10:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447606#M4406</guid>
      <dc:creator>guylejeune</dc:creator>
      <dc:date>2015-11-30T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447607#M4407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the Editor used to open the bin and elf file ?&lt;/P&gt;&lt;P&gt;By default inside KDS it's not possible to open these files.&lt;/P&gt;&lt;P&gt;I've UltraEdit and I can open the elf and bin files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you tried to set the option -j .text and -j .data ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 13:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447607#M4407</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-11-30T13:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447608#M4408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm opening the elf file with the objdump command: &lt;EM&gt;objdump -d file.elf | less&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the suggested options (-j .text and -j .data) to the flash image creator (objcopy) effectively removes all paths and ascii text from the binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this can not be a functional binary file:&lt;/P&gt;&lt;P&gt; - the vector table is removed as well ;&lt;/P&gt;&lt;P&gt; - the paths and ascii text are used by the rest of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is not the solution we are looking for.&lt;/P&gt;&lt;P&gt;These paths &amp;amp; ascii text should not be part of the .elf file (they are not debug information but real code part). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 13:59:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447608#M4408</guid>
      <dc:creator>guylejeune</dc:creator>
      <dc:date>2015-11-30T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447609#M4409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking deeper and deeper, it seems to come from the assert function, in assert.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14488960251505670 jive_text_macro" data-renderedposition="50_8_1232_400" jivemacro_uid="_14488960251505670" modifiedtitle="true"&gt;&lt;P&gt;#ifdef NDEBUG /* required by ANSI standard */&lt;/P&gt;&lt;P&gt;# define assert(__e) ((void)0)&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;# define assert(__e) ((__e) ? (void)0 : __assert_func (__FILE__, __LINE__, ifde\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __ASSERT_FUNC, #__e))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# ifndef __ASSERT_FUNC&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Use g++'s demangled names in C++.&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#&amp;nbsp; if defined __cplusplus &amp;amp;&amp;amp; defined __GNUC__&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; define __ASSERT_FUNC __PRETTY_FUNCTION__&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* C99 requires the use of __func__.&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#&amp;nbsp; elif __STDC_VERSION__ &amp;gt;= 199901L&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; define __ASSERT_FUNC __func__&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Older versions of gcc don't have __func__ but can use __FUNCTION__.&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#&amp;nbsp; elif __GNUC__ &amp;gt;= 2&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; define __ASSERT_FUNC __FUNCTION__&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* failed to detect __func__ support.&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#&amp;nbsp; else&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; define __ASSERT_FUNC ((char *) 0)&lt;/P&gt;&lt;P&gt;#&amp;nbsp; endif&lt;/P&gt;&lt;P&gt;# endif /* !__ASSERT_FUNC */&lt;/P&gt;&lt;P&gt;#endif /* !NDEBUG *&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So passing NDEBUG as preprocessor flag seems to remove the text and paths.&lt;/P&gt;&lt;P&gt;The whole thing compiles and seems to run.&amp;nbsp; The code size is divided by a factor 2 or 3.&lt;/P&gt;&lt;P&gt;But how safe is it safe to pass this flag ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 15:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447609#M4409</guid>
      <dc:creator>guylejeune</dc:creator>
      <dc:date>2015-11-30T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447610#M4410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the following:&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;2.5 assert—macro for debugging diagnostics&lt;/P&gt;&lt;P&gt;Synopsis&lt;/P&gt;&lt;P&gt;#include &amp;lt;assert.h&amp;gt;&lt;/P&gt;&lt;P&gt;void assert(int expression);&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;Use this macro to embed debuggging diagnostic statements in your programs. The argument&lt;/P&gt;&lt;P&gt;expression should be an expression which evaluates to true (nonzero) when your program&lt;/P&gt;&lt;P&gt;is working as you intended.&lt;/P&gt;&lt;P&gt;When expression evaluates to false (zero), assert calls abort, after first printing a message&lt;/P&gt;&lt;P&gt;showing what failed and where:&lt;/P&gt;&lt;P&gt;Assertion failed: expression, file filename, line lineno, function: func&lt;/P&gt;&lt;P&gt;If the name of the current function is not known (for example, when using a C89 compiler&lt;/P&gt;&lt;P&gt;that does not understand func ), the function location is omitted.&lt;/P&gt;&lt;P&gt;The macro is defined to permit you to turn off all uses of assert at compile time by defining&lt;/P&gt;&lt;P&gt;NDEBUG as a preprocessor variable. If you do this, the assert macro expands to&lt;/P&gt;&lt;P&gt;(void(0))&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example didn't used the assert function.&lt;/P&gt;&lt;P&gt;This is why I didn't reproduced the problem.&lt;/P&gt;&lt;P&gt;In addition to the NDEBUG macro you can select the linker option -s (Omit all symbol information).&lt;/P&gt;&lt;P&gt;By this way all debug information will be removed at elf file - if you need&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 16:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447610#M4410</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-11-30T16:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447611#M4411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;thank you for your confirmation !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me where the information from your last post can be found ?&lt;/P&gt;&lt;P&gt;I can't find it in the KDS doc nor the KDSK / PE help...&amp;nbsp; where should I look for it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 10:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447611#M4411</guid>
      <dc:creator>guylejeune</dc:creator>
      <dc:date>2015-12-03T10:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447612#M4412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good question ... I don't remember what I did 2 days ago ... :smileycry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes ...&lt;/P&gt;&lt;P&gt;Please have a look to the folder:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \KDS_3.0.0\toolchain\share\doc\gcc-arm-none-eabi\pdf&lt;/P&gt;&lt;P&gt;The libc.pdf manual contains the info page 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 13:23:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447612#M4412</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-12-03T13:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447613#M4413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thanks !&lt;/P&gt;&lt;P&gt;I was not aware of this pdf folder !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 14:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447613#M4413</guid>
      <dc:creator>guylejeune</dc:creator>
      <dc:date>2015-12-03T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447614#M4414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assertions are for debugging.&amp;nbsp; You can remove them, but will not be able to get debugging assertions or messages after that.&amp;nbsp; See &lt;A href="https://en.wikipedia.org/wiki/Assert.h" title="https://en.wikipedia.org/wiki/Assert.h"&gt;assert.h - Wikipedia, the free encyclopedia&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 20:15:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/447614#M4414</guid>
      <dc:creator>patrickwood</dc:creator>
      <dc:date>2015-12-03T20:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: text string in generated binary file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/1219993#M10165</link>
      <description>&lt;P&gt;If you want (or need) to tweak the assert() functionality, this one might be helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2021/01/23/assert-__file__-path-and-other-cool-gnu-gcc-tricks-to-be-aware-of/" target="_blank"&gt;assert(), __FILE__, Path and other cool GNU gcc Tricks to be aware of | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 06:46:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/text-string-in-generated-binary-file/m-p/1219993#M10165</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-01-24T06:46:13Z</dc:date>
    </item>
  </channel>
</rss>

