<?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: How to wirte the data to absolute address? in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782833#M3107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use S32K144 MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Byungju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2018 23:15:34 GMT</pubDate>
    <dc:creator>kbj</dc:creator>
    <dc:date>2018-07-05T23:15:34Z</dc:date>
    <item>
      <title>How to wirte the data to absolute address?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782831#M3105</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 would like to write the data to absolute address.&lt;/P&gt;&lt;P&gt;So I do as below, but warnig is occured and don't write the data.&lt;/P&gt;&lt;P&gt;How to write the data to absolute address?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64909iF2DFB8B8ED2320C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Byungju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 09:11:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782831#M3105</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-07-05T09:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to wirte the data to absolute address?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782832#M3106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Byungju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which MCU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 09:30:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782832#M3106</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-07-05T09:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to wirte the data to absolute address?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782833#M3107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use S32K144 MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Byungju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 23:15:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782833#M3107</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-07-05T23:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to wirte the data to absolute address?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782834#M3108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know is it correct,why don't you use the pointer?For example,if I want to write 0x55 at 0x8000 0000,I can use the pointer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*((volatile uint32_t *)(0x8000 0000)) = 0x55;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 01:23:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782834#M3108</guid>
      <dc:creator>578294688</dc:creator>
      <dc:date>2018-07-06T01:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to wirte the data to absolute address?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782835#M3109</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 want write some information to the specific address&amp;nbsp; that is not application source code section.&lt;/P&gt;&lt;P&gt;the informations are sw version, application source code mask to check validation and so on.&lt;/P&gt;&lt;P&gt;I can read the information I want at the address in binary file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way you showed me is not right for what i want.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Byungju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 23:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782835#M3109</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-07-08T23:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to wirte the data to absolute address?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782836#M3110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The safe way is modify your linker script and add section in RAM for your variable(s). If you have more vars - just put them in a struct - if you don't like to have section for each var.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m_myram (RW) : ORIGIN = 0x20000000, LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SECTIONS&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;.my_ram_space (NOLOAD):&lt;BR /&gt; { &lt;BR /&gt; *(.my_ram_space)&lt;BR /&gt; } &amp;gt; m_myram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable def:&amp;nbsp;&lt;/P&gt;&lt;P&gt;__attribute__ ((section(".my_ram_space")))&amp;nbsp;int&amp;nbsp;my_abs_var;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is example -&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-335619"&gt;https://community.nxp.com/docs/DOC-335619&lt;/A&gt;&amp;nbsp; which uses DFLASH for data - the same principle you can use for store data in regular flash area (just use your address 0x20400).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 07:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782836#M3110</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-07-09T07:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to wirte the data to absolute address?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782837#M3111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also found this topic on Erich Styger's blog -&amp;nbsp;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/" title="https://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/"&gt;Defining Variables at Absolute Addresses with gcc | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this case there is no exactly defined address - your section is added in the m_data memory space based on place in SECTIONS definition. If your section is very first - it starts on beginning.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 07:34:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782837#M3111</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-07-09T07:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to wirte the data to absolute address?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782838#M3112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;It is very helpful for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Byugnju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 23:46:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-wirte-the-data-to-absolute-address/m-p/782838#M3112</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-07-09T23:46:24Z</dc:date>
    </item>
  </channel>
</rss>

