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: Run the uart_uniflash.py python script

Part Number: LP-AM243
Other Parts Discussed in Thread: UNIFLASH,

Tool/software:

Hi,
I have problems to program the external flash when Run the uart_uniflash.py python script:

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>

pip ist installed:

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>

a reinstall fails:

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

Regards, Holger

  • Hi Hogler,
    It seems that the issue you are facing is related to your firewall restricting pip from accessing internet. Hint: You need to probably use a proxy if you have a firewall.


    Thanks,
    Shreyansh

  • Hi Shreyansh,

    ok, that was a good hint. But now I stick in the next step:

    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 !!!

    Regards, Holger

  • Hi Holger,

    Could you please check if you observe the same issue if you comment this flash tuning command from in only_wifi_fw.cfg

    Best Regards,

    Meet.

  • Hi Meet,
    same problem:

    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>

    Regards, Holger

  • Hi Holger,

    Are you using a TI EVM or a custom board?

  • TI EVM: LP-AM243

  • Can you try once with the uniflash in the programming folder instead of secured_programing folder.

  • Hi,

    I found the mistake. I have an older board.

    -> If you are using an older LP version - move to the <cc33xx_mcu_package>/tools/programming/

    Thanks, Regards Holger