主题中讨论的其他器件: UNIFLASH
工具与软件:
我正在尝试 使用运行 Ubuntu 24.04 LTS 的 Raspberry Pi 通过 USB 对 TMDS243EVM 板进行编程。
我已安装 dfu-util 已安装并正常工作。
引导模式开关按如下方式进行设置。
某 同事使用过 usb_bootloader.py 使用一个简单的 hello world 示例在 Windows 系统上成功对 EMV 进行编程、但它正在 等待我。
我使用的映像文件和参数与她在 Windows 系统上使用的相同。 我尚未在 Raspberry Pi 上安装 CCS、但已复制整个 CCS ~/ti/mcu_plus_sdk_am243x_09_01_00_41/tools/boot 与 Pi 和 hello word 图像相关联。
看起来编程是从加载开始的 sbl_prebuilt/am243x-evm/sbl_dfu.debug.hs_fs.tiimage 但在无法枚举 DFU 后失败。 除非我对 EVM 进行下电上电、否则它会无限期地挂起。
在本例中、我会运行脚本、当脚本挂起"等待枚举 DFU 器件..."时。 我重新启动 EVM、然后继续并完成示例编程会话:
pi@rpi3-desktop-Ubuntu24:~/ccs12-sdk9.01.00.41-tools$ sudo python3 usb_bootloader.py -b sbl_prebuilt/am243x-evm/sbl_dfu.debug.hs_fs.tiimage -i 0 -f hello_world_am243x-evm_r5fss0-0_nortos_ti-arm-clang.appimage.hs_fs ---------------------------------------------------------------- Sending the SBL DFU bootloader sbl_prebuilt/am243x-evm/sbl_dfu.debug.hs_fs.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 sourceforge.net/.../ dfu-util: Warning: Invalid DFU suffix signature dfu-util: 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% 363845 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 bootloader sbl_prebuilt/am243x-evm/sbl_dfu.debug.hs_fs.tiimage of size 363845 bytes in 1.9s. ---------------------------------------------------------------- ---------------------------------------------------------------- Sending the application hello_world_am243x-evm_r5fss0-0_nortos_ti-arm-clang.appimage.hs_fs ... ------------------------------------------------------ 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 .... ------------------------------------------------------ ---------------------------------------------------------------------------- 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 sourceforge.net/.../ dfu-util: Warning: Invalid DFU suffix signature dfu-util: 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% 40298 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 application hello_world_am243x-evm_r5fss0-0_nortos_ti-arm-clang.appimage.hs_fs of size 40298 bytes in 1.25s. ---------------------------------------------------------------- pi@rpi3-desktop-Ubuntu24:~/ccs12-sdk9.01.00.41-tools$
我正在尝试设置一个能够用于我们的目标板(通过 USB 连接的 AM243x)的自动编程工具。 重启 MID 脚本是一个问题。 自动进行下电上电可能会成为一个问题。
我想获得一些有关 API 的清晰说明 usb_bootloader.py 和 usb_dfu_uniflash.py 如果这样可以更好地达到我的目的、但我找不到任何这些工具的文档。