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.

J721EXSOMXEVM: image flash in eMMC using Uniflash failed!

Part Number: J721EXSOMXEVM
Other Parts Discussed in Thread: UNIFLASH

Hello,

I am trying to flash the image in J7 based custom board. I am trying to flash the image in eMMC over UART using Uniflash. This is the command I am trying 

sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/uart_j721e_evm_flash_programmer_release.tiimage -i 0
sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/tiboot3.bin -d 4 -o 0
sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/tispl.bin -d 4 -o 80000
sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/u-boot.img -d 4 -o 280000
sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/sysfw.itb -d 4 -o 6C0000

/dev/ttyUSB2 is where boot ROM prints character "C" periodically. Also I disconnect the UART cable & power cycle the board each time I made attempt to flash the image.

First image (i.e. uart_j721e_evm_flash_programmer_release.tiimage) flashed correctly. However when I try to flash "tiboot3.bin" & other binaries I get error "Transmit of header Failed!" Please see the log for details 

slaldas@daimler:/opt/ti/uniflash_6.1.0$ sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/uart_j721e_evm_flash_programmer_release.tiimage -i 0
Executing the following command:
> ./ProcessorSDKSerialFlash -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/uart_j721e_evm_flash_programmer_release.tiimage -i 0

For more details and examples, please refer to the UniFlash Quick Start guide.


----------------------------------------------------------------------------
ProcessorSDKSerialFlash CLI Tool
Copyright (C) 2017-2020 Texas Instruments Incorporated - http://www.ti.com/
Version 1.3.0.0
----------------------------------------------------------------------------
Downloading Flash Programmer..
Opening Port Successful!

Transferring File of size 215005 bytes
File Transfer complete!
slaldas@daimler:/opt/ti/uniflash_6.1.0$ sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/tiboot3.bin -d 4 -o 0
Executing the following command:
> ./ProcessorSDKSerialFlash -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/tiboot3.bin -d 4 -o 0

For more details and examples, please refer to the UniFlash Quick Start guide.


----------------------------------------------------------------------------
ProcessorSDKSerialFlash CLI Tool
Copyright (C) 2017-2020 Texas Instruments Incorporated - http://www.ti.com/
Version 1.3.0.0
----------------------------------------------------------------------------
Transferring the Image to Flash Programmer..
Opening Port Successful!
Transmit of header Failed!
File Transfer Failed!

This is the first time I am trying to flash this custom board. Could you please let me know what I am missing here.

Just to give some more information -

We have two boot switch on the board and they are set to UART mode i.e. 

MCU_BOOTMODE (S1) [1:8] - 0111 0000
BOOTMODE (S2) [1:8] - 0000 0000

I also tried flashing OSPI instead of eMMC by just changing the command line argument "-d 3" instead of "-d 4" and I am getting exact failure i.e. "Transmit of header Failed!"

Thanks,

Satish

  • Sometime the Error I get is "Failure:Unknown response from target! Please check the connection!" Here is the log 

    slaldas@daimler:/opt/ti/uniflash_6.1.0$ sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/tiboot3.bin -d 4 -o 0
    Executing the following command:
    > ./ProcessorSDKSerialFlash -c /dev/ttyUSB2 -f /home/slaldas/ivpimage/tiboot3.bin -d 4 -o 0
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2020 Texas Instruments Incorporated - http://www.ti.com/
    Version 1.3.0.0
    ----------------------------------------------------------------------------
    Downloading Flash Programmer..
    Opening Port Successful!
    
    Failure:Unknown response from target! Please check the connection!
    

  • I tried to erase the memory which fails as well with the same error i.e. "NAK: Transmit of header Failed". 

    At this time, since I am not transferring the file, I am assuming the error has nothing to do with the binary files i.e. tiboot3.bin , tispl.bin uboot etc. It looks like  Uniflash is not working properly and this has nothing to do with the binary image.

    Any help to resolve this issue would be useful. 

    Here is the log where I tried to erase memory in eMMC - 

    slaldas@daimler:/opt/ti/uniflash_6.1.0$ sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -e 80000 -d 4 -o 0
    Executing the following command:
    > ./ProcessorSDKSerialFlash -c /dev/ttyUSB2 -e 80000 -d 4 -o 0
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    Opening Port Successful!
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2020 Texas Instruments Incorporated - http://www.ti.com/
    Version 1.3.0.0
    ----------------------------------------------------------------------------
    Erasing Flash....
    
    Transferring Header information..
    NAK: Transmit of header Failed
    Header Transfer Failed!
    

  • Did you follow the instructions here ?

    Your setup looks correct. I am not entirely sure of the issue but let's try.

    I see that your flash programmer is not inside the Uniflash directory. J721E is supported out of the box with Uniflash 6.1.0 so you can just use the command (example)

    sudo ./dslite.sh --mode processors -c /dev/ttyUSB1 -f /home/xyz/ti/uniflash_6.1.0/processors/FlashWriter/j721e_evm/uart_j721e_evm_flash_programmer_release.tiimage -i 0

    Also, you mentioned that this is a custom board, so there could be HW issues as well. If this does not work then can you reach out to your TI representative and we can take that forward

    Regards

    Vineet

  • Hi Vineet,

    Thank you for the reply. 

    Yes I have been following the very same link you mentioned in your reply. I also read and tried a good portion of other posts about flashing the image.

    On Flash writer directory -

    I wanted to collect all binaries in one single directory which helped me to form a single path for all the binaries. The flash programmer i.e. uart_j721e_evm_flash_programmer_release.tiimage" copied from FlashWriter directory from my system i.e. /opt/ti/uniflash_6.1.0/processors/FlashWriter/j721e_evm.

    Sure I will contact my TI's representative and then we will take it forward.

    Thank you again,

    Satish

  • Hi Vineet,

    I tried your step and it is failing as well. However this time it attempts  SysFw enable and then fails.

    slaldas@daimler:/opt/ti/uniflash_6.1.0$ sudo ./dslite.sh --mode processors -c /dev/ttyUSB2 -f /opt/ti/uniflash_6.1.0/processors/FlashWriter/j721e_evm/uart_j721e_evm_flash_programmer_release.tiimage -i 0
    Executing the following command:
    > ./ProcessorSDKSerialFlash -c /dev/ttyUSB2 -f /opt/ti/uniflash_6.1.0/processors/FlashWriter/j721e_evm/uart_j721e_evm_flash_programmer_release.tiimage -i 0
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2020 Texas Instruments Incorporated - http://www.ti.com/
    Version 1.3.0.0
    ----------------------------------------------------------------------------
    Downloading Flash Programmer..
    Opening Port Successful!
    
    Transferring File of size 215005 bytes
    File Transfer complete!
    
    Enabling SysFw transfer!!!
    NAK: Transmit of header Failed
    

    Anyway I just wanted to try your step before I contact my TI's representative .

    Thank you,

    Satish

  • Hi Satish,

    Since we are following up on email, can we close this E2E ? It looks like you are following the right steps and the issue might be something else.

    I am going to suggest this as an answer and if it's ok, please accept it.

    Regards

    Vineet

  • Sure Vineet! Thank you for your help here.