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.

PHYTC-3P-KIT-AM64: Flashing using UART uniflash tool is failing

Part Number: PHYTC-3P-KIT-AM64
Other Parts Discussed in Thread: UNIFLASH

Hello,

I am working on the Phytec development board.

I am trying to write to the OSPI flash memory. After discussing with phytec support, I got to know OSPI flash memory is changed to MICRON compared to AM64 Starter kit.

I used the "ospi_flash_diag_am64x-sk_r5fss0-0_nortos_ti-arm-clang" example to get out the configuration of the MICRON flash.

Then i manually fill the configuration in the UART uniflash example project and compiled.

Now i have the flash writer .tiimage file and pre-build SBL NULL tiimage.

I tried to flash OSPI memory using uart_uniflash.py:

  • Sending Uart Uniflash to the phytec board is sucessfull.
  • Then i tried sending SBL null image but it failed with error(Logs shared below

[INFO] Selected SBL OSPI/QSPI binary : C:/ti/mcu_plus_sdk_am64x_08_06_00_43/tools/boot/sbl_prebuilt/am64x-sk/sbl_null.debug.tiimage
[INFO] Parsing config file ... SUCCESS. Found 2 command(s) !!!

[INFO] Executing command 1 of 2 ...
[INFO] Found flash writer ... sending C:/Users/tus/workspace_Testing_Examples/sbl_uart_uniflash_am64x-sk_r5fss0-0_nortos_ti-arm-clang/Debug/sbl_uart_uniflash_am64x-sk_r5fss0-0_nortos_ti-arm-clang.tiimage
[INFO] Sent flashwriter C:/Users/tus/workspace_Testing_Examples/sbl_uart_uniflash_am64x-sk_r5fss0-0_nortos_ti-arm-clang/Debug/sbl_uart_uniflash_am64x-sk_r5fss0-0_nortos_ti-arm-clang.tiimage of size 385342 bytes in 35.32s.

[INFO] Executing command 2 of 2 ...
[INFO] Command arguments : --file=C:/ti/mcu_plus_sdk_am64x_08_06_00_43/tools/boot/sbl_prebuilt/am64x-sk/sbl_null.debug.tiimage --operation=flash --flash-offset=0x0000
Sent C:/ti/mcu_plus_sdk_am64x_08_06_00_43/tools/boot/sbl_prebuilt/am64x-sk/sbl_null.debug.tiimage of size 293399 bytes in 27.86s.
[STATUS] ERROR: Incorrect magic number in file header !!!

All commands from config file are executed !!!

What is the root cause and how to fix it?