AnsweredAssumed Answered

.ICF file changes for flash bootloader in IAR (kinetis)

Question asked by kalidass B on Oct 16, 2016
Latest reply on Oct 17, 2016 by David E Seymour

Hi All,

          Please suggest me how to configure .icf file for bootloader design.

this my current .icf file in IAR

 

define symbol __ram_vector_table_size__ = isdefinedsymbol(__flash_vector_table__) ? 0 : 0x00000400;
define symbol __ram_vector_table_offset__ = isdefinedsymbol(__flash_vector_table__) ? 0 : 0x000003FF;

define symbol m_interrupts_start = 0x00000000;
define symbol m_interrupts_end = 0x000003FF;

define symbol m_flash_config_start = 0x00000400;
define symbol m_flash_config_end = 0x0000040F;

define symbol m_text_start = 0x00000410;
define symbol m_text_end = 0x0007FFFF;

define symbol m_interrupts_ram_start = 0x1FFF8000;
define symbol m_interrupts_ram_end = 0x1FFF8000 + __ram_vector_table_offset__;

define symbol m_data_start = m_interrupts_ram_start + __ram_vector_table_size__;
define symbol m_data_end = 0x1FFFFFFF;

define symbol m_data_2_start = 0x20000000;
define symbol m_data_2_end = 0x20006FFF;

/* Sizes */
if (isdefinedsymbol(__stack_size__)) {
define symbol __size_cstack__ = __stack_size__;
} else {
define symbol __size_cstack__ = 0x0400;
}

if (isdefinedsymbol(__heap_size__)) {
define symbol __size_heap__ = __heap_size__;
} else {
define symbol __size_heap__ = 0x0400;
}

 

 

Regards,

kalidass

Outcomes