<?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: MKE04Z8VFK4 SDK overflow the program memory in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/MKE04Z8VFK4-SDK-overflow-the-program-memory/m-p/1029018#M3201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jingtian,&lt;/P&gt;&lt;P&gt;printf occupies most of the code space. Please refer to &lt;A href="https://community.nxp.com/thread/487212"&gt;Reduce source code size for Kinetis Series MKL03&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If space is still not enough, you can upgrade the compile optimize level. &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1053737?commentID=1053737#comment-1053737" title="https://community.nxp.com/message/1053737?commentID=1053737#comment-1053737"&gt;https://community.nxp.com/message/1053737?commentID=1053737#comment-1053737&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jan 2020 05:42:04 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2020-01-03T05:42:04Z</dc:date>
    <item>
      <title>MKE04Z8VFK4 SDK overflow the program memory</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/MKE04Z8VFK4-SDK-overflow-the-program-memory/m-p/1029017#M3200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use the MKE04Z8VFK4 for build a project but the console showed the program memory was overflowed, the interesting thing was my project was empty, it contained nothing but pins and devices definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I created the new one which imported the examples (HelloWorld, UART_interrupt, UART_polling) of the SDK to see how they would be, they still showed the memory overflow, from 128%-140%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I created a empty project&amp;nbsp;without any definitions but&amp;nbsp;SDK, it still used 89.26% of program flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to reduce the size of the SDK significantly? Or the other ways which I can make the chip works? 10.74% is definitely not enough if I want to use the features of the chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My MCUXpresso is 11.1.0. SDK version 2.7.0 (Stage 736), Manifest Version 3.6.0. Config Tools 7.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make -r -j4 all &lt;BR /&gt;Building target: frdmke04z_sample_uart_polling.axf&lt;BR /&gt;Invoking: MCU Linker&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="frdmke04z_sample_uart_polling.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -Xlinker --cref -mcpu=cortex-m0plus -mthumb -T frdmke04z_sample_uart_polling_Debug.ld -o "frdmke04z_sample_uart_polling.axf" ./utilities/fsl_assert.o ./utilities/fsl_debug_console.o ./startup/startup_mke04z4.o ./source/semihost_hardfault.o ./source/uart_polling.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_gpio.o ./drivers/fsl_port.o ./drivers/fsl_uart.o ./device/system_MKE04Z4.o ./component/uart/uart_adapter.o ./component/lists/generic_list.o ./board/board.o ./board/clock_config.o ./board/pin_mux.o &lt;BR /&gt;Memory region Used Size Region Size %age Used&lt;BR /&gt; PROGRAM_FLASH: 10564 B 8 KB 128.96%&lt;BR /&gt;c:/nxp/mcuxpressoide_11.1.0_3209/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.1.0.201909161352/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: frdmke04z_sample_uart_polling.axf section `.text' will not fit in region `PROGRAM_FLASH'&lt;BR /&gt;c:/nxp/mcuxpressoide_11.1.0_3209/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.1.0.201909161352/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: region `PROGRAM_FLASH' overflowed by 2372 bytes&lt;BR /&gt; SRAM: 536 B 1 KB 52.34%&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:39: frdmke04z_sample_uart_polling.axf] Error 1&lt;BR /&gt;"make -r -j4 all" terminated with exit code 2. Build might be incomplete.&lt;/P&gt;&lt;P&gt;09:10:11 Build Failed. 3 errors, 0 warnings. (took 425ms)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 14:45:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/MKE04Z8VFK4-SDK-overflow-the-program-memory/m-p/1029017#M3200</guid>
      <dc:creator>jingtian_li</dc:creator>
      <dc:date>2019-12-31T14:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: MKE04Z8VFK4 SDK overflow the program memory</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/MKE04Z8VFK4-SDK-overflow-the-program-memory/m-p/1029018#M3201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jingtian,&lt;/P&gt;&lt;P&gt;printf occupies most of the code space. Please refer to &lt;A href="https://community.nxp.com/thread/487212"&gt;Reduce source code size for Kinetis Series MKL03&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If space is still not enough, you can upgrade the compile optimize level. &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1053737?commentID=1053737#comment-1053737" title="https://community.nxp.com/message/1053737?commentID=1053737#comment-1053737"&gt;https://community.nxp.com/message/1053737?commentID=1053737#comment-1053737&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 05:42:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/MKE04Z8VFK4-SDK-overflow-the-program-memory/m-p/1029018#M3201</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2020-01-03T05:42:04Z</dc:date>
    </item>
  </channel>
</rss>

