diff --git a/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld b/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld index 971f749622..ae8c58fda8 100644 --- a/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld +++ b/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld @@ -116,25 +116,6 @@ SECTIONS } > RAM - /* Code can explicitly ask for data to be - placed in these higher RAM banks where - they will be left uninitialized. - */ - .AHBSRAM0 (NOLOAD): - { - Image$$RW_IRAM2$$Base = . ; - *(AHBSRAM0) - Image$$RW_IRAM2$$ZI$$Limit = .; - } > USB_RAM - - .AHBSRAM1 (NOLOAD): - { - Image$$RW_IRAM3$$Base = . ; - *(AHBSRAM1) - Image$$RW_IRAM3$$ZI$$Limit = .; - } > ETH_RAM - - .bss : { __bss_start__ = .; diff --git a/libraries/net/eth/lwip-eth/arch/lpc17_emac.c b/libraries/net/eth/lwip-eth/arch/lpc17_emac.c index b2d7a0c24c..0aecdca018 100644 --- a/libraries/net/eth/lwip-eth/arch/lpc17_emac.c +++ b/libraries/net/eth/lwip-eth/arch/lpc17_emac.c @@ -139,11 +139,11 @@ struct lpc_enetdata { # define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned)) # endif #else -# define ETHMEM_SECTION ALIGNED(8) -#endif - #if defined(TARGET_LPC1768) && defined(TOOLCHAIN_GCC_ARM) -#define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned)) +# define ETHMEM_SECTION __attribute__((section("AHBSRAM1"),aligned)) +#else +# define ETHMEM_SECTION ALIGNED(8) +#endif #endif /** \brief LPC EMAC driver work data