Hi Robin,
I saw that I have empty space that reserved for vector table and changed the project setting and now I can load the code.
MEMORY {
m_interrupts (RWX) : ORIGIN = 0x00000000, LENGTH = 0x000000C0
my_flash_seg (RX) : ORIGIN = 0x000000C0, LENGTH = 0x00000312
m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x00001BF0
m_data (RW) : ORIGIN = 0x1FFFFF00, LENGTH = 0x00000400
m_cfmprotrom (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
}
/* Define output sections */
SECTIONS
{
/* Section created to relocate code in specific Flash address */
.my_section :
{
. = ALIGN(4);
KEEP( *(.mysegment)) /* This is the tag you use in code */
. = ALIGN(4);
} > my_flash_seg
And I am using the
" __attribute__ ((section(".mysegment"))) "
Code is running but I get Alert before burn in the code , Please see attached picture.
