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.

AM335x GPMC stops working

Other Parts Discussed in Thread: AM3352

Hi,

We are trying to implement Asynchronous Single write access through AM3352 GPMC,
but the CPU stops working if the  WRCYCLETIME is set to 10.

The AM335x is connected to FPGA(MAX10) through GPMC with the below configuration.

Asynchronous Single write Nonmultiplexed Device:

 ・Interface Type              Asynchronous
 ・ACCESSTYPE           "Single"
 ・CHIP SELECT No        "5"
 ・DEVICETYPE          "NORLIKE"
 ・MULTIPLEXER           "Nonmultiplexed"
 ・CSWROFFTIME          "8"
 ・CSONTIME                 "2"
 ・ADVWROFFTIME        "0"
 ・ADVONTIME               "0"
 ・WEOFFTIME              "6"
 ・WEONTIME                "0"
 ・WRCYCLETIME          "10"


The CPU stops working if WRCYCLETIME = 10 but the CPU works normal if the  WRCYCLETIME
is set to large values like "16".
Please let me know what could be the reason for CPU halt with lower WRCYCLETIME values.

Best Regards
kummi

  • Hi,

    What software is this?
  • Hi Biser,

    The software is Starterware and SYS/BIOS.

    Best Regards
    Kummi
  • The RTOS team have been notified. They will respond here.
  • Please post the GPMC_CONFIGx register values.
  • Hi Biser,

    Thank you and I am sorry for the delay.

    Below is the register details.

    GPMC_CONFIG    0x00000A00
    GPMC_STATUS    0x00000101
    GPMC_CONFIG1_0 0x00401300
    GPMC_CONFIG2_0 0x00101001
    GPMC_CONFIG3_0 0x22060514
    GPMC_CONFIG4_0 0x10057016
    GPMC_CONFIG5_0 0x010F1111
    GPMC_CONFIG6_0 0x8F070000
    GPMC_CONFIG7_0 0x00000F00
    GPMC_CONFIG1_1 0x00401000
    GPMC_CONFIG2_1 0x00101001
    GPMC_CONFIG3_1 0x22060514
    GPMC_CONFIG4_1 0x10057016
    GPMC_CONFIG5_1 0x010F1111
    GPMC_CONFIG6_1 0x8F070000
    GPMC_CONFIG7_1 0x00000F00
    GPMC_CONFIG1_2 0x00401000
    GPMC_CONFIG2_2 0x00101001
    GPMC_CONFIG3_2 0x22060514
    GPMC_CONFIG4_2 0x10057016
    GPMC_CONFIG5_2 0x010F1111
    GPMC_CONFIG6_2 0x8F070000
    GPMC_CONFIG7_2 0x00000F00
    GPMC_CONFIG1_3 0x00401000
    GPMC_CONFIG2_3 0x00101001
    GPMC_CONFIG3_3 0x22060514
    GPMC_CONFIG4_3 0x10057016
    GPMC_CONFIG5_3 0x010F1111
    GPMC_CONFIG6_3 0x8F070000
    GPMC_CONFIG7_3 0x00000F00
    GPMC_CONFIG1_4 0x00401000
    GPMC_CONFIG2_4 0x00101001
    GPMC_CONFIG3_4 0x22060514
    GPMC_CONFIG4_4 0x10057016
    GPMC_CONFIG5_4 0x010F1111
    GPMC_CONFIG6_4 0x8F070000
    GPMC_CONFIG7_4 0x00000F00
    GPMC_CONFIG1_5 0x00641000
    GPMC_CONFIG2_5 0x00080802
    GPMC_CONFIG3_5 0x00000000
    GPMC_CONFIG4_5 0x06020801
    GPMC_CONFIG5_5 0x000A100A
    GPMC_CONFIG6_5 0x8F0701C1
    GPMC_CONFIG7_5 0x00000F55
    GPMC_CONFIG1_6 0x00401000
    GPMC_CONFIG2_6 0x00101001
    GPMC_CONFIG3_6 0x22060514
    GPMC_CONFIG4_6 0x10057016
    GPMC_CONFIG5_6 0x010F1111
    GPMC_CONFIG6_6 0x8F070000
    GPMC_CONFIG7_6 0x00000F00
    GPMC_NAND_COMMAND_5 0xFFFFFFFF
    GPMC_NAND_ADDRESS_5 0xFFFFFFFF
    GPMC_NAND_DATA_5 0xFFFFFFFF

    Best Regards
    Kummi

  • What is of interest are these registers:

    GPMC_CONFIG    0x00000A00
    GPMC_STATUS    0x00000101
    GPMC_CONFIG1_5 0x00641000
    GPMC_CONFIG2_5 0x00080802
    GPMC_CONFIG3_5 0x00000000
    GPMC_CONFIG4_5 0x06020801
    GPMC_CONFIG5_5 0x000A100A
    GPMC_CONFIG6_5 0x8F0701C1
    GPMC_CONFIG7_5 0x00000F55

    I will check them and reply again.
  • Kummi said:
    The CPU stops working if WRCYCLETIME = 10 but the CPU works normal if the  WRCYCLETIME is set to large values like "16".

    From what I see your WRACCESSTIME is set to 15 (bits 28-24 in GPMC_CONFIG6_5). This could be the cause.

  • Another thing that may be affecting this is that you have enabled WAIT monitoring on pin WAIT0, active high. You should also check this.