<?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中的主题 IMX8MM Cortex M4 m_data size issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Cortex-M4-m-data-size-issue/m-p/1426348#M188073</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am using 5.4.24 kernel version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; DTS File:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;	reserved-memory {
		#address-cells = &amp;lt;2&amp;gt;;
		#size-cells = &amp;lt;2&amp;gt;;
		ranges;

		m4_reserved: m4@0x80000000 {
			no-map;
			reg = &amp;lt;0 0x80000000 0 0x1000000&amp;gt;;
		};

		vdev0vring0: vdev0vring0@b8000000 {
			compatible = "shared-dma-pool";
			reg = &amp;lt;0 0xb8000000 0 0x8000&amp;gt;;
			no-map;
		};

		vdev0vring1: vdev0vring1@b8008000 {
			compatible = "shared-dma-pool";
			reg = &amp;lt;0 0xb8008000 0 0x8000&amp;gt;;
			no-map;
		};

		vdevbuffer: vdevbuffer@b8400000 {
			compatible = "shared-dma-pool";
			reg = &amp;lt;0 0xb8400000 0 0x100000&amp;gt;;
			no-map;
		};
	};

	imx8mm-cm4 {
		compatible = "fsl,imx8mm-cm4";
		rsc-da = &amp;lt;0xb8000000&amp;gt;;
		clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_M4_DIV&amp;gt;;
		mbox-names = "tx", "rx", "rxdb";
		mboxes = &amp;lt;&amp;amp;mu 0 1
			  &amp;amp;mu 1 1
			  &amp;amp;mu 3 1&amp;gt;;
		memory-region = &amp;lt;&amp;amp;vdev0vring0&amp;gt;, &amp;lt;&amp;amp;vdev0vring1&amp;gt;, &amp;lt;&amp;amp;vdevbuffer&amp;gt;;
		syscon = &amp;lt;&amp;amp;src&amp;gt;;
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to allocate big buffer(ex 100kb) in m4 side.&lt;/P&gt;&lt;P&gt;When ever am trying compile the code am getting error as a m_data size exceed.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: ddr_debug/rpmsg_lite_str_echo_rtos_imxcm4.elf section `.bss' will not fit in region `m_data'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region m_data overflowed with stack and heap
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region `m_data' overflowed by 2699576 bytes
collect2: error: ld returned 1 exit status
CMakeFiles/rpmsg_lite_str_echo_rtos_imxcm4.elf.dir/build.make:1074: recipe for target 'ddr_debug/rpmsg_lite_str_echo_rtos_imxcm4.elf' failed
make[2]: *** [ddr_debug/rpmsg_lite_str_echo_rtos_imxcm4.elf] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/rpmsg_lite_str_echo_rtos_imxcm4.elf.dir/all' failed
make[1]: *** [CMakeFiles/rpmsg_lite_str_echo_rtos_imxcm4.elf.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tried both ddr_debug and tcm_debug am getting same error.&lt;/P&gt;&lt;P&gt;If possible to increase m_data size in ld file?&lt;/P&gt;&lt;P&gt;How to increase m_data size ?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vasu&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 18:53:32 GMT</pubDate>
    <dc:creator>Dhevan</dc:creator>
    <dc:date>2022-03-10T18:53:32Z</dc:date>
    <item>
      <title>IMX8MM Cortex M4 m_data size issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Cortex-M4-m-data-size-issue/m-p/1426348#M188073</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am using 5.4.24 kernel version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; DTS File:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;	reserved-memory {
		#address-cells = &amp;lt;2&amp;gt;;
		#size-cells = &amp;lt;2&amp;gt;;
		ranges;

		m4_reserved: m4@0x80000000 {
			no-map;
			reg = &amp;lt;0 0x80000000 0 0x1000000&amp;gt;;
		};

		vdev0vring0: vdev0vring0@b8000000 {
			compatible = "shared-dma-pool";
			reg = &amp;lt;0 0xb8000000 0 0x8000&amp;gt;;
			no-map;
		};

		vdev0vring1: vdev0vring1@b8008000 {
			compatible = "shared-dma-pool";
			reg = &amp;lt;0 0xb8008000 0 0x8000&amp;gt;;
			no-map;
		};

		vdevbuffer: vdevbuffer@b8400000 {
			compatible = "shared-dma-pool";
			reg = &amp;lt;0 0xb8400000 0 0x100000&amp;gt;;
			no-map;
		};
	};

	imx8mm-cm4 {
		compatible = "fsl,imx8mm-cm4";
		rsc-da = &amp;lt;0xb8000000&amp;gt;;
		clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_M4_DIV&amp;gt;;
		mbox-names = "tx", "rx", "rxdb";
		mboxes = &amp;lt;&amp;amp;mu 0 1
			  &amp;amp;mu 1 1
			  &amp;amp;mu 3 1&amp;gt;;
		memory-region = &amp;lt;&amp;amp;vdev0vring0&amp;gt;, &amp;lt;&amp;amp;vdev0vring1&amp;gt;, &amp;lt;&amp;amp;vdevbuffer&amp;gt;;
		syscon = &amp;lt;&amp;amp;src&amp;gt;;
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to allocate big buffer(ex 100kb) in m4 side.&lt;/P&gt;&lt;P&gt;When ever am trying compile the code am getting error as a m_data size exceed.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: ddr_debug/rpmsg_lite_str_echo_rtos_imxcm4.elf section `.bss' will not fit in region `m_data'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region m_data overflowed with stack and heap
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region `m_data' overflowed by 2699576 bytes
collect2: error: ld returned 1 exit status
CMakeFiles/rpmsg_lite_str_echo_rtos_imxcm4.elf.dir/build.make:1074: recipe for target 'ddr_debug/rpmsg_lite_str_echo_rtos_imxcm4.elf' failed
make[2]: *** [ddr_debug/rpmsg_lite_str_echo_rtos_imxcm4.elf] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/rpmsg_lite_str_echo_rtos_imxcm4.elf.dir/all' failed
make[1]: *** [CMakeFiles/rpmsg_lite_str_echo_rtos_imxcm4.elf.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tried both ddr_debug and tcm_debug am getting same error.&lt;/P&gt;&lt;P&gt;If possible to increase m_data size in ld file?&lt;/P&gt;&lt;P&gt;How to increase m_data size ?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vasu&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 18:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Cortex-M4-m-data-size-issue/m-p/1426348#M188073</guid>
      <dc:creator>Dhevan</dc:creator>
      <dc:date>2022-03-10T18:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM Cortex M4 m_data size issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Cortex-M4-m-data-size-issue/m-p/1450244#M189782</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;If this is does still help, I think it may be better to run at DDR and not TCM if you have already exceeded the size.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;You may increase m_data at liner file just make sure that you increase the reserved memory size in device tree as well.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 00:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Cortex-M4-m-data-size-issue/m-p/1450244#M189782</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2022-04-28T00:48:24Z</dc:date>
    </item>
  </channel>
</rss>

