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.

[参考译文] LP-AM243:无法将引导加载程序编程到 LP-AM243x+BP-CC3301

Guru**** 1788580 points
Other Parts Discussed in Thread: UNIFLASH, LP-AM243
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1400227/lp-am243-failed-to-program-bootloader-to-lp-am243x-bp-cc3301

器件型号:LP-AM243x

工具与软件:

您好!

我将按照"CC33XX RTOS MCU 用户指南"中的"入门"指南来设置 AM243x 和 CC33XX。 我已到达第4步、但遇到错误:

D:\ti\cc33xx_mcu_package_R4\tools\programing>python uart_uniflash.py -p COM32 --cfg=only_wifi_fw.cfg

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

Executing command 1 of 6 ...
Found flash writer ... sending ./sbl_uart_uniflash.release.tiimage
Sent flashwriter ./sbl_uart_uniflash.release.tiimage of size 294775 bytes in 27.1s.

Executing command 2 of 6 ...
Command arguments : --operation=flash-phy-tuning-data
Sending flash-phy-tuning-data_command:   0%|                                                 | 0/32 [00:00<?, ?bytes/s]send error: expected NAK, CRC, EOT or CAN; got b'0'
send error: expected NAK, CRC, EOT or CAN; got b'2'
send error: expected NAK, CRC, EOT or CAN; got b'0'
send error: expected NAK, CRC, EOT or CAN; got b'0'
send error: expected NAK, CRC, EOT or CAN; got b'0'
send error: expected NAK, CRC, EOT or CAN; got b'0'
send error: expected NAK, CRC, EOT or CAN; got b'0'
send error: expected NAK, CRC, EOT or CAN; got b'0'
send error: expected NAK, CRC, EOT or CAN; got b'0'
send error: expected NAK, CRC, EOT or CAN; got b'1'
send error: expected NAK, CRC, EOT or CAN; got b'1'
send error: error_count reached 10, aborting.
Sending flash-phy-tuning-data_command:   6%|██▌                                      | 2/32 [00:01<00:59,  2.00s/bytes]
[ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
Power cycle EVM and run this script again !!!

-完成了 AM243x MCU+ SDK 的"入门"指南。
-已使用 UniFlash 成功刷写 default_sbl_null.cfg。

-我已经确认 SW4开关位于正确的位置。
-在尝试刷写过程之前、可以在 UART 串行控制台上看到"C"字符。

-我已经 对 EVM 下电上电并运行此脚本 多次、但错误仍然存在。

-我尝试了命令提示符,有和没有管理员权限。

-我已尝试在编程之前断开 BP-33X1连接

环境:

-mcu_plus_sdk_am243x_08_05_00_24、 mcu_plus_sdk_am243x_09_02_00_50

-cc33xx_mcu_package_R4

-CCS 12.7.1.

-SysConfig 1.18.1、1.12.0、1.21.0

-TI_Clang 2.1.0 LTS、1.3.0 LTS

Windows 10

-ASSY:PROC109A (001)

如果您在排除此 XMODEM 发送故障方面有任何帮助、我们将不胜感激!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Leo:

    能否发送 only_wifi_fw.cfg 文件的屏幕截图。 我还会检查 microUSB 电缆是否与 AM243器件正确连接。 另外、请确保该 COM 端口上没有任何其他内容(例如 putty)。 最后要检查的是将开关设置为正确的引导模式。 您需要该配置

    此致!

    Rogelio

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的  Rogelio:

    1.下面是 only_wifi_fw.cfg 的屏幕截图。  未对 ONLY_WIFI_FW.cfg 进行任何修改。

    2.我与 AM243x-LP 具有正确的连接、因为我可以成功地根据 AM243x MCU+ SDK 09.02.00入门指南对 cfg 文件进行编程。 但是、我无法对 ONLY_WIFI_FW.cfg 进行编程。  

    3.我确定没有其他应用程序打开了任何串行端口。

    4.我已经按照教程中的连接说明进行了操作。 我提供了一张开关位置的图片以供参考。

    以下是我做过的其他几次尝试:

    1.我尝试将 mcu_plus_sdk_am243x_09_02_00_50\tools\boot 中的 uart_uniflash.py 脚本替换为 cc33xx_mcu_package_r4\tools\programming 中的脚本、但问题仍然存在。

    2.我尝试在命令中注释掉--operation=flash-phy-tuning-data 选项,但过程仍然停留在命令2。

    D:\ti\cc33xx_mcu_package_R4\tools\programing>python uart_uniflash.py -p COM32 --cfg=only_wifi_fw.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 5 command(s) !!!
    
    Executing command 1 of 5 ...
    Found flash writer ... sending ./sbl_uart_uniflash.release.tiimage
    Sent flashwriter ./sbl_uart_uniflash.release.tiimage of size 294775 bytes in 27.41s.
    
    Executing command 2 of 5 ...
    Command arguments : --file=./sbl_ospi.release.tiimage --operation=flash --flash-offset=0x0
    Sending ./sbl_ospi.release.tiimage:   0%|                                                | 0/299700 [00:00<?, ?bytes/s]send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'2'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: error_count reached 10, aborting.
    Sending ./sbl_ospi.release.tiimage:   0%|                                    | 2/299700 [00:02<166:52:16,  2.00s/bytes]
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!

    我尝试了从 AM243x MCU+ SDK 09.02.00入门指南重新运行命令、有效! 我无法理解为什么该指南中的命令有效、但 only_wifi_fw.cfg 文件的命令无效(https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/09_02_00_50/exports/docs/api_guide_am243x/GETTING_STARTED_FLASH.html)

    Python uart_uniflash.py -p COM148 --cfg=sbl_prebuilt/am243x-lp/default_sbl_ospi.cfg 

    我开始失去想法了。 非常感谢您提出任何进一步的建议!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Leo:

    嗯,一切似乎都正确的在你的最后 我刚刚在我这边进行了测试、实际上在我的第三次完整性检查中遇到了相同的错误。 但是、在重置器件并重新运行脚本后、它成功完成了测试。

     MINGW64 /c/ti/cc33xx_mcu_package_R4/tools/secured_programing
    $ python uart_uniflash.py -p COM123 --cfg=only_wifi_fw.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 6 command(s) !!!
    
    Executing command 1 of 6 ...
    Found flash writer ... sending ./sbl_uart_uniflash.release.hs_fs.tiimage
    Sent flashwriter ./sbl_uart_uniflash.release.hs_fs.tiimage of size 296589 bytes in 29.03s.
    
    Executing command 2 of 6 ...
    Command arguments : --operation=flash-phy-tuning-data
    Sending flash-phy-tuning-data_command:   0%|          | 0/32 [00:00<?, ?bytes/s]
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!
    
     MINGW64 /c/ti/cc33xx_mcu_package_R4/tools/secured_programing
    $ python uart_uniflash.py -p COM123 --cfg=only_wifi_fw.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 6 command(s) !!!
    
    Executing command 1 of 6 ...
    Found flash writer ... sending ./sbl_uart_uniflash.release.hs_fs.tiimage
    Sent flashwriter ./sbl_uart_uniflash.release.hs_fs.tiimage of size 296589 bytes in 28.65s.
    
    Executing command 2 of 6 ...
    Command arguments : --operation=flash-phy-tuning-data
    Sent flash phy tuning data in 1.61s.
    [STATUS] SUCCESS !!!
    
    Executing command 3 of 6 ...
    Command arguments : --file=./sbl_ospi.release.hs_fs.tiimage --operation=flash --flash-offset=0x0
    Sent ./sbl_ospi.release.hs_fs.tiimage of size 301482 bytes in 29.73s.
    [STATUS] SUCCESS !!!
    
    Executing command 4 of 6 ...
    Command arguments : --file=../wifi_fw/cc33xx_fw.bin --operation=flash --flash-offset=0x800000
    Sent ../wifi_fw/cc33xx_fw.bin of size 521568 bytes in 49.23s.
    [STATUS] SUCCESS !!!
    
    Executing command 5 of 6 ...
    Command arguments : --file=../wifi_fw/cc33xx_2nd_loader.bin --operation=flash --flash-offset=0x900000
    Sent ../wifi_fw/cc33xx_2nd_loader.bin of size 70212 bytes in 9.24s.
    [STATUS] SUCCESS !!!
    
    Executing command 6 of 6 ...
    Command arguments : --file=../wifi_fw/cc33xx-conf.bin --operation=flash --flash-offset=0xb00000
    Sent ../wifi_fw/cc33xx-conf.bin of size 1129 bytes in 3.17s.
    [STATUS] SUCCESS !!!
    
    All commands from config file are executed !!!
    

    不过、我的器件是安全器件、您能否确认您使用的是不需要安全编程的较早一代 am243。 如果没有、则可能需要使用该文件夹、而不仅仅是 编程。

    此致!

    Rogelio

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我在遇到错误时尝试重置器件、但脚本仍然停留在 步骤2

    D:\ti\cc33xx_mcu_package_R4\tools\programing>python uart_uniflash.py -p COM32 --cfg=only_wifi_fw.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 6 command(s) !!!
    
    Executing command 1 of 6 ...
    Found flash writer ... sending ./sbl_uart_uniflash.release.tiimage
    Sent flashwriter ./sbl_uart_uniflash.release.tiimage of size 294775 bytes in 28.1s.
    
    Executing command 2 of 6 ...
    Command arguments : --operation=flash-phy-tuning-data
    Sending flash-phy-tuning-data_command:   0%|                                                 | 0/32 [00:00<?, ?bytes/s]send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'2'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: error_count reached 10, aborting.
    Sending flash-phy-tuning-data_command:   6%|██▌                                      | 2/32 [00:02<01:00,  2.01s/bytes]
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!
    
    D:\ti\cc33xx_mcu_package_R4\tools\programing>python uart_uniflash.py -p COM32 --cfg=only_wifi_fw.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 6 command(s) !!!
    
    Executing command 1 of 6 ...
    Found flash writer ... sending ./sbl_uart_uniflash.release.tiimage
    Sent flashwriter ./sbl_uart_uniflash.release.tiimage of size 294775 bytes in 27.42s.
    
    Executing command 2 of 6 ...
    Command arguments : --operation=flash-phy-tuning-data
    Sending flash-phy-tuning-data_command:   0%|                                                 | 0/32 [00:00<?, ?bytes/s]send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'2'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: error_count reached 10, aborting.
    Sending flash-phy-tuning-data_command:   6%|██▌                                      | 2/32 [00:02<01:00,  2.00s/bytes]
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!
    
    D:\ti\cc33xx_mcu_package_R4\tools\programing>python uart_uniflash.py -p COM32 --cfg=only_wifi_fw.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 6 command(s) !!!
    
    Executing command 1 of 6 ...
    Found flash writer ... sending ./sbl_uart_uniflash.release.tiimage
    Sent flashwriter ./sbl_uart_uniflash.release.tiimage of size 294775 bytes in 27.54s.
    
    Executing command 2 of 6 ...
    Command arguments : --operation=flash-phy-tuning-data
    Sending flash-phy-tuning-data_command:   0%|                                                 | 0/32 [00:00<?, ?bytes/s]send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'2'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: error_count reached 10, aborting.
    Sending flash-phy-tuning-data_command:   6%|██▌                                      | 2/32 [00:02<01:00,  2.01s/bytes]
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!
    
    D:\ti\cc33xx_mcu_package_R4\tools\programing>

    我尝试 在 secured_programming 下运行脚本、但我被困在了步骤1中。

    D:\ti\cc33xx_mcu_package_R4\tools\secured_programing>python uart_uniflash.py -p COM32 --cfg=only_wifi_fw.cfg
    
    Parsing config file ...
    Parsing config file ... SUCCESS. Found 6 command(s) !!!
    
    Executing command 1 of 6 ...
    Found flash writer ... sending ./sbl_uart_uniflash.release.hs_fs.tiimage
    Sending ./sbl_uart_uniflash.release.hs_fs.tiimage:   0%|                                 | 0/296589 [00:00<?, ?bytes/s]send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'2'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'0'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: expected NAK, CRC, EOT or CAN; got b'1'
    send error: error_count reached 10, aborting.
    Sending ./sbl_uart_uniflash.release.hs_fs.tiimage:   0%|                     | 2/296589 [00:03<257:58:16,  3.13s/bytes]
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!
    
    

    我的电路板标记为 PROC109A (001)、源自 TI 网上商店  2024年6月16日 . 根据指南"如果您使用的是安全 MCU (LP-AM243 PROC1093B 或更高版本)、请打开 /tools/secured_programming 文件夹中找到。" 因此、PROC1093B 比 PROC109A 更新得多、对吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、是否有关于此问题的任何更新?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Leo:  

    您能尝试使用安全编程脚本吗、看看得到了什么结果。 另请尝试运行 program_application_and _wifi_fw.cfg、看到行为变化会很有意思。 不幸的是,我不能重复这个问题在我身边和你的第一个运行它的人,但从你所说的,你似乎正在正确地做所有步骤。 如果您认为可以帮助您确保正在采取所有步骤、我可以录制该过程的视频。

    此致!

    Rogelio

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    重新安装所有组件后、问题已解决、但我不确定导致修复的确切更改。 感谢您的支持。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Leo:

    Im 很高兴您能够安装并运行该工具。 绝对是一个奇怪的问题,如果多个情况继续发生,请牢记它。

    此致!

    Rogelio