This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DDR3Configuration_mapfilenotUpdating

Hi,

I am trying to boot my code through SPI nor flash. My code uses DDR3, so I want to initialize DDR3. I am adding emif4Cfg in my main file but after build .map file is not showing emif4Cfg section and DDR_CFG used memory is also 0. Why map file is not updating? I am using 6678 Rev2 DSP. I am attaching my project for reference. Can anyone help to solve the problem.

Thank You,

Nithin0842.Boot_DDR.zip

  • Hi,

    I have reviewed your test code, i try to modified your .cfg file it is properly reflected on .cmd file.

    MEMORY
    {
        DDR_CFG   :  origin = 0x873500, length = 0x5000
    	L2MAGIC   :  origin = 0x87fffc, length = 0x4
    
    	DDR3       :  origin = 0x80000000, length = 0x40000
    }
    
    
    SECTIONS
    {
        .emif4Cfg > DDR_CFG
        .stack > DDR_CFG
    	.msmc  > DDR3
    	.data  > DDR3
    	.far   > DDR3
    	.text  > DDR3
    	.const > DDR3
    	.cinit > DDR3
    	GROUP (NEAR_DP)
        {
        .neardata
        .rodata
        .bss
        } load > DDR3
    	.cio   > DDR3
    	.switch > DDR3
    	.sysmem >DDR3
    	platform_lib > DDR3
    	.fardata >DDR3
    
    	.lmagic > L2MAGIC
    	
    }

    I think problem on your test *.c code, you does not configured the memory section(.emif4Cfg) properly. Refer MCSDK example code to resolve your issue.

    Thanks,

  • Thank You Ganapathy,
    Can you please mention where I am doing wrong or which MCSDK example code I have to refer. I am trying to initialize emif4Cfg using one of the posts in this forum and I changed only values corresponding to 6678 DSP. Can you please point out where I am doing wrong.
    Thank you for your patience and reply.
    Regards,
    Nithin
  • Refer MCSDK post example "\ti\mcsdk_2_01_02_06\tools\post\evmc6678l"
  • Thank you for the reply Ganapathy,

    I referred thr post project you referred and tried exactly what is done in post project but  emif4Cfg section is not showing in .map file generated and used DDR_CFG is 0. Can you please help to sort out the issue, it is very urgent.

    Thanks and regards,

    Nithin

  • Hi,

    I am not expert on this topic. Please refer the below compiler forum thread to add #pragma RETAIN on your test code, it should be help you.

    I have tried to add this part on your code, it is works properly.

    //#pragma DATA_SECTION(emif4Cfg, ".emif4Cfg")
    #pragma RETAIN(emif4Cfg)
    #pragma location=0x00873500
    const BOOT_EMIF4_TBL_T  emif4Cfg = {
    .
    .
    .
    .
    .
    }

    Thanks,

  • Thank You for the reply Ganapathi,
    I followed what you suggested and .emif4Cfg section is adding in the map file and DDR_CFG used space is also not 0. I am trying with evm led blink project and I changed all sections to load in to DDR3 and emif4Cfg is adding in the map file . When I load led.out file after loading GEL file, leds are blinking. I created a .dat file using hex6x,b2i2c,b2ccs, romparse etc and loaded into NOR flash. when I power off and power on leds are not blinking. DDr3 config values I gave at emif4Cfg are there at 0x00873500, but booting is not happening.

    emif4Cfg
    000280F5 00000001 00000010 00000002
    63062A32 00000000 00001450 1113783C
    30717FE3 559F86AF 00000000 00000000
    00000000 00000000 00000000 00000000
    00000000 70073214 00000000 0010010F
    00000000 00000000 00000000 00000000
    00000000

    What might be the reason. where I am doing wrong. Please guide me to solve the issue.



    Thank You,
    Nithin