This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error: flash is not erased

Hi everyone,

I'm trying to compile my own bootloader. I had this error when trying to flash it into my module:

nRFgo Studio error screen

Here is my linker script for the bootloader:

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x0003c000, LENGTH = 0x5000
  RAM (rwx) :  ORIGIN = 0x20004000, LENGTH = 0x2000
}

INCLUDE "gcc_nrf51_common.ld"

And here is the linker script for the application:

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{

  FLASH (rx) : ORIGIN = 0x00018000, LENGTH = 0xa000
  RAM (rwx) :  ORIGIN = 0x20002000, LENGTH = 0x2000
}

INCLUDE "gcc_nrf51_common.ld"

Do you guys have any idea ?

Thanks a lot

Hamza.

Related