AnsweredAssumed Answered

.ICF(IAR) Changes Flash bootloader

Question asked by kalidass B on Oct 16, 2016
Latest reply on Oct 18, 2016 by Kerry Zhou

Hi,

   I'm using Freescale controller for bootloader design when i'm running in ram debug mode flash is writing but when i'm selecting flash.icf through IAR execute flash write command sequence MCU getting reset.

 

i am not changed any .ICF boot location, whether it is need to change start location? 

 

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;
}

Outcomes