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.

AM5706: CS configuration

Genius 17735 points

Part Number: AM5706

Hello,

My cusotmer has a question for CS configuration in GPMC.
Now they are using 3 CS area like the below.

CS0  0x0800_0000 ~ 0x09FF_FFFF
CS2  0x1800_0000 ~ 0x1FFF_FFFF
CS3  0x1000_0000 ~ 0x17FF_FFFF

CS3 is assinged to smaller address than CS2.
Is this configuration, larger number of CS area is assigned to smaller address area than smaller number of CS area,  allowed?

In this configuration, when trying to access to CS3 area, they can’t see any GPMC signal outputs from the device.
So somthing must be wrong.

The below is their configuration for CS2 and CS3. 

CONFIG1_0   0x0000_1000

CONFIG2_0   0x0008_1080

CONFIG3_0   not changed

CONFIG4_0   0x0701_EF96

CONFIG5_0   0x010F_0911

CONFIG6_0   0x0F07_0000

CONFIG7_0   0x0000_0E48 or 0x0000_0848

 

CONFIG1_2   0x0060_1000

CONFIG2_2   0x0007_0700

CONFIG3_2   not changed

CONFIG4_2   0x0601_E602

CONFIG5_2   0x0106_0B0A

CONFIG6_2   0x0707_0000

CONFIG7_2   0x0000_0858

 

CONFIG1_3   0x0000_1000

CONFIG2_3   0x0007_0B00

CONFIG3_3   not changed

CONFIG4_3   0x0601_EA01

CONFIG5_3   0x0109_070E

CONFIG6_3   0x0507_0000

CONFIG7_3   0x0000_0850

Do you see anything wrong?

Regards,
Oba

  • Hi,

    For GPMC, please refer to TRM and SDK user guide for information. We won't be able to review configurations.

    https://software-dl.ti.com/processor-sdk-rtos/esd/AM57X/08_01_00_09/exports/docs/rtos/index_device_drv.html#gpmc

  • Hello Stanley,

    Thanks for your reply. It seemes to be wrongly verified. 

    The below is my main question. Could you please check it?

    >>CS3 is assinged to smaller address than CS2.
    >>Is this configuration, larger number of CS area is assigned to smaller address area than smaller number of CS area,  allowed?

    >For GPMC, please refer to TRM and SDK user guide for information. We won't be able to review configurations.

    I checekd the register seetings, but I couldn't find anything wrong setting that could cause this problem.
    Then I postes this question.

    Regards,
    Oba

  • Please refer to TRM 15.4.4.8.1 Chip-Select Base Address and Region Size

  • Hello,

    I have already read the TRM 15.4.4.8.1 again and again, but I coudn't find any descirption about the below my question.

    >>CS3 is assinged to smaller address than CS2.
    >>Is this configuration, larger number of CS area is assigned to smaller address area than smaller number of CS area,  allowed?

    Regards,
    Oba

  • Hello,

    Based on the three CS area

    CS0  0x0800_0000 ~ 0x09FF_FFFF
    CS2  0x1800_0000 ~ 0x1FFF_FFFF
    CS3  0x1000_0000 ~ 0x17FF_FFFF

    we see that CS0 is 32 MB, CS2 & C3 are 128MB

    Also, we see you memtioned:

    CONFIG7_0   0x0000_0E48 or 0x0000_0848  -> why is there two values mentioned here? for 32MB CS size bit11:9 must be 0b1110

    CONFIG7_2   0x0000_0858 

    CONFIG7_3   0x0000_0850

    Can you comment?

    Thanks.

  • Hello,

    Thanks for your reply.
    They have 2 options, 32MB and 128MB, for CS0 on their board.

    So the correct memory map is like the below.

    CS0  0x0800_0000 ~ 0x0FFF_FFFF (128MB case) or 0x0800_0000 ~ 0x09FF_FFFF (32MB case)
    CS2  0x1800_0000 ~ 0x1FFF_FFFF
    CS3  0x1000_0000 ~ 0x17FF_FFFF


    Regards,
    Oba

  • Okay, in that case, we do not see any issue with the CONFIG7 registers for CS0, CS2, and CS3.

    Have other config register values verified for the different CS? Is this the first time GPMC has been used by the customer or it is an update from previous? Also, what is the reference being used for these, what is the OS used here?

    Also, we would like to let you know that we can provide limited support on GPMC as there is an expertise gap in our team. Our suggestion is TRM and to look at the working reference code to resolve.

    Thanks.

  • Hell Praveen,

    The OS is TI-RTOS. Other CS areas work well.
    They have already released some prodocuts with other AM57xx part number using GPMC.
    I'm asking to test with CS3 changing the address larger than CS2 just to see if the signals output or not.

    Regards,
    Oba

  • Hello Praveen,

    They finally found the root cause which was due to a MMU configuration.
    You can close this thread.

    Thank you very much for your support.

    Regards,
    Oba

  • Thanks for the note! will close the thread.