diff --git a/cpu/lpc23xx/ldscripts/lpc23xx.ld b/cpu/lpc23xx/ldscripts/lpc23xx.ld index 35e70ce3fc..5b22980c22 100644 --- a/cpu/lpc23xx/ldscripts/lpc23xx.ld +++ b/cpu/lpc23xx/ldscripts/lpc23xx.ld @@ -207,10 +207,6 @@ SECTIONS _sram = ORIGIN(ram); _eram = ORIGIN(ram) + LENGTH(ram); - /* Populate information about rom size */ - _srom = ORIGIN(rom); - _erom = ORIGIN(rom) + LENGTH(rom); - .heap1 ALIGN(4) (NOLOAD) : { _sheap1 = ORIGIN(ram_ethernet); @@ -250,8 +246,4 @@ SECTIONS _sheap3 = . ; _eheap3 = ORIGIN(ram_battery) + LENGTH(ram_battery); } > ram_battery - - .end_fw (NOLOAD) : ALIGN(4) { - _end_fw = . ; - } > rom } diff --git a/cpu/lpc23xx/periph/flashpage.c b/cpu/lpc23xx/periph/flashpage.c index 80bb7c676d..d35ceedcaa 100644 --- a/cpu/lpc23xx/periph/flashpage.c +++ b/cpu/lpc23xx/periph/flashpage.c @@ -34,13 +34,6 @@ typedef void (*IAP)(unsigned int[], unsigned int[]); static const IAP IAP_Entry = (IAP)0x7ffffff1; -/** - * @brief Memory markers, defined in the linker script - * @{ - */ -extern uint32_t _end_fw; -extern uint32_t _erom; - static uint32_t iap(uint32_t code, uint32_t p1, uint32_t p2, uint32_t p3, uint32_t p4) { /* contains parameters for IAP command */ @@ -258,13 +251,3 @@ void flashpage_write(void *target_addr, const void *data, size_t len) DEBUG("ERROR: COPY_RAM_TO_FLASH: %u\n", err); } } - -unsigned flashpage_first_free(void) -{ - return flashpage_page(&_end_fw) + 1; -} - -unsigned flashpage_last_free(void) -{ - return flashpage_page(&_erom) - 1; -}