Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hi Team,
I have installed ti-processor-sdk-linux-am62xx-evm-10.00.07.04 in Linux. and modify the configuration file to flash emmc through UART. below is the configuration file used.hsm@c001149862:~/ti/bin/uart_uniflash/bin/am62xx-lp-evm$ ls
example_sbl_ospi_nand_linux_hs.cfg sbl_uart_uniflash_stage1.release.hs_fs.tiimage sbl_uart_uniflash_stage2.release.appimage.hs sbl_uart_uniflash_stage2.release.appimage.hs_fs.tmp
example_sbl_ospi_nand_linux_hs_fs.cfg sbl_uart_uniflash_stage1.release.hs.tiimage sbl_uart_uniflash_stage2.release.appimage.hs_fs sbl_uart_uniflash_stage2.release.appimage.hs.tmp
hsm@c001149862:~/ti/bin/uart_uniflash/bin/am62xx-lp-evm$ cat example_sbl_ospi_nand_linux_hs_fs.cfg
#-----------------------------------------------------------------------------#
# #
# EXAMPLE CONFIGURATION FILE TO BE USED WITH THE FLASHWRITER SCRIPT #
# #
#-----------------------------------------------------------------------------#
#
# - You can customized this config file to point to your own bootloader and/or application images
# - You can use --operation=flashverify if you just want to verify the flash contents and not flash the file.
# how to use: python uart_uniflash.py -p {name of your UART com port} --cfg={path to your edited config file}
# help: python uart_uniflash.py --help
#
# First point to sbl_uart_uniflash_stage1 binary, which initialises DDR and receives sbl_uart_uniflash_stage2 binary
--flash-writer=/home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
# When sending sbl_uart_uniflash_stage2 binary make sure to flash at SOC memory offset 0x0.
# Points to sbl_uart_uniflash_stage2 binary, which function's as a server to flash one or more
--file=/home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0
# Now send one or more files to flash or flashverify as needed. The order of sending files does not matter
# Flash tiboot3.bin
--file=/home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/tiboot3.bin --operation=flash-emmc --flash-offset=0x0
# Flash tispl.bin
--file=/home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/tispl.bin --operation=flash-emmc --flash-offset=0x80000
# Flash u-boot.img
--file=/home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/u-boot.img --operation=flash-emmc --flash-offset=0x280000
hsm@c001149862:~/ti/bin/uart_uniflash/bin/am62xx-lp-evm$
and set board boot mode as UART, try to flash using sbl_uart_uniflash.py with above attached cfg file. below is the error facing.
hsm@c001149862:~/ti/bin/uart_uniflash$
hsm@c001149862:~/ti/bin/uart_uniflash$ python3.8 uart_uniflash.py -p /dev/ttyUSB0 --cfg=/home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/example_sbl_ospi_nand_linux_hs_fs.cfg
Parsing config file ...
Parsing config file ... SUCCESS. Found 5 command(s) !!!
Executing command 1 of 5 ...
Found flash writer ... sending /home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
Sent flashwriter /home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage1.release.hs_fs.tiimage of size 246676 bytes in 24.54s.
Executing command 2 of 5 ...
Command arguments : --file=/home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0
Sending /home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 122468bytes [00:13, 10718.41bytes/s]error_count reached 16, aborting.
Sending /home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 122470bytes [00:13, 10718.41bytes/s]
[ERROR] XMODEM recv failed, no response OR incorrect response from EVM OR cancelled by user,
Power cycle EVM and run this script again !!!
hsm@c001149862:~/ti/bin/uart_uniflash$
Could you please help me on this. thanks