<?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>i.MX ProcessorsのトピックSJA1105 configuration data question</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SJA1105-configuration-data-question/m-p/684269#M105779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I&amp;nbsp;install SJA1105 configuration tool by&amp;nbsp;sja1105_appboard_v12.exe, and&amp;nbsp;run the .bat files to generate the .hex and &amp;nbsp;.c file. &amp;nbsp;Now&amp;nbsp;I got 4 configuration data are as followings, and I read the documations(UM10944, AH1601) but&amp;nbsp;I still have some questions&amp;nbsp;about how to write this configuration data into the SJA1105 correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The config_data_0[],&amp;nbsp;&lt;SPAN&gt;config_data_1[],&amp;nbsp;config_data_2[],&amp;nbsp;config_data_3[] are all data? Or it is including device ID or block ID or CRC?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. The SPI write's Device ID is always&amp;nbsp; &lt;SPAN class=""&gt;0x9E00030E&lt;/SPAN&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;3. The SPI write's Block ID is always 0?&lt;/P&gt;&lt;P&gt;4. Because the config_data_x[] generated by .bat each data length is over the SPI&amp;nbsp;max data write length, I need to spilit it into 2&amp;nbsp;steps. For exmaple config_data_0[] length is 32bit * 65. If I write the config_data_0 with 32bit * 33 + 32bit * 32.&lt;/P&gt;&lt;P&gt;The block length which I need to write are 33 and 32, right? Or the unit is byte, so I need to change block length as 33*4 and 32 * 4?&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. And CRC values need calculate them by ourselves and it don't count in block length, right?&lt;/P&gt;&lt;P&gt;6. Is there any document or pesudo codes or sample codes in any platform that we can refer more details for how to write configuration data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static const uint8_t config_data_0[] = { 0x80, 0x20, 0x00, 0x00, 0x9E, 0x00, 0x03, 0x0E, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x21, 0x6F, 0x25, 0x6B, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF };&lt;/P&gt;&lt;P&gt;static const uint8_t config_data_1[] = { 0x80, 0x20, 0x04, 0x00, 0xFE... omit.....,&amp;nbsp;0xBD, 0xC8 };&lt;/P&gt;&lt;P&gt;static const uint8_t config_data_2[] = { 0x80, 0x20, 0x08, 0x00, 0x00&lt;SPAN&gt;... omit..&lt;/SPAN&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;, 0x00, 0x01 };&lt;/P&gt;&lt;P&gt;static const uint8_t config_data_3[] = { 0x80, 0x20, 0x0C, 0x00, 0x3A&lt;SPAN&gt;... omit..&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;, 0x7C, 0xE2 };&lt;/P&gt;&lt;P&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/24788i91C1C3F571D650EF/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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2017 05:28:11 GMT</pubDate>
    <dc:creator>leonlin1</dc:creator>
    <dc:date>2017-07-05T05:28:11Z</dc:date>
    <item>
      <title>SJA1105 configuration data question</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SJA1105-configuration-data-question/m-p/684269#M105779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I&amp;nbsp;install SJA1105 configuration tool by&amp;nbsp;sja1105_appboard_v12.exe, and&amp;nbsp;run the .bat files to generate the .hex and &amp;nbsp;.c file. &amp;nbsp;Now&amp;nbsp;I got 4 configuration data are as followings, and I read the documations(UM10944, AH1601) but&amp;nbsp;I still have some questions&amp;nbsp;about how to write this configuration data into the SJA1105 correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The config_data_0[],&amp;nbsp;&lt;SPAN&gt;config_data_1[],&amp;nbsp;config_data_2[],&amp;nbsp;config_data_3[] are all data? Or it is including device ID or block ID or CRC?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. The SPI write's Device ID is always&amp;nbsp; &lt;SPAN class=""&gt;0x9E00030E&lt;/SPAN&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;3. The SPI write's Block ID is always 0?&lt;/P&gt;&lt;P&gt;4. Because the config_data_x[] generated by .bat each data length is over the SPI&amp;nbsp;max data write length, I need to spilit it into 2&amp;nbsp;steps. For exmaple config_data_0[] length is 32bit * 65. If I write the config_data_0 with 32bit * 33 + 32bit * 32.&lt;/P&gt;&lt;P&gt;The block length which I need to write are 33 and 32, right? Or the unit is byte, so I need to change block length as 33*4 and 32 * 4?&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. And CRC values need calculate them by ourselves and it don't count in block length, right?&lt;/P&gt;&lt;P&gt;6. Is there any document or pesudo codes or sample codes in any platform that we can refer more details for how to write configuration data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static const uint8_t config_data_0[] = { 0x80, 0x20, 0x00, 0x00, 0x9E, 0x00, 0x03, 0x0E, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x21, 0x6F, 0x25, 0x6B, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x07, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0B, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF, 0xFE, 0xF7, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0xFF };&lt;/P&gt;&lt;P&gt;static const uint8_t config_data_1[] = { 0x80, 0x20, 0x04, 0x00, 0xFE... omit.....,&amp;nbsp;0xBD, 0xC8 };&lt;/P&gt;&lt;P&gt;static const uint8_t config_data_2[] = { 0x80, 0x20, 0x08, 0x00, 0x00&lt;SPAN&gt;... omit..&lt;/SPAN&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;, 0x00, 0x01 };&lt;/P&gt;&lt;P&gt;static const uint8_t config_data_3[] = { 0x80, 0x20, 0x0C, 0x00, 0x3A&lt;SPAN&gt;... omit..&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;, 0x7C, 0xE2 };&lt;/P&gt;&lt;P&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/24788i91C1C3F571D650EF/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 05:28:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SJA1105-configuration-data-question/m-p/684269#M105779</guid>
      <dc:creator>leonlin1</dc:creator>
      <dc:date>2017-07-05T05:28:11Z</dc:date>
    </item>
  </channel>
</rss>

