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.

TMDS64EVM: AM6442 dfu-util issue

Genius 3186 points
Part Number: TMDS64EVM
Other Parts Discussed in Thread: UNIFLASH

Hi

May I ask about AM64 usb dfu?

My customer have a issue at flashing process in this manual.

https://dev.ti.com/tirex/content/mcu_plus_sdk_am64x_08_06_00_43/docs/api_guide_am64x/GETTING_STARTED_FLASH_DFU.html#:~:text=the%20config%20file.-,Flashing%20the%20application%20using%20USB%20DFU,-AM64X%2DEVM 

I wrote under the logs

(using hs_fs image in cfg)

--

c:\ti\mcu_plus_sdk_am64x_08_06_00_43\tools\boot>python usb_dfu_uniflash.py --cfg=sbl_prebuilt/am64x-evm/default_dfu_ospi_hsfs.cfg

Parsing config file ...
Parsing config file ... SUCCESS. Found 4 command(s) !!!

Executing command 1 of 4 ...
Found flash writer ... sending sbl_prebuilt/am64x-evm/sbl_dfu_uniflash.release.hs_fs.tiimage
----------------------------------------------------------------------------
Executing DFU command with alt_setting=0 interface=0 transfer_size=512
----------------------------------------------------------------------------
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 0451:6165
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Copying data from PC to DFU device
Download        [=========================] 100%       323317 bytes
Download done.
state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
state(2) = dfuIDLE, status(0) = No error condition is present
Done!
Sent flashwriter sbl_prebuilt/am64x-evm/sbl_dfu_uniflash.release.hs_fs.tiimage of size 323317 bytes in 1.57s. Bandwidth = 201.11kbps

Executing command 2 of 4 ...
Command arguments : --operation=flash-phy-tuning-data
------------------------------------------------------
Waiting for DFU device to be enumerated ....
------------------------------------------------------
------------------------------------------------------
Waiting for DFU device to be enumerated ....
------------------------------------------------------
------------------------------------------------------
Waiting for DFU device to be enumerated ....
------------------------------------------------------
------------------------------------------------------
Waiting for DFU device to be enumerated ....
------------------------------------------------------
------------------------------------------------------
Waiting for DFU device to be enumerated ....
------------------------------------------------------
------------------------------------------------------
Waiting for DFU device to be enumerated ....
------------------------------------------------------
------------------------------------------------------
Waiting for DFU device to be enumerated ....
------------------------------------------------------

--

and under, Waiting for DFU device to be enumerated .... keeps comming up.

How we could go to next step?

Could you let me your opinion and advice? 

--

The dfu-util -I is this,

c:\ti\mcu_plus_sdk_am64x_08_06_00_43\tools\boot\sbl_prebuilt\am64x-evm>dfu-util -l
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Found DFU: [0451:6165] ver=0200, devnum=35, cfg=1, intf=0, alt=1, name="SocId", serial="01.00.00.00"
Found DFU: [0451:6165] ver=0200, devnum=35, cfg=1, intf=0, alt=0, name="bootloader", serial="01.00.00.00"

Thanks,

GR

  • Hi GR,

    C:\ti\mcu_plus_sdk_am64x_08_06_00_43\tools\boot>python usb_dfu_uniflash.py --cfg=sbl_prebuilt\am64x-evm\default_dfu_ospi.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 5 command(s) !!!
    
    Executing command 1 of 5 ...
    Found flash writer ... sending sbl_prebuilt/am64x-evm/sbl_dfu_uniflash.release.tiimage
    ----------------------------------------------------------------------------
    Executing DFU command with alt_setting=0 interface=0 transfer_size=512
    ----------------------------------------------------------------------------
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6165
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0110
    Device returned transfer size 512
    Warning: Overriding device-reported transfer size
    Copying data from PC to DFU device
    Download        [=========================] 100%       321503 bytes
    Download done.
    DFU state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Sent flashwriter sbl_prebuilt/am64x-evm/sbl_dfu_uniflash.release.tiimage of size 321503 bytes in 1.61s. Bandwidth = 195.01kbps
    
    Executing command 2 of 5 ...
    Command arguments : --operation=flash-phy-tuning-data
    ------------------------------------------------------
    Waiting for DFU device to be enumerated ....
    ------------------------------------------------------
    ------------------------------------------------------
    Waiting for DFU device to be enumerated ....
    ------------------------------------------------------
    ------------------------------------------------------
    Waiting for DFU device to be enumerated ....
    ------------------------------------------------------
    ------------------------------------------------------
    Waiting for DFU device to be enumerated ....
    ------------------------------------------------------
    ------------------------------------------------------
    Waiting for DFU device to be enumerated ....
    ------------------------------------------------------
    ------------------------------------------------------
    Waiting for DFU device to be enumerated ....
    ------------------------------------------------------
    ------------------------------------------------------
    Waiting for DFU device to be enumerated ....
    ------------------------------------------------------
    ------------------------------------------------------

    The above is not code, but the snapshot of the result of dfu flashing. Although I am on GP board and not hsfs, I am able to reproduce the issue.

    Please allow me sometime to look at the same. 

    BR Vaibhav

  • Hi GR,

    Upon close discussion within the team, we found out that the problem seems to be with driver installation.

    I am attaching the logs which show successful execution of the usb dfu uniflash command.

    Parsing config file ...
    Parsing config file ... SUCCESS. Found 5 command(s) !!!
    
    Executing command 1 of 5 ...
    Found flash writer ... sending sbl_prebuilt/am64x-evm/sbl_dfu_uniflash.release.tiimage
    ----------------------------------------------------------------------------
    Executing DFU command with alt_setting=0 interface=0 transfer_size=512
    ----------------------------------------------------------------------------
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6165
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0110
    Device returned transfer size 512
    Warning: Overriding device-reported transfer size
    Copying data from PC to DFU device
    Download        [=========================] 100%       321503 bytes
    Download done.
    DFU state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Sent flashwriter sbl_prebuilt/am64x-evm/sbl_dfu_uniflash.release.tiimage of size 321503 bytes in 1.59s. Bandwidth = 197.46kbps
    
    Executing command 2 of 5 ...
    Command arguments : --operation=flash-phy-tuning-data
    ------------------------------------------------------
    Waiting for DFU device to be enumerated ....
    ------------------------------------------------------
    ----------------------------------------------------------------------------
    Executing DFU command with alt_setting=0 interface=0 transfer_size=512
    ----------------------------------------------------------------------------
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6166
    Device DFU version 0101
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0101
    Device returned transfer size 512
    Warning: Overriding device-reported transfer size
    Copying data from PC to DFU device
    Download        [=========================] 100%           32 bytes
    Download done.
    DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Sent flash phy tuning data in 1.1s.
    True
    Executing command 3 of 5 ...
    Command arguments : --file=sbl_prebuilt/am64x-evm/sbl_ospi.release.tiimage --operation=flash --flash-offset=0x0
    ----------------------------------------------------------------------------
    Executing DFU command with alt_setting=0 interface=0 transfer_size=512
    ----------------------------------------------------------------------------
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6166
    Device DFU version 0101
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0101
    Device returned transfer size 512
    Warning: Overriding device-reported transfer size
    Copying data from PC to DFU device
    Download        [=========================] 100%       317439 bytes
    Download done.
    DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Sent sbl_prebuilt/am64x-evm/sbl_ospi.release.tiimage of size 317407 bytes in 4.43s. Bandwidth = 69.97kbps
    True
    Executing command 4 of 5 ...
    Command arguments : --file=../../examples/drivers/ipc/ipc_notify_echo/am64x-evm/system_freertos_nortos/ipc_notify_echo_system.release.appimage --operation=flash --flash-offset=0x80000
    ----------------------------------------------------------------------------
    Executing DFU command with alt_setting=0 interface=0 transfer_size=512
    ----------------------------------------------------------------------------
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6166
    Device DFU version 0101
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0101
    Device returned transfer size 512
    Warning: Overriding device-reported transfer size
    Copying data from PC to DFU device
    Download        [=========================] 100%       158377 bytes
    Download done.
    DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Sent ../../examples/drivers/ipc/ipc_notify_echo/am64x-evm/system_freertos_nortos/ipc_notify_echo_system.release.appimage of size 158345 bytes in 2.32s. Bandwidth = 66.65kbps
    True
    Executing command 5 of 5 ...
    Command arguments : --file=../../examples/drivers/ipc/ipc_notify_echo/am64x-evm/system_freertos_nortos/ipc_notify_echo_system.release.appimage_xip --operation=flash-xip
    ----------------------------------------------------------------------------
    Executing DFU command with alt_setting=0 interface=0 transfer_size=512
    ----------------------------------------------------------------------------
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6166
    Device DFU version 0101
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0101
    Device returned transfer size 512
    Warning: Overriding device-reported transfer size
    Copying data from PC to DFU device
    Download        [=========================] 100%          224 bytes
    Download done.
    DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Sent ../../examples/drivers/ipc/ipc_notify_echo/am64x-evm/system_freertos_nortos/ipc_notify_echo_system.release.appimage_xip of size 192 bytes in 1.1s. Bandwidth = 0.17kbps
    True
    All commands from config file are executed !!!

    Here is the fix, so past the line "--operation=flash-phy-tuning-data", I saw you were getting "Waiting for DFU device to be enumerated".

    At this point(don't kill the command and let it search for dfu devices), open the application zadig, and you will find the device option as: AM64x-AM243x DFU.

    Simply click on the "Install Driver" button and this will make sure that the drivers for using SBL DFU are installed.

    Let me know if this works for you. Documentation link: software-dl.ti.com/.../SDK_DOWNLOAD_PAGE.html

    BR Vaibhav

  • Hi Vaibhav,

    Thanks for your support.

    My customer tried Install Driver by the way refer to manual.

    However in Zadig, there was not "AM64x-AM243x DFU" , there was "AM64x DFU".

    Is there any difference ,version?

    And Could we use AM64x DFU?

    Best regards,

    GR

  • Hi GR,

    Initially it will show AM64x DFU as shown in the image below.


    After the above step has been done, run the command shown in the image below. Post this you should be able to see AM64x-AM243x DFU.

    If this helps let me know else I will hand you a screengrab.

    Best Regards,

    Vaibhav