S32k144 || Boot loader jump to application issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32k144 || Boot loader jump to application issue

1,127 Views
nishanth_jegana
Contributor I

Hi 

We are using S32k144 in our project.

We took reference from AN12218 and AN12323 reference manual and code 

Now I am able to write my application code to the flash memory

but the boot loader is not jumping to the application code it is showing Hardware fault.

/*linker of bootloader*/

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

/* Flash */
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             = 0x10000000;
define symbol m_text_end               = 0x10003FFF;

/* SRAM_L */
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;

/* SRAM_U */
define symbol m_data_2_start           = 0x20000000;
define symbol m_data_2_end             = 0x20006FFF;

 

/*linker of application code*/

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

/* Flash */
define symbol m_interrupts_start       = 0x00001000;
define symbol m_interrupts_end         = 0x000013FF;

define symbol m_flash_config_start     = 0x00001400;
define symbol m_flash_config_end       = 0x0000140F;

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

/* SRAM_L */
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;

/* SRAM_U */
define symbol m_data_2_start           = 0x20000000;
define symbol m_data_2_end             = 0x20006FFF;

Can you suggest me where am I going wrong.

Tags (2)
0 Kudos
Reply
1 Reply

971 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 Kudos
Reply