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:运行 uart_uniflash.py python 脚本

Guru**** 2225540 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/1501769/lp-am243-run-the-uart_uniflash-py-python-script

器件型号:LP-AM243
Thread 中讨论的其他器件:UNIFLASH

工具/软件:

您好、
运行 uart_uniflash.py python 脚本时、对外部闪存进行编程时遇到问题:

Fullscreen
1
2
3
4
5
c:\ti\cc33xx_mcu_package_R5\tools\secured_programing>py uart_uniflash.py -p COM6 --cfg=only_wifi_fw.cfg
[ERROR] Dependant modules not installed, use below pip command to install them. MAKE sure proxy for pip is setup if needed.
python -m pip install pyserial tqdm xmodem --proxy={http://your proxy server:port or leave blank if no proxy}
c:\ti\cc33xx_mcu_package_R5\tools\secured_programing>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

已安装 PIP ist:

Fullscreen
1
2
3
4
c:\ti\cc33xx_mcu_package_R5\tools\secured_programing>py -m pip --version
pip 25.0.1 from C:\Users\a0406234\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip (python 3.13)
c:\ti\cc33xx_mcu_package_R5\tools\secured_programing>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

重新安装失败:

Fullscreen
1
2
3
4
5
6
7
8
c:\ti\cc33xx_mcu_package_R5\tools\secured_programing>py -m pip install pyserial tqdm xmodem
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000004D45057E110>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyserial/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000004D4527B76D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyserial/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000004D4527B7F90>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyserial/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000004D4527B71D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyserial/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000004D4527B7A90>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyserial/
ERROR: Could not find a version that satisfies the requirement pyserial (from versions: none)
ERROR: No matching distribution found for pyserial
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

此致、Holger

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

    您好、Hogler:
    您所面临的问题似乎与您的防火墙限制 PIP 访问互联网有关。 提示:如果有防火墙、可能需要使用代理。


    谢谢、
    Shreyansh

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

    尊敬的 Shreyansh:

    好的、这是一个很好的提示。 但现在我坚持下一步:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    c:\ti\cc33xx_mcu_package_R5\tools\secured_programing>py uart_uniflash.py -p COM7 --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.4s.
    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'1'
    send error: error_count reached 10, aborting.
    Sending flash-phy-tuning-data_command: 6%|██▌ | 2/32 [01:35<47:57, 95.91s/bytes]
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    此致、Holger

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

    您好、Holger、

    如果您从 only_wifi_fw.cfg 中注释此闪存调优命令、能否检查是否观察到相同的问题

    此致、

    会面。

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

    尊敬的会议:
    同样的问题:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    c:\ti\cc33xx_mcu_package_R5\tools\secured_programing>py uart_uniflash.py -p COM7 --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.hs_fs.tiimage
    Sent flashwriter ./sbl_uart_uniflash.release.hs_fs.tiimage of size 296589 bytes in 27.58s.
    Executing command 2 of 5 ...
    Command arguments : --file=./sbl_ospi.release.hs_fs.tiimage --operation=flash --flash-offset=0x0
    Sending ./sbl_ospi.release.hs_fs.tiimage: 0%| | 0/301514 [00:00<?, ?bytes/s]send error: error_count reached 10, aborting.
    Sending ./sbl_ospi.release.hs_fs.tiimage: 0%| | 2/301514 [01:50<9219:57:26, 110.08s/bytes]
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!
    c:\ti\cc33xx_mcu_package_R5\tools\secured_programing>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    此致、Holger

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

    您好、Holger、

    您使用的是 TI EVM 还是定制电路板?

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

    TI EVM:LP-AM243

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

    您是否可以尝试使用 programming 文件夹中的 uniflash、而不是 secured_programming 文件夹。

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

    您好、

    我发现了错误。 我的电路板更旧了。

    ->如果您使用的是较旧的 LP 版本-请转到 <cc33xx_mcu_package>/tools/programming/

    谢谢、此致、Holger