<?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>Kinetis Microcontrollers中的主题 Re: elftosb: string parameter</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/elftosb-string-parameter/m-p/549236#M33458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the solution is to use the "extern" keyword:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14682264731789317" data-renderedposition="60_8_1192_96" jivemacro_uid="_14682264731789317" modifiedtitle="true"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sources&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; APPLICATION_BINARY = extern(0)&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;&lt;/P&gt;&lt;P&gt;this makes it possible to call the elftosb tool with the binary file as parameter:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14682267079254007 jive_text_macro" data-renderedposition="234_8_1192_16" jivemacro_uid="_14682267079254007"&gt;&lt;P&gt;&lt;SPAN class="searchwordb9d1b5" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;[developer@localhost&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchwordb86120" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;debug]$./elftosb&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchwordb824f5" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-V&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword7160ad" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-f&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword3546ab" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;kinetis&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword646a7" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-z&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword8bfdc" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-c&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchworde488f7" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;command_file.bd&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword7ad96" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-o&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchworde1ff3b" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;led_demo_bin_zero_key.sb&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchworde428ce" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-DAPPLICATION_OFFSET=0xA000&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchworddfe845" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;$PWD/gpio_led_output_frdmk64f.bin&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 08:45:11 GMT</pubDate>
    <dc:creator>peterruesch</dc:creator>
    <dc:date>2016-07-11T08:45:11Z</dc:date>
    <item>
      <title>elftosb: string parameter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/elftosb-string-parameter/m-p/549235#M33457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble to set a string constant via a command line argument.&lt;/P&gt;&lt;P&gt;I want to specify the firmware binary file as a parameter when calling elftosb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;invocation elftosb:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14678988881974820 jive_macro_code jive_text_macro" data-renderedposition="212_50_798_80" jivemacro_uid="_14678988881974820"&gt;&lt;P&gt;[developer@localhost linux]$ ./elftosb --debug --command command_file.bd --output output.sb -DAPPLICATION_OFFSET=0xA000 -DAPPLICATION_BINARY=debug.bin&lt;/P&gt;&lt;P&gt;failed to open source file: xyz.bin (ignoring for now)&lt;/P&gt;&lt;P&gt;APPLICATION_OFFSET = 40960&lt;/P&gt;&lt;P&gt;APPLICATION_BINARY = 0&lt;/P&gt;&lt;P&gt;error: line 20: error opening source 'APPLICATION_BINAR&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my command_file.bd:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14678989675843610" data-renderedposition="344_50_798_448" jivemacro_uid="_14678989675843610" modifiedtitle="true"&gt;&lt;P&gt;constants&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; APPLICATION_OFFSET = 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sources&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; APPLICATION_BINARY = "xyz.bin";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;section (0)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; erase all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; info "APPLICATION_OFFSET = $(APPLICATION_OFFSET)";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; info "APPLICATION_BINARY = $(APPLICATION_BINARY)";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (0 != APPLICATION_OFFSET)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load APPLICATION_BINARY &amp;gt; APPLICATION_OFFSET;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error "-DAPPLICATION_OFFSET=0x?????? must be supplied";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have to "xyz.bin" replaced dynamically as it works great with the APPLICATION_OFFSET value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 13:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/elftosb-string-parameter/m-p/549235#M33457</guid>
      <dc:creator>peterruesch</dc:creator>
      <dc:date>2016-07-07T13:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: elftosb: string parameter</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/elftosb-string-parameter/m-p/549236#M33458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the solution is to use the "extern" keyword:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14682264731789317" data-renderedposition="60_8_1192_96" jivemacro_uid="_14682264731789317" modifiedtitle="true"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sources&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; APPLICATION_BINARY = extern(0)&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;&lt;/P&gt;&lt;P&gt;this makes it possible to call the elftosb tool with the binary file as parameter:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14682267079254007 jive_text_macro" data-renderedposition="234_8_1192_16" jivemacro_uid="_14682267079254007"&gt;&lt;P&gt;&lt;SPAN class="searchwordb9d1b5" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;[developer@localhost&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchwordb86120" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;debug]$./elftosb&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchwordb824f5" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-V&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword7160ad" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-f&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword3546ab" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;kinetis&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword646a7" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-z&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword8bfdc" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-c&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchworde488f7" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;command_file.bd&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchword7ad96" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-o&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchworde1ff3b" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;led_demo_bin_zero_key.sb&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchworde428ce" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;-DAPPLICATION_OFFSET=0xA000&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="searchworddfe845" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;$PWD/gpio_led_output_frdmk64f.bin&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 08:45:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/elftosb-string-parameter/m-p/549236#M33458</guid>
      <dc:creator>peterruesch</dc:creator>
      <dc:date>2016-07-11T08:45:11Z</dc:date>
    </item>
  </channel>
</rss>

