<?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: KL27Z .flashConfig compiles on one machine, overflows on another in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27Z-flashConfig-compiles-on-one-machine-overflows-on-another/m-p/1287092#M60717</link>
    <description>&lt;P&gt;I think I found my answer:&lt;BR /&gt;There were two startup.S files in a folder.&lt;BR /&gt;There was a filter set in:&lt;/P&gt;&lt;P&gt;Project Properties &amp;gt;&amp;gt; C/C++ General &amp;gt;&amp;gt; Paths and Symbols &amp;gt;&amp;gt; Source Location &amp;gt;&amp;gt; {Project Name} +&amp;gt; Filter to "ignore one of the .S files"&lt;BR /&gt;&lt;BR /&gt;Some code folders were rearranged in the move, they were relinked, but not filtered and two .S files were populating the memory space.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 00:16:23 GMT</pubDate>
    <dc:creator>JesseVer</dc:creator>
    <dc:date>2021-06-04T00:16:23Z</dc:date>
    <item>
      <title>KL27Z .flashConfig compiles on one machine, overflows on another</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27Z-flashConfig-compiles-on-one-machine-overflows-on-another/m-p/1287061#M60716</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying to move a project between laptops.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;They should have identical environments, but the project will not compile at the destination.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From the build console output I can tell all the files are loaded and checked for consistency.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;At the linker step something goes wrong:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;Building target: project.elf&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;Invoking: Cross ARM C++ Linker&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Wall&amp;nbsp; -g3 -T "../../DaqCommon/MKL27Z128xxx4_flash.ld" -Xlinker --gc-sections -Wl,-Map,"GDX-SND-0T1.map" --specs=nano.specs -mapcs&amp;nbsp; -Xlinker -static&amp;nbsp; -Xlinker -z&amp;nbsp; -Xlinker muldefs&amp;nbsp; -Xlinker --defsym=__usb_ram_size__=0x800 -o "project.elf"...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;project.elf section `.flash_config' will not fit in region `m_flash_config'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;section .text loaded at [00000410,00012017] overlaps section .flash_config loaded at [00000400,0000041f]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;region `m_flash_config' overflowed by 16 bytes&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;collect2.exe: error: ld returned 1 exit status&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe this memory section is being built in startup_MKL27Z4.S file with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;.syntax unified&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.arch armv6-m&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.section .isr_vector, "a"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align 2&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.globl __isr_vector&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;__isr_vector:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.long &amp;nbsp; __StackTop&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Top of Stack */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;… … … … … ...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.long &amp;nbsp; PORTC_PORTD_IRQHandler&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Single interrupt vector for PORTC; PORTD Pin detect*/&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.size&amp;nbsp; &amp;nbsp; __isr_vector, . - __isr_vector&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;/* Flash Configuration */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.section .FlashConfig, "a"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.long 0xFFFFFFFF&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.long 0xFFFFFFFF&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.long 0xFFFFFFFF&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.long 0xFFFF31FE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.text&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.thumb&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;/* Reset Handler */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.thumb_func&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align 2&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.globl &amp;nbsp; Reset_Handler&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.weak&amp;nbsp; &amp;nbsp; Reset_Handler&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#0000FF"&gt;&lt;SPAN&gt;... ... ...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is only trying to populate 16 bytes, as the memory space requires, so why does it overrun by 16 bytes?&lt;/P&gt;&lt;P&gt;What in the environment could cause this to memory space to be built twice?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 22:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27Z-flashConfig-compiles-on-one-machine-overflows-on-another/m-p/1287061#M60716</guid>
      <dc:creator>JesseVer</dc:creator>
      <dc:date>2021-06-03T22:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: KL27Z .flashConfig compiles on one machine, overflows on another</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27Z-flashConfig-compiles-on-one-machine-overflows-on-another/m-p/1287092#M60717</link>
      <description>&lt;P&gt;I think I found my answer:&lt;BR /&gt;There were two startup.S files in a folder.&lt;BR /&gt;There was a filter set in:&lt;/P&gt;&lt;P&gt;Project Properties &amp;gt;&amp;gt; C/C++ General &amp;gt;&amp;gt; Paths and Symbols &amp;gt;&amp;gt; Source Location &amp;gt;&amp;gt; {Project Name} +&amp;gt; Filter to "ignore one of the .S files"&lt;BR /&gt;&lt;BR /&gt;Some code folders were rearranged in the move, they were relinked, but not filtered and two .S files were populating the memory space.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 00:16:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27Z-flashConfig-compiles-on-one-machine-overflows-on-another/m-p/1287092#M60717</guid>
      <dc:creator>JesseVer</dc:creator>
      <dc:date>2021-06-04T00:16:23Z</dc:date>
    </item>
  </channel>
</rss>

