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.

SK-AM62: SDK 9.0 flashing error.

Part Number: SK-AM62
Other Parts Discussed in Thread: UNIFLASH

Hello,

There was an error while I flashing binaries. I configured the boot mode, and saw "CCCC..." When I checked the other posts, I found similar issues. But they are for the previous SDKs, not for SDK 9.0

I did not stop, but the flashing log said as below.

boot$ python uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62ax-sk/default_sbl_ospi_nand_linux_hs_fs.cfg

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

Executing command 1 of 9 ...
Found flash writer ... sending sbl_prebuilt/am62ax-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
Sent flashwriter sbl_prebuilt/am62ax-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage of size 286255 bytes in 28.99s.

Executing command 2 of 9 ...
Command arguments : --file=../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0
Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 124509bytes [00:11, 10721.Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 125538bytes [00:11, 10716.Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 125538bytes [00:11, 10716.Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 125539bytes [00:11, 10716.Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 125540bytes [00:13, 10716.Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 125541bytes [00:13, 10716.Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 125542bytes [00:13, 10716.63bytes/s]
[ERROR] XMODEM recv failed, no response OR incorrect response from EVM OR cancelled by user,
Power cycle EVM and run this script again !!!

Best regards,

  • Hi,

    This mostly looks like Stage1 is failing to completely receive or boot the Stage 2 image & so the error comes. Before we debug this further, could you please clarify the following questions:

    • Are you working with TI board or custom board?
    • Does this issue occur every time or randomly?
    • Does the issue occur with previous SDK version also?

    Thanks & Regards,

    Prashant

  • Hello Prashant,

    • I am using a TI board.
    • This issue happened every time.
    • I did not use the previous SDK version.

    Thank you very much.

  • Hello Seunghyun,

    Sorry, I forgot to ask if you are using a GP or HSFS device. Could you please clarify the same?

    Thanks!

  • Hello Prashant,

    May I know how to check the device type?

    Best regards,

  • Hello Prashant,

    Thank you for your advice. The type is 'HSFS'

    ('DeviceType           :', 'HSFS')

    Best regards,

  • Hello Seunghyun,

    Thank you for following & providing all the details.

    Since the device type is HSFS, the issue can't be because of using incorrect images as you are using the HSFS images all along. I believe the issue must be because of Stage 1 failing to boot Stage 2 somehow.

    I am attaching below SBL UART Uniflash images generated on my side with which I have successfully tested the flashing procedure. Could you please once try the flashing procedure with the attached images & let me know how it goes.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/sbl_5F00_uart_5F00_uniflash_5F00_stage1.release.hs_5F00_fs.tiimage

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/sbl_5F00_uart_5F00_uniflash_5F00_stage2.release.appimage.hs_5F00_fs

    Regards,

    Prashant

  • Hello Prashant,

    I copied them.

    boot$ ll sbl_prebuilt/am62ax-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
    -rw-rw-r-- 1 seunghyun seunghyun 286244 11월 8 18:15 sbl_prebuilt/am62ax-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
    boot$ ll ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs
    -rw-rw-r-- 1 seunghyun seunghyun 123939 11월 8 18:15 ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs

    I executed the script.

    boot$ python uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62ax-sk/default_sbl_ospi_nand_linux_hs_fs.cfg

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

    Executing command 1 of 9 ...
    Found flash writer ... sending sbl_prebuilt/am62ax-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage
    Sent flashwriter sbl_prebuilt/am62ax-sk/sbl_uart_uniflash_stage1.release.hs_fs.tiimage of size 286244 bytes in 29.18s.

    Executing command 2 of 9 ...
    Command arguments : --file=../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0
    Sending ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 0%| | 0/123971 [00:00<?,
    [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user,
    Power cycle EVM and run this script again !!!

    boot$

    But I faced a different error as above.

    Best regards,

    Seunghyun Roh

  • Hi Seunghyun,

    Thank you for following. The images I shared were tested successfully on my side & if you are using TI AM62A board then the images should have worked.

    Could you please reinstall the SDK & then try the flashing procedure again. If it still fails, could you please share the following:

    1) The full parsed output from the SocID parser script you followed from the previous FAQ.

    2) The Stage1 & Stage2 Uniflash images with which the flashing is failing. I will try them once on my board & see if it works.

    Regards,

    Prashant