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.

problems with memory map on eZdsp with TMS320F28335



 Hi,

i immigrate a program from F2812 to F28335 DSP.

my problem is, if i write the program to the dsp i get a failure like:

 "Data varification failed at address 0x200000. Please verify target memory and memory map."

can anybody help me?

best regards Marco

 my command file is:

MEMORY
{
PAGE 0 :
   /* BEGIN is used for the "boot to SARAM" bootloader mode      */
   /* BOOT_RSVD is used by the boot ROM for stack.               */
   /* This section is only reserved to keep the BOOT ROM from    */
   /* corrupting this area during the debug process              */
  
   BEGIN      : origin = 0x000000, length = 0x000002     /* Boot to M0 will go here                      */
   BOOT_RSVD  : origin = 0x000002, length = 0x00004E     /* Part of M0, BOOT rom will use this for stack */              
   RAMM0      : origin = 0x000050, length = 0x0003B0

   RAML0      : origin = 0x008000, length = 0x001000   
   RAML1      : origin = 0x009000, length = 0x001000   
   RAML2      : origin = 0x00A000, length = 0x001000   
   RAML3      : origin = 0x00B000, length = 0x001000
   ZONE7A     : origin = 0x200000, length = 0x00FC00    /* XINTF zone 7 - program space */
   CSM_RSVD   : origin = 0x33FF80, length = 0x000076     /* Part of FLASHA.  Program with all 0x0000 when CSM is in use. */
   CSM_PWL    : origin = 0x33FFF8, length = 0x000008     /* Part of FLASHA.  CSM password locations in FLASHA            */
   ADC_CAL    : origin = 0x380080, length = 0x000009
   RESET      : origin = 0x3FFFC0, length = 0x000002
   IQTABLES   : origin = 0x3FE000, length = 0x000b50
   IQTABLES2  : origin = 0x3FEB50, length = 0x00008c
   FPUTABLES  : origin = 0x3FEBDC, length = 0x0006A0
   BOOTROM    : origin = 0x3FF27C, length = 0x000D44              

        
PAGE 1 :
   RAMM1      : origin = 0x000400, length = 0x000400     /* on-chip RAM block M1 */
   RAML4      : origin = 0x00C000, length = 0x0011C8   
   RAML5      : origin = 0x00D1C8, length = 0x0026CB   
   RAML6      : origin = 0x00F893, length = 0x0003B6   
   RAML7      : origin = 0x00FC49, length = 0x0003B6
   ZONE7B     : origin = 0x20FC00, length = 0x000400     /* XINTF zone 7 - data space */
}
 
 
SECTIONS
{
   /* Setup for "boot to SARAM" mode:
      The codestart section (found in DSP28_CodeStartBranch.asm)
      re-directs execution to the start of user code.  */
   codestart        : > BEGIN,     PAGE = 0
/*   ramfuncs         : > RAML0,     PAGE = 0*/
   ramfuncs         : LOAD = RAML0,
                      RUN = RAML0,
                      LOAD_START(_RamfuncsLoadStart),
                      LOAD_END(_RamfuncsLoadEnd),
                      RUN_START(_RamfuncsRunStart),
                      PAGE = 0 
   .text            : > ZONE7A,     PAGE = 0
   .cinit           : > RAML0,     PAGE = 0
   .pinit           : > RAML0,     PAGE = 0
   .switch          : > RAML0,     PAGE = 0
  
   .stack           : > RAMM1,     PAGE = 1
   .ebss            : > RAML4,     PAGE = 1
   .econst          : > RAML5,     PAGE = 1     
   .esysmem         : > RAMM1,     PAGE = 1

   IQmath           : > RAML1,     PAGE = 0
   IQmathTables     : > IQTABLES,  PAGE = 0, TYPE = NOLOAD
   IQmathTables2    : > IQTABLES2, PAGE = 0, TYPE = NOLOAD
   FPUmathTables    : > FPUTABLES, PAGE = 0, TYPE = NOLOAD
     
   DMARAML4         : > RAML4,     PAGE = 1
   DMARAML5         : > RAML5,     PAGE = 1
   DMARAML6         : > RAML6,     PAGE = 1
   DMARAML7         : > RAML7,     PAGE = 1
  
   ZONE7DATA        : > ZONE7B,    PAGE = 1 

   .reset           : > RESET,     PAGE = 0, TYPE = DSECT /* not used                    */
   csm_rsvd         : > CSM_RSVD   PAGE = 0, TYPE = DSECT /* not used for SARAM examples */
   csmpasswds       : > CSM_PWL    PAGE = 0, TYPE = DSECT /* not used for SARAM examples */
  
   /* Allocate ADC_cal function (pre-programmed by factory into TI reserved memory) */
   .adc_cal     : load = ADC_CAL,   PAGE = 0, TYPE = NOLOAD
    
}

  •  0x200000 is part of the XINTF and is zone 7. 

    Two thoughts:

    * On the ezdsp I believe there is external ram connected to zone 6 only (address 0x100000).  I suggest double checking the documentation on this.

    * Otherwise, you will need to enable the XINTF clock and configure the GPIO MUX registers for XINTF funcionality before you can load to XINTF.  There should be a funciton called XINTF_Enable() in the .gel file that will do this for you. 

  •  Hi,

    thank you for this idea, with the gel function the programm sections will write to ZONE7A on the F28335.

    best regards

    Marco

  •  

    I'm experiencing something similar.

    I'm running my program from the external SRAM on the ezDsp28335 and find that I must execute the XINTF enable GEL file before each download, even if I didn't power down the ezDsp.

    I was wondering if anyone knows of a way to get the GEL to execute automatically before each download.

     

  • Make sure you have the F28335.gel loaded in the CCS project.  This GEL file has the following function that executes automatically before the program is loaded:

    OnPreFileLoaded()
    {
        XINTF_Enable();
        if (TxtOutCtl==0)
        {
         GEL_TextOut("\nNOTES:\nGel will enable XINTFx16 during Debug only.\nEnable XINTF in code prior to use.");
         GEL_TextOut("\nFPU Registers can be found via GEL->Watch FPU Registers.");
      TxtOutCtl=1;
        }
    }

     

     

  • Thanks, that worked great!