<?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>S32KのトピックRe: How to Place Custom Data into SRAM for S32K146 Using S32 Design Studio for ARM?</title>
    <link>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2047997#M46072</link>
    <description>&lt;P&gt;Hi@&lt;SPAN&gt;LaiBighead&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refero to this post, you can use "attribute" to place data to specific address.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/How-can-S32K-define-a-variable-in-a-specified-address/m-p/731255/highlight/true" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio/How-can-S32K-define-a-variable-in-a-specified-address/m-p/731255/highlight/true&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 08:36:46 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2025-02-20T08:36:46Z</dc:date>
    <item>
      <title>How to Place Custom Data into SRAM for S32K146 Using S32 Design Studio for ARM?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2047717#M46062</link>
      <description>Hi NXP Support Team: I am currently working on a project using the S32K146 microcontroller and the S32 Design Studio for ARM development environment. I would like to place custom data into SRAM for my application but am unsure of the correct procedure to achieve this. I would appreciate any documentation, examples, or instructions that could help me implement this in my project. Thank you for your time and assistance. I look forward to your response. #S32K</description>
      <pubDate>Thu, 20 Feb 2025 02:35:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2047717#M46062</guid>
      <dc:creator>Chandler_L</dc:creator>
      <dc:date>2025-02-20T02:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Place Custom Data into SRAM for S32K146 Using S32 Design Studio for ARM?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2047997#M46072</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;LaiBighead&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refero to this post, you can use "attribute" to place data to specific address.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/How-can-S32K-define-a-variable-in-a-specified-address/m-p/731255/highlight/true" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio/How-can-S32K-define-a-variable-in-a-specified-address/m-p/731255/highlight/true&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 08:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2047997#M46072</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-02-20T08:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Place Custom Data into SRAM for S32K146 Using S32 Design Studio for ARM?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2048818#M46117</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;L&lt;/SPAN&gt;Senlent :&lt;/P&gt;&lt;P&gt;I appreciate your help,&amp;nbsp; I have defined a memory region in the linker script with a length of 4 bytes as shown below:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;oem_ram (RW) : ORIGIN = 0x20002A0A, LENGTH = 0x00000004&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;._oem_ram :&lt;BR /&gt;{&lt;BR /&gt;KEEP(*(._oem_ram ))&lt;BR /&gt;} &amp;gt; oem_ram &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;In (.c) file&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;uint8_t&lt;/SPAN&gt; DID_F183_PRO_CODE[4] __attribute__((section(&lt;SPAN class=""&gt;".oem_did_data_ram_area2"&lt;/SPAN&gt;))) = { &lt;SPAN class=""&gt;0xFF&lt;/SPAN&gt;, &lt;SPAN class=""&gt;0xFF&lt;/SPAN&gt;, &lt;SPAN class=""&gt;0xFF&lt;/SPAN&gt;, &lt;SPAN class=""&gt;0xFF&lt;/SPAN&gt; };&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;However, I am receiving the following error during the build process:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Ld error: region `oem_ram' overflowed by 2 bytes&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#FF0000"&gt;ECU_APP_DemoProject.elf section `._oem_ram ' will not fit in region `oem_ram'&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;This suggests that the data segment's actual size exceeds the allocated 4-byte region, causing an overflow. I am unable to understand the exact reason for this overflow, as the data I have defined is just 4 bytes in size.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Could you please help me understand why this overflow is happening and what might be causing the data size to exceed the allocated 4 bytes?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding operations in the .id file. Specifically, I would like to know how to &lt;FONT color="#FF0000"&gt;copy a custom Flash data segment to SRAM&lt;/FONT&gt; during startup in the S32K146 environment, using S32Studio for ARM.&lt;/P&gt;&lt;P&gt;In other development environments (such as CodeWarrior), I am familiar with the syntax:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cal_flash:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;org = 0x00009000,&amp;nbsp; &amp;nbsp;len = 0x00002000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cal_ram:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org = 0x40001000, len = 0x00001800&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;_cal_ram LOAD(ADDR(cal_flash)): {} &amp;gt; cal_ram&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Could you please guide me on how to implement this operation in S32K146 using S32Studio for ARM?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 06:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2048818#M46117</guid>
      <dc:creator>Chandler_L</dc:creator>
      <dc:date>2025-02-21T06:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Place Custom Data into SRAM for S32K146 Using S32 Design Studio for ARM?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2049512#M46162</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Chandler_L&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I have told you how to put data in a specified RAM space.&lt;/P&gt;
&lt;P&gt;For more syntax rules, please Google it.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 01:54:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Place-Custom-Data-into-SRAM-for-S32K146-Using-S32-Design/m-p/2049512#M46162</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-02-24T01:54:06Z</dc:date>
    </item>
  </channel>
</rss>

