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.

AM2612: Cannot flash Zephyr mcelf_xip image

Part Number: AM2612
Other Parts Discussed in Thread: UNIFLASH

I am trying to flash the sample_xip_app from the latest REL.AM261X-4.2.0-ti-26.00.00.00 Zephyr release.  I followed the steps list in the board README but receive the following error when I go to run the uart_uniflash script.

C:\ti\ind_comms_sdk_am261x_10_02_00_17\mcu_plus_sdk\tools\boot>python uart_uniflash.py -p COM11 --cfg="C:\Development\git\buad\dl100_prime\communication_board\build\zephyr-arm-zephyr-eabi-armv7-debug\bin\ssi\uart_uniflash_sample_xip.cfg"

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

Executing command 1 of 5 ...
Found flash writer ... sending sbl_prebuilt/am261x-lp/sbl_uart_uniflash.release.tiimage

Sent flashwriter sbl_prebuilt/am261x-lp/sbl_uart_uniflash.release.tiimage of size 51833 bytes in 6.82s.

Executing command 2 of 5 ...
Command arguments : --operation=flash-phy-tuning-data
Sent flash-phy-tuning-data in 3.58s.                                                                                                                                                                            
[STATUS] SUCCESS !!!

Executing command 3 of 5 ...
Command arguments : --file=sbl_prebuilt/am261x-lp/sbl_ospi.release.tiimage --operation=flash --flash-offset=0x0
Sent sbl_prebuilt/am261x-lp/sbl_ospi.release.tiimage of size 224732 bytes in 23.0s.
[STATUS] SUCCESS !!!

Executing command 4 of 5 ...
Command arguments : --file=../../../../../Development/zephyr/zephyrproject/zephyr/samples/boards/ti/am261x_lp/sample_xip_app/build/zephyr_final.mcelf --operation=flash-sector-write --flash-offset=0x81000     
Sent ../../../../../Development/zephyr/zephyrproject/zephyr/samples/boards/ti/am261x_lp/sample_xip_app/build/zephyr_final.mcelf of size 215148 bytes in 22.17s.                                                 
[STATUS] SUCCESS !!!

Executing command 5 of 5 ...
Command arguments : --file=../../../../../Development/zephyr/zephyrproject/zephyr/samples/boards/ti/am261x_lp/sample_xip_app/build/zephyr_final.mcelf_xip --operation=flash-xip
Sent ../../../../../Development/zephyr/zephyrproject/zephyr/samples/boards/ti/am261x_lp/sample_xip_app/build/zephyr_final.mcelf_xip of size 16672 bytes in 4.52s.                                               
[STATUS] ERROR: Flashing failed !!!

All commands from config file are executed !!!

When building the sample I was unsure of which MCU+ SDK version I should be using, as it was not listed in the README.  I assumed it was v10.02.00 as the sbl_ospi.release.tiimage file does not exist by that name in v11_00_00_29.  I also verified my AM261X launchpad was set to UART boot mode.  I am using the new hardware revision of this launchpad (ie: integrated ethernet ports), if that matters.

I attempted to flash my own sample apps, with and without CONFIG_XIP active, but got the same error everytime.  The flashing process always failed trying to write the xip image.