diff --git a/examples/platforms/nrf52840/nrf52840.ld b/examples/platforms/nrf52840/nrf52840.ld index 43cf3c2be..f70ffff6d 100644 --- a/examples/platforms/nrf52840/nrf52840.ld +++ b/examples/platforms/nrf52840/nrf52840.ld @@ -90,7 +90,7 @@ SECTIONS __etext = .; - nrf_radio_buffer : + nrf_radio_buffer (NOLOAD): { __nrf_radio_buffer_start__ = .; *(nrf_radio_buffer*) @@ -162,7 +162,7 @@ SECTIONS __flash_data_start = (__flash_data_end - (FLASH_PAGE_SIZE * FLASH_DATA_PAGES_USED)); /* Assure that code does not overlap flash data area.*/ - ASSERT((__flash_data_start >= __etext), "Error: Code overlaps flash data area.") + ASSERT((__flash_data_start >= __etext + SIZEOF(.data)), "Error: Code overlaps flash data area.") /* Set stack top to end of RAM, and stack limit move down by * size of stack_dummy section */