AnsweredAssumed Answered

m_data is over flowed by 50k bytes MPC 5777M

Question asked by yalamanda dosakyala on Dec 7, 2016
Latest reply on Dec 8, 2016 by yalamanda dosakyala

Hi All, I am getting one error is m_data is over flowed by some 50k bytes, So as per one of the post in nxp community , I increased m_data section in 57xx_flash.ld file to 50k to the existing m_data which is (128k + 50k). So I am able to compile it , but when i flashed the code on to mpc5777m board , it is not at all working  and I am able to see the error _stack_end at

 

 

This is my linker file

 

/* Entry Point */
ENTRY(_start)

 

/* define heap and stack size */
__HEAP_SIZE            = 0 ;
__STACK_SIZE           = 4096 ;

 

/* Define Flash Base Address */
FLASH_SIZE =  2560K;    
FLASH_BASE_ADDR = 0x01000000;

 

/* Define SRAM Base Address */
/*SRAM_SIZE =  128K;*/
SRAM_SIZE =  178K;    (added 50k here)
SRAM_BASE_ADDR = 0x40000000;

 

/* Define Caching Inhibited RAM Base Address */
MPU_NOCACHE_SIZE = 8K;
/*MPU_NOCACHE_BASE_ADDR = 0x4001E000;*/
MPU_NOCACHE_BASE_ADDR = 0x4017B4E0;
/* Define CPU0 Local Instruction SRAM Base Address */
LOCALIMEM_SIZE = 16K;
LOCALIMEM_BASE_ADDR = 0x50000000;

 

/* Define CPU0 Local Data SRAM Base Address */
LOCALDMEM_SIZE = 64K;
LOCALDMEM_BASE_ADDR = 0x50800000;

 

    
MEMORY
{

 

    flash_rchw : org = 0x00FC0000,   len = 0x4
    cpu0_reset_vec : org = 0x00FC0000+0x10,   len = 0x4
    cpu1_reset_vec : org = 0x00FC0000+0x14,   len = 0x4
    cpu2_reset_vec : org = 0x00FC0000+0x04,   len = 0x4    
    cpuc_reset_vec : org = 0x00FC0000+0x18,   len = 0x4    
        
    m_text :    org = 0x1000000, len = 2560K  
    m_data :    org = 0x40000000,   len = 178K
    m_data_nocache :    org = 0x4017B4E0,   len = 8K
    
    int_iram  : org = 0x50000000,   len = 16K
    int_dram  : org = 0x50800000,   len = 64K   
}

 

I am not getting , how to solve this problem , can any one help me ?

Outcomes