<?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>MPC5xxxのトピックHow do I get the binary code of a function using MPC5604</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1195265#M16799</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I want to convert a function to binary coded form, like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.bmp" style="width: 958px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132085iE4AFD4F4C15478AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.bmp" alt="1.bmp" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.bmp" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132084iCAB928F79D8FD80A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.bmp" alt="2.bmp" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 07:44:41 GMT</pubDate>
    <dc:creator>1475849560</dc:creator>
    <dc:date>2020-12-08T07:44:41Z</dc:date>
    <item>
      <title>How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1195265#M16799</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to convert a function to binary coded form, like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.bmp" style="width: 958px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132085iE4AFD4F4C15478AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.bmp" alt="1.bmp" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.bmp" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132084iCAB928F79D8FD80A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.bmp" alt="2.bmp" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 07:44:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1195265#M16799</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2020-12-08T07:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1196136#M16810</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;I want to convert a function to binary coded form&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 08:02:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1196136#M16810</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2020-12-09T08:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1196512#M16815</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I don't know which IDE you use, but I'm sure it can generate s-record file - either by default or it can be enabled. The extension of file is .mot, .s3 or something like that.&lt;/P&gt;
&lt;P&gt;Then I have command line tool which can convert s-record to c-array. See attached. Notice that I'm providing it with no guarantees and no support, it's not official tool. Use windows command line to see what the arguments are.&lt;/P&gt;
&lt;P&gt;You can put a function to some specific segment, so you can easily extract it from the s-record file and then you can use the tool to create c-array if needed.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 14:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1196512#M16815</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-12-09T14:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197195#M16816</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks,the IDE tool I use is CodeWarrior 10.5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As you said, there is a MOT file but how do I use s2C?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.bmp" style="width: 943px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132343iC0C3B26E6E5EE07C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.bmp" alt="2.bmp" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.bmp" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132342i421D49A77D029480/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.bmp" alt="1.bmp" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I convert a function into an array using this instruction?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 07:51:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197195#M16816</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2020-12-10T07:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197411#M16821</link>
      <description>&lt;P&gt;I do not have documentation for the tool, just follow the description of arguments. I believe you will figure it out after a couple of experiments. Example:&lt;/P&gt;
&lt;P&gt;s2c 4 FF 100 test_c_array whatever.mot output.txt&lt;/P&gt;
&lt;P&gt;And as I mentioned, put your function to some specific segment, so you can easily find in in the s-record ifle and then separate required part of the s-record to another file. This file then use with the tool.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 12:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197411#M16821</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-12-10T12:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197452#M16822</link>
      <description>Thank you very much for your reply! I want to try it as you said, but what do the second and third parameters mean? How should the MPC5604B parameters be set?</description>
      <pubDate>Thu, 10 Dec 2020 14:26:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197452#M16822</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2020-12-10T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197454#M16823</link>
      <description>&lt;P&gt;Thank you very much for your reply!&lt;BR /&gt;I want to try it as you said, but what do the second and third parameters mean?&lt;BR /&gt;How should the MPC5604B parameters be set?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 14:33:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197454#M16823</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2020-12-10T14:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197896#M16827</link>
      <description>&lt;P&gt;If there's a gap in s-record file, the gap is filled with specified character (FF in my example above). Threshold then says what is the max size of such gap. If it is more then specified, the rest of the s-record is not used.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 07:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1197896#M16827</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-12-11T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1199620#M16862</link>
      <description>&lt;P&gt;&lt;SPAN class="tgt"&gt;Sorry, I have another problem, I can't put a function in a paragraph.&lt;/SPAN&gt;&lt;SPAN class="tgt"&gt;I can only put one variable in a paragraph.&lt;/SPAN&gt;&lt;SPAN class="tgt"&gt;Can you tell me how to put a function in a segment?&lt;/SPAN&gt;&lt;SPAN class="tgt"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tgt"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 913px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132698i3066B81FD07B167C/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 826px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132699i7AC7C043CE0F6BA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 11:05:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1199620#M16862</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2020-12-15T11:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1199622#M16863</link>
      <description>&lt;P&gt;&lt;SPAN&gt;There is an error in the above image. Here is the updated image and the compiled result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132700i7ABA8130212771A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="6.png" alt="6.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 11:10:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1199622#M16863</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2020-12-15T11:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1202463#M16909</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;this is how to put a function to specific flash segment and to specific RAM segment (the code is copied to RAM by startup files):&lt;/P&gt;
&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;...&lt;BR /&gt;hello_test: org = ..., len = ... //flash segment&lt;BR /&gt;code_ram: org = ..., len = ... //RAM segment&lt;BR /&gt;...&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;SECTIONS&lt;BR /&gt;{&lt;BR /&gt;...&lt;BR /&gt;.__code_ram (VLECODE) : {} &amp;gt; code_ram&lt;BR /&gt;.__hello_test (VLECODE) LOAD(ADDR(hello_test)) : {} &amp;gt; hello_test&lt;BR /&gt;...&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;And in C file:&lt;/P&gt;
&lt;P&gt;#pragma push&lt;BR /&gt;#pragma section code_type ".__hello_test" code_mode=far_abs&lt;BR /&gt;void test(void)&lt;BR /&gt;{&lt;BR /&gt;asm("nop");&lt;BR /&gt;}&lt;BR /&gt;#pragma pop&lt;/P&gt;
&lt;P&gt;#pragma push&lt;BR /&gt;#pragma section code_type ".__code_ram" code_mode=far_abs &lt;BR /&gt;void test_ram(void)&lt;BR /&gt;{&lt;BR /&gt;asm("nop");&lt;BR /&gt;}&lt;BR /&gt;#pragma pop&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 11:15:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1202463#M16909</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-12-21T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1208297#M17025</link>
      <description>&lt;P class="src grammarSection"&gt;The program did not work normally after s2c.exe conversion.&lt;/P&gt;&lt;P class="src grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="src grammarSection"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 12:30:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1208297#M17025</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2021-01-07T12:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1208312#M17026</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 01:43:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1208312#M17026</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2021-01-18T01:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the binary code of a function using MPC5604</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1208322#M17027</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Finally, I get an array by s2c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1475849560_0-1610024322736.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134245i4547BC828A4AB7ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1475849560_0-1610024322736.png" alt="1475849560_0-1610024322736.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test_fun&lt;SPAN&gt;&amp;nbsp;didn't work properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking forward to your reply,Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 13:05:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-the-binary-code-of-a-function-using-MPC5604/m-p/1208322#M17027</guid>
      <dc:creator>1475849560</dc:creator>
      <dc:date>2021-01-07T13:05:24Z</dc:date>
    </item>
  </channel>
</rss>

