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.

AM6548: programming FlashWriter on AM65xx Platform via TI's uniflash tool.

Part Number: AM6548
Other Parts Discussed in Thread: UNIFLASH

Hi,

I am having a try about programming FlashWriter on AM65xx Platform via TI's uniflash tool.

I was following http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_board.html#programming-flashwriter-on-am65xx-platform steps by steps.

It was all OK until I execute  C:\ti\uniflash_4.5.0>dslite.bat --mode processors -c COM6 -f C:\ti\uniflash0\processors\uart_am65xx_evm_flash_programmer.out -d 3 -o 0

The command line outputs   "Transferring Header information.." ,

but it remains this status after I wait for 30 minute.

I also tried Erasing Flash Device according to http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_board.html#erasing-flash-device-on-the-target-platform

I execute the command C:\ti\uniflash_4.5.0>dslite.bat --mode processors -c COM6 -e 10000 -d 3 -o 0

The command line also outputs "Transferring Header information.."  and remained this status didn't outputs "Flash Programming Success!"

I wonder why it is always "Transferring Header information.. ",what problem I met?


I really appreciate your help, thanks in advance.

 

Best Regards

Hope Chen

  • Thanks for posting your question.
    Our response may be delayed due the holidays.
  • Hi
    Don't care too much,
    have a nice holiday. ☺

    Best Regards
  • Hi,

    Can you try with the latest Processor SDK RTOS 5.02? Does the tool work with -d 4 option?

    Best Regards,
    Yordan
  • Hi ,
    I am using the latest version,and it didn't work with -d 4 option too,
    can't write and can't erase.
  • 1. Run the program and confirm that character ‘C’ is getting printed on the host PC serial console. Make a note of the COM port number.
    2. Close the serial console, disconnect and reconnect the serial cable to USB2UART port (J42) of the board.

    Please let me know if this has been done already.

    Warning:
    If you open the UART on a terminal application like minicom or hyperterm or serial terminal app to see if the ‘CCCC’ is being output, make sure to close the application before executing dslite. Disconnect and re-connect the Serial cable to reset the connection. If a terminal program like minicom or hyperterminal is run first, the dslite script might not run successfully.

    Thank you.
  • Hi
    I have done these already.
    I am sure that character ‘C’ is getting printed on the host PC serial console and then I Close the serial console, disconnect and reconnect the serial cable to USB2UART port (J42) of the board.

    Best Regards
    Hope Chen
  • Hope,

    I have tried this at my end and have been able to successfully erase the OSPI on the EVM.   Here is the detailed process on what I have done and have also tried to highlight some things that I found when using this process.

    Steps :

    1. Download and install the Uniflash version v.4.5.0 from http://www.ti.com/tool/UNIFLASH

    2. Setup the CCS for AM65xx to configure DDR and load the DMSC firmware. Refer below link for detailed instructions

    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/How_to_Guides.html#ccs-host-setup 

    3. Connect the USB cable between USB2UART port (J42) of the board and host PC
    Configure board for no boot mode ( SW2 all switches OFF, SW3 Switch 1 ON)

    Configure the serial console application on host PC to connect to MAIN UART0 port
    There will be four COM ports detected on the host PC. Connect to the first COM port out of four

    4. Launch target config file for AM65xx platform and connect to A53 core.
    Load the flash writer binary ..\uniflash_4.5.0\processors\FlashWriter\am65xx_evm\uart_am65xx_evm_flash_programmer.out to A53 core

    5. Run the program and confirm that character 'C' is getting printed on the host PC sertial console. Make a note of the COM port number

    Close the serial console, disconnect and reconnect the serial cable  to the host. Re-enumerate the port on the host.

    6. Go to Uniflash root folder and run the below command to erase OSPI flash
    dslite.bat --mode processors -c <COM Port#> -e 10000 -d 3 -o 0

    Status 

    OSPI_Erase_Log.txt

    C:\ti\uniflash_4.5.0>dslite.bat --mode processors -c COM33 -e 10000 -d 3 -o 0
    Executing the following command:
    > C:\ti\uniflash_4.5.0\processors\ProcessorSDKSerialFlash.exe -c COM33 -e 10000 -d 3 -o 0
    
    For more details and examples, please visit http://processors.wiki.ti.com/index.php/UniFlash_v4_Quick_Guide#Command_Line_Interface
    
    
    ----------------------------------------------------------------------------
    ProcessorSDKSerialFlash CLI Tool
    Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
    Version 0.2
    ----------------------------------------------------------------------------
    Erasing Flash....
    
    Transferring Header information..
    Header Transfer Complete!!
    Flash Erase Success!
    

    Hope this helps.

    Regards,

    Rahul

    PS: Can you confirm that you disconnect the cable on the host and not on the board

  • Hi Rahul

    thanks very much, I really appreciate your help.

    but it still doesn't work.

    step1 is OK. I have downloaded it.

    about step2,my output in CCS is as below, does it meas that I have already configure DDR and load the DMSC firmware successfully?

    and

    step3~step6 are all the same as your answer.

    but   when I execute dslite.bat --mode processors -c COM6 -e 10000 -d 3 -o 0

    still remains Transferring Header information.. and cannot goes on.

    and I run the SD card diag program to test OSPI

    result is as below, does it means that there is something wrong with my board's OSPI flash? 

    >PS: Can you confirm that you disconnect the cable on the host and not on the board

    I disconnect the cable both on the host and board.

  • Hope,

    Since we are not able to reproduce each others setup, I have created a video with screen capture to show this interface working with Uniflash 4.5.0 and AM654x  beta EVM. Please check the above to see that your steps match the same.

    I checked with the development team if there are any known issues and they have the following questions:

    • Is the port number confirmed to be Main SOC UART port ? Can you check in device manager that after you disconnect and reconnect you get the same port numbers?
    • Is there a large time delay between when you launch. It appears the UART loader application run from A53 times out after 25 retries. IF this the case, I would recommend that you, reload the out file and restart the app on A53 as shown in the video

    Regards,

    Rahul

  • Hi Rahul

    Thanks for your screen video, I have know how to load it into OSPI flash
    I truly appreciate your help
    Words cannot express how thankful I am.
    TI support is the best I have ever seen.

    Best Regards
    Hope Chen
  • Hi Rahul
    Thanks for your screen video. I have know how to load it into flash.
    I truly appreciate your help, words cannot express how thankful I am,
    TI support is the best I have ever seen.
    Best Regards
    Hope Chen