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.

AM6442: Method to use Gang programmer on OSPI external flash(2)

Part Number: AM6442

Tool/software:

Continues from this thread:

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1516237/am6442-method-to-use-gang-programmer-on-ospi-external-flash/5861002#5861002

When AM6442 using the flash, some configuration register is set.

that is why customer's device boot up properly when they copy the flash exactly the same.

What registers/informations should be written into the device?

Regards,

Ted

  • Hi Ted,

    some configuration register is set.

    When you say configuration register is set, do you mean the external flash configuration register or the OSPI controller register.

    Regards,

    Vaibhav

  • Hello Vaibhav,

    Frankly speaking, I'm not familiar with AM64x so I'm asking is there any internal non-volatile register or memory the customer should take care about.

    which is related to the external memory.

    The reason customer ask this is, when they copy the external memory exactly the same to the other board, without AM64, and then they attached new AM64x, booting was failed.

    Regards,

    Ted

  • Frankly speaking, I'm not familiar with AM64x so I'm asking is there any internal non-volatile register or memory the customer should take care about.

    which is related to the external memory.

    The reason customer ask this is, when they copy the external memory exactly the same to the other board, without AM64, and then they attached new AM64x, booting was failed.

    Hi Ted,

    To comment on this, I would have you firstly look at the flash's datasheet.

    Based on the previous post. I could not understand what is the flash part in use. Please mention the flash name.

    Thanks,

    Vaibhav

  • Hello Vaibhav,

    it's S28HS512TGABHI010

    Sorry about not mentioning it.

    Regards,

    Ted

  • Hi Ted,

    it's S28HS512TGABHI010

    Thank you for mentioning this.

    Please let me know if you would like to operate in Uniform or Hybrid sector mode? Currently in the SDK we configure the Flash to operate in Uniform mode.

    Based on your response, I can proceed to tell you about the configurations which are done on both the sides OSPI Controller and external Flash.

    Regards,

    Vaibhav

  • Hi Vaivhav,

    They are using Uniform mode.

    Regards,

    Ted

  • Hi Ted,

    Allow me sometime to provide a follow up.

    Regards,

    Vaibhav

  • Hi Ted,

    They are using Uniform mode.

    Thank you for the following information.

    Can you let me know the bootmode in which Customer is trying to boot?

    Regards,

    Vaibhav

  • Hi Vaibhav,

    It is OSPI.

    Regards,

    Ted

  • Hi Ted,

    I am assuming you are referring to the 1S-1S-8S flow as mentioned here:

    Please also let me know the value of bootmode pin 8. For bootmode pin 7 I am assuming it is set to 0.

    Regards,

    Vaibhav

  • Hello Viabhav,

    Here's the customer's setting

     xSPI BOOT mode,SFDP enabled

     pin7 - 0

    pin8 - 0

    pin9 -  1

    Overall  boot mode pin

    Bit 0 ->                     ->15

    1000 1110 0100 0000

     under this,

     read SFDP with 1S-1S-1S. after that mode will be changed into 8D-8D-8D.

    Regards,

    Ted 

  • Hi Ted,

    I have understood now, that the bootmode used is xSPI bootmode where 1s-1s-1s is initial and switch to 8d-8d-8d is made, hence booting takes place.

    This also implies that since it is starting in 1s-1s-1s so the flash should be set in 3 byte addressing mode, but if it is in 4 byte addressing mode to begin with, then the booting will not even start at all.

    The bit I am talking about is:

    Regards,

    Vaibhav

  • The bit you highlighted has 0 value on factory reset

    so do you mean customer needs to check the bit whether it has set to 1 accidentally or not?

    or they need to special care when they writing the image? 

    for example, some part with 3byte address and the other with 4byte address?

    Sorry for asking you about other company's device but please help.

    Regards,

    Ted

  • Hi Ted,

    so do you mean customer needs to check the bit whether it has set to 1 accidentally or not?

    or they need to special care when they writing the image? 

    for example, some part with 3byte address and the other with 4byte address?

    Sorry for asking you about other company's device but please help.

    About this, let me give you a background of how ROM operates. So before booting ROM does not performs a reset of the flash for xSPI boot mode, currently only for Serial NAND bootmode the ROM issues a reset but not for other bootmodes.

    Now talking about the following:

    so do you mean customer needs to check the bit whether it has set to 1 accidentally or not?

    The answer would be a yes.

    Regards,

    Vaibhav