I think, the linker script can influence this, too.
What do you think?
This is my modifications: (commented are the originals)
/* Specify the memory areas */
MEMORY
{
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400
m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0003FBF0
m_data (RW) : ORIGIN = 0x1FFFC000, LENGTH = 0x00006000
m_data_2 (RW) : ORIGIN = 0x20002000, LENGTH = 0x00008000
//m_data (RW) : ORIGIN = 0x1FFFC000, LENGTH = 0x00004000
//m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000
}
The left is the hex what I read back, the right is what I flash.
