<?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: S32k144 scst in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1203295#M9364</link>
    <description>&lt;P&gt;&lt;SPAN&gt;You are right, all of&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;do&lt;/SPAN&gt;&lt;SPAN&gt; not initialize" and "initialize manually" &lt;FONT&gt;are necessary,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt; I thought only "&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;do&lt;/SPAN&gt;&lt;SPAN&gt; not initialize" or "initialize manually"&lt;/SPAN&gt;&lt;SPAN&gt; is necessary when i &lt;/SPAN&gt;&lt;FONT&gt;refer to the IAR manual.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 01:10:24 GMT</pubDate>
    <dc:creator>daichenghe</dc:creator>
    <dc:date>2020-12-23T01:10:24Z</dc:date>
    <item>
      <title>S32k144 scst</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1199580#M9255</link>
      <description>&lt;P&gt;hi.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using s32k144 scst library.and i get problem as:&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="iar error" style="width: 607px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132691i3D076A9D0ECC09A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="1608024169.png" alt="iar error" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;iar error&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and detials is:&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="1608024198.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132692i149859829F54BE81/image-size/large?v=v2&amp;amp;px=999" role="button" title="1608024198.png" alt="1608024198.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I dont know how to solve it.It maybe caused by my link file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 10:07:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1199580#M9255</guid>
      <dc:creator>995094985</dc:creator>
      <dc:date>2020-12-15T10:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 scst</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1202070#M9324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thank you for providing the linker file. I have checked within IAR embedded workbench 8.32.3 and I do see the same error. The issue can be resolved by adding the following lines into the linker file:&lt;/P&gt;
&lt;P&gt;initialize manually { section .m4_scst_test_shell_data };&lt;BR /&gt;do not initialize { section .m4_scst_test_shell_data };&lt;BR /&gt;initialize manually { section .m4_scst_ram_data };&lt;BR /&gt;do not initialize { section .m4_scst_ram_data };&lt;BR /&gt;initialize manually { section .m4_scst_ram_data_target0 };&lt;BR /&gt;do not initialize { section .m4_scst_ram_data_target0 };&lt;BR /&gt;initialize manually { section .m4_scst_ram_data_target1 };&lt;BR /&gt;do not initialize { section .m4_scst_ram_data_target1 };&lt;BR /&gt;initialize manually { section .m4_scst_ram_test_code };&lt;BR /&gt;do not initialize { section .m4_scst_ram_test_code };&lt;/P&gt;
&lt;P&gt;Note that the section .m4_scst_test_shell_data must be initialized manually in startup code (or at the beginning of main function) before selftest is run.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Frantisek&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 00:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1202070#M9324</guid>
      <dc:creator>frantisekdobes</dc:creator>
      <dc:date>2020-12-21T00:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 scst</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1202092#M9325</link>
      <description>&lt;P&gt;&lt;FONT&gt;Thank you very much,i have solved this problem by using __iar_data_init3 function,but i want to know to how to create a function myself to solve it.m4_scst_test_shell_data maybe rw_data, so i must init it by copying flash to ram,but how to know the right flash location? I'm more familiar with gcc,we can set the flash address to store the rw_data,but in my link file for iar,i dont know where is the flash address to store m4_scst_test_shell_data,so how to set it?&lt;BR /&gt;thank you again!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 01:28:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1202092#M9325</guid>
      <dc:creator>daichenghe</dc:creator>
      <dc:date>2020-12-21T01:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 scst</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1202447#M9335</link>
      <description>&lt;P&gt;The initialized data for&amp;nbsp;.m4_scst_test_shell_data are automatically stored by IAR into a section&amp;nbsp;.m4_scst_test_shell_data_init (name of section plus _init at the end). Then in code the address and size of the sections can be retrieved for example by this code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#pragma section = ".m4_scst_test_shell_data"
#pragma section = ".m4_scst_test_shell_data_init"
dest = __section_begin(".m4_scst_test_shell_data");
src=__section_begin(".m4_scst_test_shell_data_init");
size = ( (uint32_t) __section_end(".m4_scst_test_shell_data_init") - (uint32_t) __section_begin(".m4_scst_test_shell_data_init"));&lt;/LI-CODE&gt;
&lt;P&gt;Then there can be used memcpy or a for loop to copy the initialized data from src to dest.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Frantisek&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 10:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1202447#M9335</guid>
      <dc:creator>frantisekdobes</dc:creator>
      <dc:date>2020-12-21T10:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 scst</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1202666#M9343</link>
      <description>&lt;P&gt;I understand now，you are very great，I can init it by myself now, thank you very much!&lt;/P&gt;&lt;P&gt;but i also have a problem,IAR still remind me to use __iar_data_init3,how to avoid it?&lt;BR /&gt;this is my code and linke file:&lt;BR /&gt;void init_m4_scst_test_shell_data(void)&lt;BR /&gt;{&lt;BR /&gt;uint8_t * m4_scst_test_shell_data_dest;&lt;BR /&gt;uint8_t * m4_scst_test_shell_data_src;&lt;BR /&gt;uint8_t * m4_scst_test_shell_data_src_end;&lt;BR /&gt;&lt;BR /&gt;#pragma section = ".m4_scst_test_shell_data"&lt;BR /&gt;#pragma section = ".m4_scst_test_shell_data_init"&lt;BR /&gt;m4_scst_test_shell_data_dest = __section_begin(".m4_scst_test_shell_data");&lt;BR /&gt;m4_scst_test_shell_data_src=__section_begin(".m4_scst_test_shell_data_init");&lt;BR /&gt;m4_scst_test_shell_data_src_end = __section_end(".m4_scst_test_shell_data_init");&lt;BR /&gt;&lt;BR /&gt;while (m4_scst_test_shell_data_src_end != m4_scst_test_shell_data_src)&lt;BR /&gt;{&lt;BR /&gt;*m4_scst_test_shell_data_dest = *m4_scst_test_shell_data_src;&lt;BR /&gt;m4_scst_test_shell_data_dest++;&lt;BR /&gt;m4_scst_test_shell_data_src++;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;initialize manually&lt;BR /&gt;{&lt;BR /&gt;section .customerBootData,&lt;BR /&gt;section .m4_scst_ram_data,&lt;BR /&gt;section .m4_scst_ram_data_target0,&lt;BR /&gt;section .m4_scst_ram_data_target1,&lt;BR /&gt;section .m4_scst_ram_test_code,&lt;BR /&gt;section .m4_scst_test_shell_data,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;if i set the section&amp;nbsp;&amp;nbsp;do not initialize&lt;/P&gt;&lt;P&gt;it also create a warning:1468 out of 1468 bytes from data record CODE:[0x1FFF8400,0x1FFF89BB] will not be flashed&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 03:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1202666#M9343</guid>
      <dc:creator>daichenghe</dc:creator>
      <dc:date>2020-12-22T03:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 scst</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1203036#M9357</link>
      <description>&lt;P&gt;I do see the __iar_data_init3 error (similarly for other SCST sections):&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;Fatal Error[Lp049]: there was no reference to __iar_data_init3, but it is needed to initialize section .m4_scst_ram_data (m4_scst_exception_wrappers.o #6) 
&lt;/LI-CODE&gt;
&lt;P&gt;After updating the linker file as follows:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;initialize manually       { section .m4_scst_test_shell_data };
do not initialize         { section .m4_scst_test_shell_data };
initialize manually       { section .m4_scst_ram_data };
do not initialize         { section .m4_scst_ram_data };
initialize manually       { section .m4_scst_ram_data_target0 };
do not initialize         { section .m4_scst_ram_data_target0 };
initialize manually       { section .m4_scst_ram_data_target1 };
do not initialize         { section .m4_scst_ram_data_target1 };
initialize manually       { section .m4_scst_ram_test_code };
do not initialize         { section .m4_scst_ram_test_code };
&lt;/LI-CODE&gt;
&lt;P&gt;I don't get the build errors anymore and I also do not see the errors while uploading with flash loader.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Frantisek &lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 10:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1203036#M9357</guid>
      <dc:creator>frantisekdobes</dc:creator>
      <dc:date>2020-12-22T10:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 scst</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1203295#M9364</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You are right, all of&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;do&lt;/SPAN&gt;&lt;SPAN&gt; not initialize" and "initialize manually" &lt;FONT&gt;are necessary,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt; I thought only "&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;do&lt;/SPAN&gt;&lt;SPAN&gt; not initialize" or "initialize manually"&lt;/SPAN&gt;&lt;SPAN&gt; is necessary when i &lt;/SPAN&gt;&lt;FONT&gt;refer to the IAR manual.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 01:10:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-scst/m-p/1203295#M9364</guid>
      <dc:creator>daichenghe</dc:creator>
      <dc:date>2020-12-23T01:10:24Z</dc:date>
    </item>
  </channel>
</rss>

