Hii,
Here i posted the ld file.In this i need page 127 to 128 for the custom partition for the internal flash write and flash read.please verify is it ok for the nrf52840 for 127 to 200 pages for the user need partition.
MEMORY
{
FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0xd7000
FLASH_REGS (rx) : ORIGIN = 0xfe000, LENGTH = 0x2000
RAM (rwx) : ORIGIN = 0x20002b00, LENGTH = 0x33c00
RAM_SPIM3 (rwx) : ORIGIN = 0x2003df00, LENGTH = 0x2000
RAM_NOINIT (rwx) : ORIGIN = 0x2003ff00, LENGTH = 0x100
CUSTOM_MEMORY (rwx) : ORIGIN = 0x7F000, LENGTH = 0x49000
}
SECTIONS
{
.text :
{
*(.text)
} > FLASH
.rodata :
{
*(.rodata)
} > FLASH
.data :
{
*(.data)
} > RAM
.bss :
{
*(.bss)
} > RAM
/* Custom section for user data in flash (from page 127 to page 200) */
.user_flash_data :
{
*(.user_flash_data)
} > CUSTOM_MEMORY = 0x27000 + (127 * 4096) : AT(0x27000 + (200 * 4096)) /* Reserved page 127 to 200 for the user log data */
}