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.

Debugging GPMC Subsystem in AM3517

Expert 1125 points
Other Parts Discussed in Thread: AM3517

 

Hi,

 

We are debugging our custom board(AM3517) using CCSv4 and We are not using LINUX just a low level debugging.

Vaibhav taught me about AM3517 EVM's sample code, but still we are confused with the debugging procedure.

Actually while trying to debug GPMC(NOR),  the memory window displays "0BAD0BAD",

and don't understand the meaning of this.

Please guide me if there is something missing in the settings and if there are any suggestions.

 

There is a wiki page on AM3517 GPMC_Subsystem here, but the source code is not there,

could you please get me that source code.

 

Thankyou 

Prad.

  • Prad said:

    Actually while trying to debug GPMC(NOR),  the memory window displays "0BAD0BAD",

    and don't understand the meaning of this.

    This 0BAD0BAD usually means that you are trying to access a location that is invalid. This could be for a few reasons, the first of which would be that you have the wrong address for the view memory window, so I would verify you have the right location first.

    The second most common reason on a device like AM3517 would be that whatever address you are trying to access is just not valid yet, as the peripheral that contains the address is either not configured properly or is not receiving power/clock from the PRCM. There should be some code in your GEL file to do the PRCM initialization to ensure the peripherals you need are powered up and ready to go, but if not that could explain an inability to access the address space.

    Prad said:

    There is a wiki page on AM3517 GPMC_Subsystem here, but the source code is not there,

    could you please get me that source code.

    I don't believe there is source code to give, it looks like the page was created with a template that had a heading for source code that was not removed.

  • Hi,

     

    Thankyou,

     

    Actually we are using the Gel file provided for LogicPD's AM3517 EVM,

    and the PRCM settings are in the default state, 

     

        GEL_MapAddStr(0x48306000, 0, 0x00002000, "R|W|AS4", 0);  /* PRCM - module Region A */

        GEL_MapAddStr(0x48308000, 0, 0x00000800, "R|W|AS4", 0);  /* PRCM - module Region B */

        GEL_MapAddStr(0x48309000, 0, 0x00001000, "R|W|AS4", 0);  /* PRCM - L4 interconnect */

     

    In the MemoryMap_Init() section we have changed the settings as below.

     

     /* !! FOLLOWING MEM SPACE TO BE CONFIGURED PROPERLY !! */

      GEL_MapAddStr(0x00000000, 0, 0x40000000, "R|W|AS2", 0);  /* GPMC */

      GEL_MapAddStr(0x40200000, 0, 0x4020FFFF, "R|W", 0);    /* GPMC */

     

    We are using NOR flash and we can read the memory connected to cs1 and cs2 but cannot read the memory connected to cs0

    i.e BAD0 is displayed on the memory window.

    I don't know what else we are missing. 

     

    Regards.