<?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: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327177#M61310</link>
    <description>&lt;P&gt;You have to keep in mind that examples come with lots of things your might not aware of: startup code, library code, asserts, ...: they are there to make somewhat 'your starting point easier', but at the end you are responsible to get things in and out. Somewhat related: here is such a process with the SDK (not Processor Expert): &lt;A href="https://mcuoneclipse.com/2019/08/17/tutorial-how-to-optimize-code-and-ram-size/" target="_blank"&gt;https://mcuoneclipse.com/2019/08/17/tutorial-how-to-optimize-code-and-ram-size/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;A single (unwanted) printf() might add several kBytes of code to your application. I recommend you have a look at your .map file to see what is using how much. As you can see with the above article, with the right knowledge and a bit of work with knowing what you do you can get a minimal 'blinky' down to a few hundred bytes.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Sat, 21 Aug 2021 07:53:54 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2021-08-21T07:53:54Z</dc:date>
    <item>
      <title>Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1326744#M61294</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm using my own board of MKE04Z8VWJ4 (which is having 32-bit, Flash memory - 8KB, RAM - 1KB), when I'm trying to Initialize the timer and ADC components using Predefined functions (Shown in IMG003),&amp;nbsp;it shows the error "&lt;STRONG&gt;region `m_text' overflowed by 396 bytes&lt;/STRONG&gt;". Even I have not added my own code in the project yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Someone on this community suggested code optimization setting for the similar problem. After changing the optimization level to "&lt;STRONG&gt;Optimize size(-Os)&lt;/STRONG&gt;" above error is gone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; But when i am trying to write my code (size 3K) it is showing same error again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to resolve this error??&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly go through Attached Images and Code.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 07:36:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1326744#M61294</guid>
      <dc:creator>manisht_24</dc:creator>
      <dc:date>2021-08-20T07:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1326933#M61298</link>
      <description>&lt;P&gt;As you have probably deduced m_text overflow means there is more code than there is Flash space for it.&lt;BR /&gt;&lt;BR /&gt;Try upgrading to the recent MCUXPresso and SDK.&amp;nbsp; GCC 4.7.x is rather old.&amp;nbsp; There have been some improvements in optimization since then.&amp;nbsp; Also the newer SDK generates better code than Code Warrior did.&lt;BR /&gt;&lt;BR /&gt;Ultimately a small part like the 04 may simply not have the capacity for the application at hand.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 12:30:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1326933#M61298</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2021-08-20T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327175#M61309</link>
      <description>&lt;P&gt;Thanks For Replying Bob.&lt;/P&gt;&lt;P&gt;But without writing single line of code why it is showing code size of 6168 (You can see in the attachment)? I have only created components required for my Project. Out of 8K flash 6168 memory is consumed without writing single line of code.&amp;nbsp; am I doing something wrong in creating project?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 07:27:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327175#M61309</guid>
      <dc:creator>manisht_24</dc:creator>
      <dc:date>2021-08-21T07:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327177#M61310</link>
      <description>&lt;P&gt;You have to keep in mind that examples come with lots of things your might not aware of: startup code, library code, asserts, ...: they are there to make somewhat 'your starting point easier', but at the end you are responsible to get things in and out. Somewhat related: here is such a process with the SDK (not Processor Expert): &lt;A href="https://mcuoneclipse.com/2019/08/17/tutorial-how-to-optimize-code-and-ram-size/" target="_blank"&gt;https://mcuoneclipse.com/2019/08/17/tutorial-how-to-optimize-code-and-ram-size/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;A single (unwanted) printf() might add several kBytes of code to your application. I recommend you have a look at your .map file to see what is using how much. As you can see with the above article, with the right knowledge and a bit of work with knowing what you do you can get a minimal 'blinky' down to a few hundred bytes.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 07:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327177#M61310</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-08-21T07:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327423#M61315</link>
      <description>&lt;P&gt;Thanks for the reply ErichS. I will keep this in mind.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 05:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327423#M61315</guid>
      <dc:creator>manisht_24</dc:creator>
      <dc:date>2021-08-23T05:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327935#M61319</link>
      <description>&lt;P&gt;In addition to using the -Os small model there are other options that can be added to the Makefile to reduce code further, if they are not already in the Makefile.&lt;BR /&gt;&lt;BR /&gt;This is example from my own Makefile, the variables&amp;nbsp;&lt;SPAN&gt;CFLAGS and &lt;/SPAN&gt;&lt;SPAN&gt;LDFLAGS are likely to have different names in your Makefile.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;# Add&lt;/P&gt;&lt;P&gt;# "-Os -ffunction-sections -fdata-sections"&lt;/P&gt;&lt;P&gt;# to the compiler section of the Makefile, plus&lt;/P&gt;&lt;P&gt;# "--gc-sections"&lt;/P&gt;&lt;P&gt;# to the linker section of the Makefile. This will ensure that the&lt;BR /&gt;# code is optimized for smallest size, and that unused code and data&lt;BR /&gt;# are removed.&lt;/P&gt;&lt;P&gt;# "-u symbol,main"&lt;/P&gt;&lt;P&gt;# Pretend the symbol symbol is undefined, to force linking of library&lt;BR /&gt;# modules to define it. "-u" can be used multiple times with different&lt;BR /&gt;# symbols to force loading of additional library modules.&lt;/P&gt;&lt;P&gt;CFLAGS += -ffunction-sections -fdata-sections&lt;BR /&gt;LDFLAGS += -Wl,-gc-sections,-u,main&lt;/P&gt;&lt;P&gt;# Things such as Interrupt routines and some start up code may need to&lt;BR /&gt;# be marked with an 'used' attribute, to keep needed code from being&lt;BR /&gt;# removed.&amp;nbsp; Look at the .map and .sym files.&lt;/P&gt;&lt;P&gt;# The official GCC list of command line options:&lt;BR /&gt;# &lt;A href="https://gcc.gnu.org/onlinedocs/gcc/Option-Index.html" target="_blank" rel="noopener"&gt;https://gcc.gnu.org/onlinedocs/gcc/Option-Index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 17:34:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1327935#M61319</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2021-08-23T17:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1328462#M61323</link>
      <description>&lt;P&gt;Thanks for Replying bobpaddock&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Please find an attached SS. If i am not wrong are you suggesting to make the changes in the Makefile located in FLASH folder?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Which changes and where should i make can you please Elaborate?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Also Can i program MKE04Z8VWJ flash with "PE Micro Multilink Universal" tool using MCUxpresso IDE v11.4.0_6237?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;If Yes, How can i program?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 09:27:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1328462#M61323</guid>
      <dc:creator>manisht_24</dc:creator>
      <dc:date>2021-08-24T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1328631#M61324</link>
      <description>&lt;P&gt;I use this program with my Multilink:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320181&amp;amp;productTab=1" target="_blank" rel="noopener"&gt;https://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320181&amp;amp;productTab=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The Makefile in the Flash folder is generated by the project.&amp;nbsp; Changes there can be overwritten.&lt;BR /&gt;I've rarely used Code Warrior, so I can't really help you there, other than to say the change needed is in one of the 'included' sub Makefiles, and some setting changed to not overwrite the changes.&lt;BR /&gt;&lt;BR /&gt;You really should move to the modern MCUXpresso and SDK.&lt;BR /&gt;You may find it generates significantly smaller code out of the box, then again it might not, no way to know without trying.&amp;nbsp; That should also support programming the device without using an external program.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 12:15:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1328631#M61324</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2021-08-24T12:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1329634#M61345</link>
      <description>&lt;P&gt;Thanks bobpaddock&lt;/P&gt;&lt;P&gt;As suggested by you I am trying my code on MCUXpresso and SDK. and size of Blank generated code is reduced as compare to Codewarrior10.X project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Though finding little uncomfortable in&amp;nbsp; a new environment of MCUXpresso. Like How to define IOs, timer, ADC. is there any video to learn these things?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 17:01:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1329634#M61345</guid>
      <dc:creator>manisht_24</dc:creator>
      <dc:date>2021-08-25T17:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1330345#M61352</link>
      <description>&lt;P&gt;I'm not a lot of help answering that question.&lt;/P&gt;&lt;P&gt;I don't use it other than to see how&amp;nbsp;i&lt;SPAN&gt;nitialization&lt;/SPAN&gt; code is generated.&lt;BR /&gt;&lt;BR /&gt;Look over Erich's site, starting with this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://mcuoneclipse.com/2019/08/17/tutorial-how-to-optimize-code-and-ram-size/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mcuoneclipse.com/2021/07/21/mcuxpresso-ide-11-4-0/https://mcuoneclipse.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 11:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1330345#M61352</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2021-08-26T11:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1331271#M61367</link>
      <description>&lt;P&gt;Thank you bobpaddock &amp;amp; Erich,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I am referring the site Suggested by Erich. Now Getting things clear slowly.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 10:28:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1331271#M61367</guid>
      <dc:creator>manisht_24</dc:creator>
      <dc:date>2021-08-28T10:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1331278#M61370</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With MCUXpresso, you can use config tools to configure peripherals.&amp;nbsp; There is a config tool user guider in the installation folder.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielchen_0-1630156362248.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154382iF2C7984F305E04BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielchen_0-1630156362248.png" alt="danielchen_0-1630156362248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 13:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1331278#M61370</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-08-28T13:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis MKE04Z8VWJ4 region 'm_text' overflowed ____ bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1332503#M61384</link>
      <description>&lt;P&gt;Thank you danielchen.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 11:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-MKE04Z8VWJ4-region-m-text-overflowed-bytes/m-p/1332503#M61384</guid>
      <dc:creator>manisht_24</dc:creator>
      <dc:date>2021-08-31T11:29:55Z</dc:date>
    </item>
  </channel>
</rss>

