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.

About memory access using GEL File

Guru 15520 points

Hi,

I have a question about GEL file.

When accessing NOR flash(on AM3358EVM) using GEL file,
GPMC CS signal goes active four times. The access is single write access.
(I checked the signal using oscilloscope)

But when accessing from program(not from GEL), GPMC CS goes active only one time.
I think this behavior is usual.

What will cause this behavior when accessing NOR flash from GEL file?

The following is what I'm doing:
1.Erase NOR Flash(by program)
2.Send Write Command to NOR Flash(by program)
3.Write value to NOR Flash from program or GEL file
  example: *(unsigned char*)0x0800000 = 0xAB;
  In either case the value is written to NOR flash appropriately.

best regards,
g.f.

  • Hi,
    Is there any information for this question?

    Today, I changed the GPMC configuration of data width from 8bit to 16bit.
    I tried accessing(8bit write access) to the CS0 area from GEL file, then CS0 signal got active two times.
    If data width was set to 8bit, CS0 signal got active four times(when 8bit write access).
    From this, I guess using GEL file for accessing memory, it always be 32bit-word access.
    Is it correct?

    best regards,
    g.f.

  • g.f. said:
    From this, I guess using GEL file for accessing memory, it always be 32bit-word access.
    Is it correct?

    I believe GEL should rely on what is defined in the debugger memory map to determine how to access memory. If the access size is undefined for that memory range (or if a memory map is not used at all), it would default to 32-bit on your device.

  • Hi Ki-Soo,

    Thank you for the reply.

    I changed the GEL API "GEL_MapAddStr()" and
    GPMC CS signal goes active one time. Thank you so much.

    By the way, I added "AS1" after "R|W" for 8bit access
    and "AS2" for 16bit access.

    best regards,
    g.f.