<?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: Linker fail LPC55 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Linker-fail-LPC55/m-p/1357464#M46822</link>
    <description>&lt;P&gt;Thanks for your sharing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 01:56:41 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2021-10-19T01:56:41Z</dc:date>
    <item>
      <title>Linker fail LPC55</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Linker-fail-LPC55/m-p/1355863#M46793</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having throubles with the linker that seem to be a rare bug. I'm developing a product based on LPC55, so I'm starting with a very simple demo project from the sdk on wich I change the clock_config.c to a custom one. When I compile with this code:&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;&lt;LI-CODE lang="c"&gt;void BOARD_InitBootClocks(void)
{
    //BOARD_BootClockXTAL16();
	//SystemCoreClock = 12000000;

}&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've get a low RAM comsuption result:&lt;/P&gt;&lt;P&gt;14,58%&lt;/P&gt;&lt;PRE&gt;Building target: LPC55S06_8k_test.axf&lt;BR /&gt;Invoking: MCU Linker&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="LPC55S06_8k_test.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -Xlinker --cref -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -T LPC55S06_8k_test_Debug.ld -o "LPC55S06_8k_test.axf" ./utilities/fsl_debug_console.o ./utilities/fsl_str.o ./startup/startup_lpc55s06.o ./source/LPC55S06_Project.o ./source/semihost_hardfault.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_common_arm.o ./drivers/fsl_flexcomm.o ./drivers/fsl_gpio.o ./drivers/fsl_i2c.o ./drivers/fsl_mcan.o ./drivers/fsl_power.o ./drivers/fsl_reset.o ./drivers/fsl_usart.o ./device/system_LPC55S06.o ./component/uart/fsl_adapter_usart.o ./component/serial_manager/fsl_component_serial_manager.o ./component/serial_manager/fsl_component_serial_port_uart.o ./component/lists/fsl_component_generic_list.o ./board/board.o ./board/clock_config.o ./board/peripherals.o ./board/pin_mux.o &lt;BR /&gt;Memory region Used Size Region Size %age Used&lt;BR /&gt;PROGRAM_FLASH: 13912 B 224 KB 6.07%&lt;BR /&gt;SRAM0_1_2: 9552 B 64 KB 14.58%&lt;BR /&gt;SRAMX: 0 GB 16 KB 0.00%&lt;BR /&gt;SRAM3: 0 GB 16 KB 0.00%&lt;BR /&gt;Finished building target: LPC55S06_8k_test.axf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But if I compile with that code:&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;&lt;LI-CODE lang="c"&gt;void BOARD_InitBootClocks(void)
{
    //BOARD_BootClockXTAL16();
	SystemCoreClock = 12000000;

}&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suddendly jump to 114.58% RAM comsuption, and does not fit:&lt;/P&gt;&lt;PRE&gt;Building target: LPC55S06_8k_test.axf&lt;BR /&gt;Invoking: MCU Linker&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="LPC55S06_8k_test.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -Xlinker --cref -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -T LPC55S06_8k_test_Debug.ld -o "LPC55S06_8k_test.axf" ./utilities/fsl_debug_console.o ./utilities/fsl_str.o ./startup/startup_lpc55s06.o ./source/LPC55S06_Project.o ./source/semihost_hardfault.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_common_arm.o ./drivers/fsl_flexcomm.o ./drivers/fsl_gpio.o ./drivers/fsl_i2c.o ./drivers/fsl_mcan.o ./drivers/fsl_power.o ./drivers/fsl_reset.o ./drivers/fsl_usart.o ./device/system_LPC55S06.o ./component/uart/fsl_adapter_usart.o ./component/serial_manager/fsl_component_serial_manager.o ./component/serial_manager/fsl_component_serial_port_uart.o ./component/lists/fsl_component_generic_list.o ./board/board.o ./board/clock_config.o ./board/peripherals.o ./board/pin_mux.o &lt;BR /&gt;c:/nxp/mcuxpressoide_11.4.1_6260/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.4.0.202103011116/tools/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: LPC55S06_8k_test.axf section `.bss' will not fit in region `SRAM0_1_2'&lt;BR /&gt;c:/nxp/mcuxpressoide_11.4.1_6260/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.4.0.202103011116/tools/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM0_1_2' overflowed by 9552 bytes&lt;BR /&gt;Memory region Used Size Region Size %age Used&lt;BR /&gt;PROGRAM_FLASH: 13928 B 224 KB 6.07%&lt;BR /&gt;SRAM0_1_2: 75088 B 64 KB 114.58%&lt;BR /&gt;SRAMX: 0 GB 16 KB 0.00%&lt;BR /&gt;SRAM3: 0 GB 16 KB 0.00%&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:40: LPC55S06_8k_test.axf] Error 1&lt;BR /&gt;"make -r -j4 all" terminated with exit code 2. Build might be incomplete.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seem to consume excaltly 100% more than the previous.&lt;/P&gt;&lt;P&gt;Looking the linker file I see strange results in the the map when the compilation fails:&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;&lt;LI-CODE lang="javascript"&gt;.bss            0x20010000      0x550
                0x20010000                _bss = .
                [!provide]                PROVIDE (__start_bss_RAM = .)
                [!provide]                PROVIDE (__start_bss_SRAM0_1_2 = .)&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the .bss on the bss_SRAM0_1_2 starts on 0x20010000, when the definition of SRAM0_1_2 in the ld file is:&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;&lt;LI-CODE lang="javascript"&gt;  SRAM0_1_2 (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000 /* 64K bytes (alias RAM) */&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion? I already finish all my ideas, and unfortunetly I have no deep knowleges about linker sricpt.&lt;/P&gt;&lt;P&gt;I attach the project to reproduce. The project has been done with MCUxpresso 11.4.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 14:36:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Linker-fail-LPC55/m-p/1355863#M46793</guid>
      <dc:creator>javiervallori</dc:creator>
      <dc:date>2021-10-14T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Linker fail LPC55</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Linker-fail-LPC55/m-p/1356434#M46806</link>
      <description>&lt;P&gt;Luky I found the solution:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/CAN-base-address-align-restriction-in-LPC55/td-p/1356431" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/CAN-base-address-align-restriction-in-LPC55/td-p/1356431&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 10:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Linker-fail-LPC55/m-p/1356434#M46806</guid>
      <dc:creator>javiervallori</dc:creator>
      <dc:date>2021-10-15T10:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Linker fail LPC55</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Linker-fail-LPC55/m-p/1357464#M46822</link>
      <description>&lt;P&gt;Thanks for your sharing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 01:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Linker-fail-LPC55/m-p/1357464#M46822</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-10-19T01:56:41Z</dc:date>
    </item>
  </channel>
</rss>

