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.

TMDX654IDKEVM: OSPI Boot

Part Number: TMDX654IDKEVM
Other Parts Discussed in Thread: UNIFLASH

Hi Expert,

I'm trying to QSPI Boot using TMDX654IDKEVM.

software-dl.ti.com/.../developer_notes_sbl_boot.html
PROCESSOR-SDK-RTOS-AM65XX 07_01_00_14
Uniflash v6.2

I'm working with the following steps, but it doesn't work. I need your help.

1. Setting the Boot SW to "UART"

2. Find the COM port and execute the commands of Uniflash

C:\ti\uniflash_6.2.0>dslite.bat --mode processors -c COM7 -f C:\ti\uniflash_6.2.0\processors\FlashWriter\am65xx_idk\uart_am65xx_idk_flash_programmer.tiimage -i 0
Executing the following command:
> C:\ti\uniflash_6.2.0\processors\ProcessorSDKSerialFlash.exe -c COM7 -f C:\ti\uniflash_6.2.0\processors\FlashWriter\am65xx_idk\uart_am65xx_idk_flash_programmer.tiimage -i 0

For more details and examples, please refer to the UniFlash Quick Start guide.


----------------------------------------------------------------------------
ProcessorSDKSerialFlash CLI Tool
Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
Version 1.4.0.0
----------------------------------------------------------------------------
Downloading Flash Programmer..

Transferring File of size 161612 bytes
File Transfer complete!

Enabling System firmware transfer!!!
Header Transfer complete
Transferring System Firmware..
Transferring File of size 263072 bytes
File Transfer complete!

C:\ti\uniflash_6.2.0>dslite.bat --mode processors -c COM7 -f C:\ti\pdk_am65xx_07_01_00_55\packages\ti\boot\sbl\binary\am65xx_idk\ospi\bin\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0
Executing the following command:
> C:\ti\uniflash_6.2.0\processors\ProcessorSDKSerialFlash.exe -c COM7 -f C:\ti\pdk_am65xx_07_01_00_55\packages\ti\boot\sbl\binary\am65xx_idk\ospi\bin\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0

For more details and examples, please refer to the UniFlash Quick Start guide.


----------------------------------------------------------------------------
ProcessorSDKSerialFlash CLI Tool
Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
Version 1.4.0.0
----------------------------------------------------------------------------
Transferring the Image to Flash Programmer..

Transferring Header Information..
Header Transfer Complete!

Flashing Image of size 153676 bytes
Flash Programming Success!

C:\ti\uniflash_6.2.0>dslite.bat --mode processors -c COM7 -f c:\ti\pdk_am65xx_07_01_00_55\packages\ti\drv\sciclient\soc\V0\sysfw.bin -d 3 -o 80000
Executing the following command:
> C:\ti\uniflash_6.2.0\processors\ProcessorSDKSerialFlash.exe -c COM7 -f c:\ti\pdk_am65xx_07_01_00_55\packages\ti\drv\sciclient\soc\V0\sysfw.bin -d 3 -o 80000

For more details and examples, please refer to the UniFlash Quick Start guide.


----------------------------------------------------------------------------
ProcessorSDKSerialFlash CLI Tool
Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
Version 1.4.0.0
----------------------------------------------------------------------------
Transferring the Image to Flash Programmer..

Transferring Header Information..
Header Transfer Complete!

Flashing Image of size 263072 bytes
Flash Programming Success!

C:\ti\uniflash_6.2.0>dslite.bat --mode processors -c COM7 -f c:\ti\pdk_am65xx_07_01_00_55\packages\ti\boot\sbl\example\k3MulticoreApp\binary\am65xx\sbl_baremetal_boot_test_am65xx_idk_all_coresTestApp_release.appimage -d 3 -o 100000
Executing the following command:
> C:\ti\uniflash_6.2.0\processors\ProcessorSDKSerialFlash.exe -c COM7 -f c:\ti\pdk_am65xx_07_01_00_55\packages\ti\boot\sbl\example\k3MulticoreApp\binary\am65xx\sbl_baremetal_boot_test_am65xx_idk_all_coresTestApp_release.appimage -d 3 -o 100000

For more details and examples, please refer to the UniFlash Quick Start guide.


----------------------------------------------------------------------------
ProcessorSDKSerialFlash CLI Tool
Copyright (C) 2017-2021 Texas Instruments Incorporated - http://www.ti.com/
Version 1.4.0.0
----------------------------------------------------------------------------
Transferring the Image to Flash Programmer..

Transferring Header Information..
Header Transfer Complete!

Flashing Image of size 9280 bytes
Flash Programming Success!

C:\ti\uniflash_6.2.0>

3. Setting the Boot SW to "OSPI"

4. Boot the TMDX654IDKEVM but it doesn't work

Regards,
Rei

  • Hi Rei,

    Seems like the flashing happened correctly but when the SBL parses the multi-core boot image (the appimage you flash), it expects to find the Magic string (0x5254534D) as the first word of the image.

    Can you run the below command and post its output?

    hexdum your_appimage.appimage > temp.txt

    Ideally the first 32bits in the hexdump should be something like the below:

    Regards,

    Karan

  • Hi Karan,

    Thank you for your reply. 

    0000000 534d 5254 0006 0000 0037 0000 0000 0000
    0000010 0004 0000 0048 0000 0005 0000 03d0 0000
    0000020 0000 0000 0760 0000 0001 0000 0e98 0000
    0000030 0002 0000 15d0 0000 0003 0000 1d08 0000
    0000040 0000 0000 454d 444e 5052 4352 0000 7001
    0000050 0000 0000 0001 0000 0001 0000 0000 7001
    0000060 0000 0000 0360 0000 0000 0000 0000 0000
    0000070 f018 e59f f018 e59f f018 e59f f018 e59f
    *
    0000090 0040 7001 0064 7001 0068 7001 006c 7001
    00000a0 0070 7001 0074 7001 0078 7001 007c 7001
    00000b0 1f8e e28f 100f e3c1 d001 e1a0 100c e59f
    00000c0 ff31 e12f f003 e320 0001 e280 fffe eaff
    00000d0 0281 7001 fffe eaff fffe eaff fffe eaff
    00000e0 fffe eaff fffe eaff fffe eaff fffe eaff
    00000f0 0000 0000 0000 0000 0000 0000 0000 0000
    *
    00002f0 b57c 4c2b f44f 1028 4d2a 9000 2000 9001
    0000300 6820 a619 4285 d011 9800 1e40 9000 e002
    0000310 9800 1e40 9000 9800 f1b0 3fff d1f8 4630
    0000320 f000 f844 a012 f000 f841 6025 4621 2206
    0000330 6808 4285 d102 9801 1c40 9001 f501 5100
    0000340 1e52 d1f5 9801 4d18 2806 d10b 4630 f000
    0000350 f82d a00a f000 f82a 2006 6025 f504 5400
    0000360 1e40 d1fa 4628 bd7c 434d 3155 305f 0000
    0000370 7220 6e75 696e 676e 0d0a 0000 7220 7065
    0000380 726f 7374 203a 6c41 206c 6574 7473 2073
    0000390 6168 6576 7020 7361 6573 0a64 000d 0000
    00003a0 1ffc 41c7 babe c0de face feed b508 4603
    00003b0 e002 f000 f805 1c5b 7818 2800 d1f9 bd08
    00003c0 4902 694a 0992 d3fc 6008 4770 0000 40a0
    00003d0 5052 4352 2000 7001 0000 0000 0001 0000
    00003e0 0001 0000 2000 7001 0000 0000 0368 0000
    00003f0 0000 0000 0000 0000 f018 e59f f018 e59f
    0000400 f018 e59f f018 e59f f018 e59f f018 e59f
    0000410 f018 e59f f018 e59f 2040 7001 2064 7001
    0000420 2068 7001 206c 7001 2070 7001 2074 7001
    0000430 2078 7001 207c 7001 1f8e e28f 100f e3c1
    0000440 d001 e1a0 100c e59f ff31 e12f f003 e320
    0000450 0001 e280 fffe eaff 2281 7001 fffe eaff
    0000460 fffe eaff fffe eaff fffe eaff fffe eaff
    0000470 fffe eaff fffe eaff 0000 0000 0000 0000
    0000480 0000 0000 0000 0000 0000 0000 0000 0000
    *
    0000670 0000 0000 0000 0000 b57c 4d2c f44f 2000
    0000680 4c2b 9000 2000 9001 6828 a61a 4284 d011
    0000690 9800 1e40 9000 e002 9800 1e40 9000 9800
    00006a0 f1b0 3fff d1f8 4630 f000 f848 a013 f000
    00006b0 f845 602c 4d1f 4629 2206 6808 4284 d102
    00006c0 9801 1c40 9001 f501 5100 1e52 d1f5 9801
    00006d0 4c19 2806 d10b 4630 f000 f830 a00a f000
    00006e0 f82d 2006 602c f505 5500 1e40 d1fa 4620
    00006f0 bd7c 0000 434d 3155 315f 0000 7220 6e75
    0000700 696e 676e 0d0a 0000 7220 7065 726f 7374
    0000710 203a 6c41 206c 6574 7473 2073 6168 6576
    0000720 7020 7361 6573 0a64 000d 0000 3ffc 41c7
    0000730 babe c0de 1ffc 41c7 face feed b508 4603
    0000740 e002 f000 f805 1c5b 7818 2800 d1f9 bd08
    0000750 4902 694a 0992 d3fc 6008 4770 0000 40a0
    0000760 5052 4352 4000 7002 0000 0000 0002 0000
    0000770 0001 0000 4000 7002 0000 0000 06b8 0000
    0000780 0000 0000 0000 0000 1101 5800 ec21 927c
    0000790 003f 9100 10e1 5800 0020 d63f 207f d503
    00007a0 0400 9100 0000 1400 0000 0000 0000 0000
    00007b0 0000 0000 0000 0000 0000 0000 0000 0000
    *
    00009a0 0000 0000 0000 0000 4220 7002 0000 0000
    00009b0 4230 7002 0000 0000 7bfd a9be 0020 5280
    00009c0 ff81 d28b 38e1 f2a8 03fd 9100 1be0 b900
    00009d0 57c0 5297 1bc0 72b8 1fff b900 0021 b940
    00009e0 003f 6b00 0200 5400 1be0 b940 0401 5100
    00009f0 1be1 b900 ffa0 35ff 0000 9000 b000 f941
    0000a00 004e 9400 0000 9000 b400 f941 004b 9400
    0000a10 ff80 d28b 38e0 f2a8 57c1 5297 1bc1 72b8
    0000a20 0001 b900 ff80 d283 38e0 f2a8 57c3 5297
    0000a30 1bc3 72b8 ff82 d29b 38e2 f2a8 201f d503
    0000a40 0001 b940 0800 9140 003f 6b03 0081 5400
    0000a50 1fe1 b940 0421 1100 1fe1 b900 001f eb02
    0000a60 ff01 54ff 1fe0 b940 181f 7100 00a0 5400
    0000a70 59c0 529f dda0 72bf 7bfd a8c2 03c0 d65f
    0000a80 0000 9000 b000 f941 002c 9400 0000 9000
    0000a90 b800 f941 0029 9400 ff81 d283 38e1 f2a8
    0000aa0 ff82 d287 38e2 f2a8 59c0 529f dda0 72bf
    0000ab0 0020 b900 1821 9140 0040 b900 ff83 d297
    0000ac0 38e3 f2a8 0040 b920 0020 b900 0020 b920
    0000ad0 0060 b900 59c0 529f dda0 72bf 7bfd a8c2
    0000ae0 03c0 d65f 201f d503 46b8 7002 0000 0000
    0000af0 46c0 7002 0000 0000 46d0 7002 0000 0000
    0000b00 0000 0000 0000 0000 1c00 1200 0282 d280
    0000b10 1402 f2a8 201f d503 0041 b940 ffe1 362f
    0000b20 1401 d2a8 0020 b900 03c0 d65f 201f d503
    0000b30 201f d503 201f d503 0003 3940 0143 3400
    0000b40 0282 d280 1402 f2a8 1404 d2a8 201f d503
    0000b50 0041 b940 ffe1 362f 0083 b900 1c03 3840
    0000b60 ff83 35ff 03c0 d65f 83ff d100 1c01 5304
    0000b70 23e3 9100 2604 d286 6644 f2a6 2702 d287
    0000b80 4c22 f2ac a684 f2c6 e6c4 f2e6 8c62 f2cc
    0000b90 cca2 f2ec 8be4 a900 1c00 1200 63ff 3900
    0000ba0 0282 d280 1402 f2a8 c864 3861 201f d503
    0000bb0 0041 b940 ffe1 362f 1402 d2a8 0c00 1200
    0000bc0 0281 d280 1401 f2a8 0044 b900 c862 3860
    0000bd0 0020 b940 ffe0 362f 1400 d2a8 0002 b900
    0000be0 83ff 9100 03c0 d65f 83ff d100 2601 d286
    0000bf0 6641 f2a6 2702 d287 4c22 f2ac a681 f2c6
    0000c00 e6c1 f2e6 23e3 9100 8c62 f2cc cca2 f2ec
    0000c10 8be1 a900 7c01 531c 7c04 5318 63ff 3900
    0000c20 0282 d280 1402 f2a8 c866 3861 201f d503
    0000c30 0041 b940 ffe1 362f 1405 d2a8 0c81 1200
    0000c40 0282 d280 1402 f2a8 00a6 b900 c866 3861
    0000c50 0041 b940 ffe1 362f 1404 d2a8 5c01 d354
    0000c60 2602 d286 6642 f2a6 2705 d287 4c25 f2ac
    0000c70 0086 b900 a682 f2c6 e6c2 f2e6 8c65 f2cc
    0000c80 cca5 f2ec 97e2 a900 5c04 d350 63ff 3900
    0000c90 0282 d280 1402 f2a8 c866 3861 201f d503
    0000ca0 0041 b940 ffe1 362f 1405 d2a8 0c81 1200
    0000cb0 0282 d280 1402 f2a8 00a6 b900 c866 3861
    0000cc0 0041 b940 ffe1 362f 1404 d2a8 3c01 d34c
    0000cd0 2602 d286 6642 f2a6 2705 d287 4c25 f2ac
    0000ce0 0086 b900 a682 f2c6 e6c2 f2e6 8c65 f2cc
    0000cf0 cca5 f2ec 97e2 a900 3c04 d348 63ff 3900
    0000d00 0282 d280 1402 f2a8 c866 3861 201f d503
    0000d10 0041 b940 ffe1 362f 1405 d2a8 0c81 1200
    0000d20 0282 d280 1402 f2a8 00a6 b900 c866 3861
    0000d30 0041 b940 ffe1 362f 1401 d2a8 1c04 d344
    0000d40 2602 d286 6642 f2a6 2705 d287 4c25 f2ac
    0000d50 0026 b900 a682 f2c6 e6c2 f2e6 8c65 f2cc
    0000d60 cca5 f2ec 97e2 a900 1c01 1200 63ff 3900
    0000d70 0282 d280 1402 f2a8 c864 3864 201f d503
    0000d80 0040 b940 ffe0 362f 1402 d2a8 0c20 1200
    0000d90 0281 d280 1401 f2a8 0044 b900 c862 3860
    0000da0 0020 b940 ffe0 362f 1400 d2a8 0002 b900
    0000db0 83ff 9100 03c0 d65f 03e6 aa00 7bfd a9bf
    0000dc0 03e0 2a01 03fd 9100 00c5 3940 03e8 2a02
    0000dd0 0125 3400 0284 d280 1404 f2a8 1407 d2a8
    0000de0 0083 b940 ffe3 362f 00e5 b900 1cc5 3840
    0000df0 ff85 35ff ff7d 97ff 01a8 3400 0000 9000
    0000e00 5803 f943 0281 d280 1401 f2a8 01a2 5280
    0000e10 1404 d2a8 201f d503 0020 b940 ffe0 362f
    0000e20 0082 b900 1c62 3840 ff82 35ff 7bfd a8c1
    0000e30 03c0 d65f 201f d503 46f8 7002 0000 0000
    0000e40 46b8 7002 0000 0000 0044 0000 0000 0000
    0000e50 0000 0000 504d 3155 305f 0000 7220 6e75
    0000e60 696e 676e 0d0a 0000 0000 0000 7220 7065
    0000e70 726f 7374 203a 6c41 206c 6574 7473 2073
    0000e80 6168 6576 7020 7361 6573 0a64 000d 0000
    0000e90 0000 0000 0a0d 4d00 5052 4352 6000 7002
    0000ea0 0000 0000 0002 0000 0001 0000 6000 7002
    0000eb0 0000 0000 06b8 0000 0000 0000 0000 0000
    0000ec0 1101 5800 ec21 927c 003f 9100 10e1 5800
    0000ed0 0020 d63f 207f d503 0400 9100 0000 1400
    0000ee0 0000 0000 0000 0000 0000 0000 0000 0000
    *
    00010e0 6220 7002 0000 0000 6230 7002 0000 0000
    00010f0 7bfd a9be 0040 52a0 ff81 d28f 38e1 f2a8
    0001100 03fd 9100 1be0 b900 57c0 5297 1bc0 72b8
    0001110 1fff b900 0021 b940 003f 6b00 0200 5400
    0001120 1be0 b940 0401 5100 1be1 b900 ffa0 35ff
    0001130 0000 9000 b000 f941 004e 9400 0000 9000
    0001140 b400 f941 004b 9400 ff80 d28f 38e0 f2a8
    0001150 57c1 5297 1bc1 72b8 0001 b900 ff80 d283
    0001160 38e0 f2a8 57c3 5297 1bc3 72b8 ff82 d29b
    0001170 38e2 f2a8 201f d503 0001 b940 0800 9140
    0001180 003f 6b03 0081 5400 1fe1 b940 0421 1100
    0001190 1fe1 b900 001f eb02 ff01 54ff 1fe0 b940
    00011a0 181f 7100 00a0 5400 59c0 529f dda0 72bf
    00011b0 7bfd a8c2 03c0 d65f 0000 9000 b000 f941
    00011c0 002c 9400 0000 9000 b800 f941 0029 9400
    00011d0 ff81 d283 38e1 f2a8 ff82 d287 38e2 f2a8
    00011e0 59c0 529f dda0 72bf 0020 b900 1821 9140
    00011f0 0040 b900 ff83 d297 38e3 f2a8 0040 b920
    0001200 0020 b900 0020 b920 0060 b900 59c0 529f
    0001210 dda0 72bf 7bfd a8c2 03c0 d65f 201f d503
    0001220 66b8 7002 0000 0000 66c0 7002 0000 0000
    0001230 66d0 7002 0000 0000 0000 0000 0000 0000
    0001240 1c00 1200 0282 d280 1402 f2a8 201f d503
    0001250 0041 b940 ffe1 362f 1401 d2a8 0020 b900
    0001260 03c0 d65f 201f d503 201f d503 201f d503
    0001270 0003 3940 0143 3400 0282 d280 1402 f2a8
    0001280 1404 d2a8 201f d503 0041 b940 ffe1 362f
    0001290 0083 b900 1c03 3840 ff83 35ff 03c0 d65f
    00012a0 83ff d100 1c01 5304 23e3 9100 2604 d286
    00012b0 6644 f2a6 2702 d287 4c22 f2ac a684 f2c6
    00012c0 e6c4 f2e6 8c62 f2cc cca2 f2ec 8be4 a900
    00012d0 1c00 1200 63ff 3900 0282 d280 1402 f2a8
    00012e0 c864 3861 201f d503 0041 b940 ffe1 362f
    00012f0 1402 d2a8 0c00 1200 0281 d280 1401 f2a8
    0001300 0044 b900 c862 3860 0020 b940 ffe0 362f
    0001310 1400 d2a8 0002 b900 83ff 9100 03c0 d65f
    0001320 83ff d100 2601 d286 6641 f2a6 2702 d287
    0001330 4c22 f2ac a681 f2c6 e6c1 f2e6 23e3 9100
    0001340 8c62 f2cc cca2 f2ec 8be1 a900 7c01 531c
    0001350 7c04 5318 63ff 3900 0282 d280 1402 f2a8
    0001360 c866 3861 201f d503 0041 b940 ffe1 362f
    0001370 1405 d2a8 0c81 1200 0282 d280 1402 f2a8
    0001380 00a6 b900 c866 3861 0041 b940 ffe1 362f
    0001390 1404 d2a8 5c01 d354 2602 d286 6642 f2a6
    00013a0 2705 d287 4c25 f2ac 0086 b900 a682 f2c6
    00013b0 e6c2 f2e6 8c65 f2cc cca5 f2ec 97e2 a900
    00013c0 5c04 d350 63ff 3900 0282 d280 1402 f2a8
    00013d0 c866 3861 201f d503 0041 b940 ffe1 362f
    00013e0 1405 d2a8 0c81 1200 0282 d280 1402 f2a8
    00013f0 00a6 b900 c866 3861 0041 b940 ffe1 362f
    0001400 1404 d2a8 3c01 d34c 2602 d286 6642 f2a6
    0001410 2705 d287 4c25 f2ac 0086 b900 a682 f2c6
    0001420 e6c2 f2e6 8c65 f2cc cca5 f2ec 97e2 a900
    0001430 3c04 d348 63ff 3900 0282 d280 1402 f2a8
    0001440 c866 3861 201f d503 0041 b940 ffe1 362f
    0001450 1405 d2a8 0c81 1200 0282 d280 1402 f2a8
    0001460 00a6 b900 c866 3861 0041 b940 ffe1 362f
    0001470 1401 d2a8 1c04 d344 2602 d286 6642 f2a6
    0001480 2705 d287 4c25 f2ac 0026 b900 a682 f2c6
    0001490 e6c2 f2e6 8c65 f2cc cca5 f2ec 97e2 a900
    00014a0 1c01 1200 63ff 3900 0282 d280 1402 f2a8
    00014b0 c864 3864 201f d503 0040 b940 ffe0 362f
    00014c0 1402 d2a8 0c20 1200 0281 d280 1401 f2a8
    00014d0 0044 b900 c862 3860 0020 b940 ffe0 362f
    00014e0 1400 d2a8 0002 b900 83ff 9100 03c0 d65f
    00014f0 03e6 aa00 7bfd a9bf 03e0 2a01 03fd 9100
    0001500 00c5 3940 03e8 2a02 0125 3400 0284 d280
    0001510 1404 f2a8 1407 d2a8 0083 b940 ffe3 362f
    0001520 00e5 b900 1cc5 3840 ff85 35ff ff7d 97ff
    0001530 01a8 3400 0000 9000 5803 f943 0281 d280
    0001540 1401 f2a8 01a2 5280 1404 d2a8 201f d503
    0001550 0020 b940 ffe0 362f 0082 b900 1c62 3840
    0001560 ff82 35ff 7bfd a8c1 03c0 d65f 201f d503
    0001570 66f8 7002 0000 0000 66b8 7002 0000 0000
    0001580 0044 0000 0000 0000 0000 0000 504d 3155
    0001590 315f 0000 7220 6e75 696e 676e 0d0a 0000
    00015a0 0000 0000 7220 7065 726f 7374 203a 6c41
    00015b0 206c 6574 7473 2073 6168 6576 7020 7361
    00015c0 6573 0a64 000d 0000 0000 0000 0a0d 4d00
    00015d0 5052 4352 8000 7002 0000 0000 0002 0000
    00015e0 0001 0000 8000 7002 0000 0000 06b8 0000
    00015f0 0000 0000 0000 0000 1101 5800 ec21 927c
    0001600 003f 9100 10e1 5800 0020 d63f 207f d503
    0001610 0400 9100 0000 1400 0000 0000 0000 0000
    0001620 0000 0000 0000 0000 0000 0000 0000 0000
    *
    0001810 0000 0000 0000 0000 8220 7002 0000 0000
    0001820 8230 7002 0000 0000 7bfd a9be 0080 52a0
    0001830 ff81 d293 38e1 f2a8 03fd 9100 1be0 b900
    0001840 57c0 5297 1bc0 72b8 1fff b900 0021 b940
    0001850 003f 6b00 0200 5400 1be0 b940 0401 5100
    0001860 1be1 b900 ffa0 35ff 0000 9000 b000 f941
    0001870 004e 9400 0000 9000 b400 f941 004b 9400
    0001880 ff80 d293 38e0 f2a8 57c1 5297 1bc1 72b8
    0001890 0001 b900 ff80 d283 38e0 f2a8 57c3 5297
    00018a0 1bc3 72b8 ff82 d29b 38e2 f2a8 201f d503
    00018b0 0001 b940 0800 9140 003f 6b03 0081 5400
    00018c0 1fe1 b940 0421 1100 1fe1 b900 001f eb02
    00018d0 ff01 54ff 1fe0 b940 181f 7100 00a0 5400
    00018e0 59c0 529f dda0 72bf 7bfd a8c2 03c0 d65f
    00018f0 0000 9000 b000 f941 002c 9400 0000 9000
    0001900 b800 f941 0029 9400 ff81 d283 38e1 f2a8
    0001910 ff82 d287 38e2 f2a8 59c0 529f dda0 72bf
    0001920 0020 b900 1821 9140 0040 b900 ff83 d297
    0001930 38e3 f2a8 0040 b920 0020 b900 0020 b920
    0001940 0060 b900 59c0 529f dda0 72bf 7bfd a8c2
    0001950 03c0 d65f 201f d503 86b8 7002 0000 0000
    0001960 86c0 7002 0000 0000 86d0 7002 0000 0000
    0001970 0000 0000 0000 0000 1c00 1200 0282 d280
    0001980 1402 f2a8 201f d503 0041 b940 ffe1 362f
    0001990 1401 d2a8 0020 b900 03c0 d65f 201f d503
    00019a0 201f d503 201f d503 0003 3940 0143 3400
    00019b0 0282 d280 1402 f2a8 1404 d2a8 201f d503
    00019c0 0041 b940 ffe1 362f 0083 b900 1c03 3840
    00019d0 ff83 35ff 03c0 d65f 83ff d100 1c01 5304
    00019e0 23e3 9100 2604 d286 6644 f2a6 2702 d287
    00019f0 4c22 f2ac a684 f2c6 e6c4 f2e6 8c62 f2cc
    0001a00 cca2 f2ec 8be4 a900 1c00 1200 63ff 3900
    0001a10 0282 d280 1402 f2a8 c864 3861 201f d503
    0001a20 0041 b940 ffe1 362f 1402 d2a8 0c00 1200
    0001a30 0281 d280 1401 f2a8 0044 b900 c862 3860
    0001a40 0020 b940 ffe0 362f 1400 d2a8 0002 b900
    0001a50 83ff 9100 03c0 d65f 83ff d100 2601 d286
    0001a60 6641 f2a6 2702 d287 4c22 f2ac a681 f2c6
    0001a70 e6c1 f2e6 23e3 9100 8c62 f2cc cca2 f2ec
    0001a80 8be1 a900 7c01 531c 7c04 5318 63ff 3900
    0001a90 0282 d280 1402 f2a8 c866 3861 201f d503
    0001aa0 0041 b940 ffe1 362f 1405 d2a8 0c81 1200
    0001ab0 0282 d280 1402 f2a8 00a6 b900 c866 3861
    0001ac0 0041 b940 ffe1 362f 1404 d2a8 5c01 d354
    0001ad0 2602 d286 6642 f2a6 2705 d287 4c25 f2ac
    0001ae0 0086 b900 a682 f2c6 e6c2 f2e6 8c65 f2cc
    0001af0 cca5 f2ec 97e2 a900 5c04 d350 63ff 3900
    0001b00 0282 d280 1402 f2a8 c866 3861 201f d503
    0001b10 0041 b940 ffe1 362f 1405 d2a8 0c81 1200
    0001b20 0282 d280 1402 f2a8 00a6 b900 c866 3861
    0001b30 0041 b940 ffe1 362f 1404 d2a8 3c01 d34c
    0001b40 2602 d286 6642 f2a6 2705 d287 4c25 f2ac
    0001b50 0086 b900 a682 f2c6 e6c2 f2e6 8c65 f2cc
    0001b60 cca5 f2ec 97e2 a900 3c04 d348 63ff 3900
    0001b70 0282 d280 1402 f2a8 c866 3861 201f d503
    0001b80 0041 b940 ffe1 362f 1405 d2a8 0c81 1200
    0001b90 0282 d280 1402 f2a8 00a6 b900 c866 3861
    0001ba0 0041 b940 ffe1 362f 1401 d2a8 1c04 d344
    0001bb0 2602 d286 6642 f2a6 2705 d287 4c25 f2ac
    0001bc0 0026 b900 a682 f2c6 e6c2 f2e6 8c65 f2cc
    0001bd0 cca5 f2ec 97e2 a900 1c01 1200 63ff 3900
    0001be0 0282 d280 1402 f2a8 c864 3864 201f d503
    0001bf0 0040 b940 ffe0 362f 1402 d2a8 0c20 1200
    0001c00 0281 d280 1401 f2a8 0044 b900 c862 3860
    0001c10 0020 b940 ffe0 362f 1400 d2a8 0002 b900
    0001c20 83ff 9100 03c0 d65f 03e6 aa00 7bfd a9bf
    0001c30 03e0 2a01 03fd 9100 00c5 3940 03e8 2a02
    0001c40 0125 3400 0284 d280 1404 f2a8 1407 d2a8
    0001c50 0083 b940 ffe3 362f 00e5 b900 1cc5 3840
    0001c60 ff85 35ff ff7d 97ff 01a8 3400 0000 9000
    0001c70 5803 f943 0281 d280 1401 f2a8 01a2 5280
    0001c80 1404 d2a8 201f d503 0020 b940 ffe0 362f
    0001c90 0082 b900 1c62 3840 ff82 35ff 7bfd a8c1
    0001ca0 03c0 d65f 201f d503 86f8 7002 0000 0000
    0001cb0 86b8 7002 0000 0000 0044 0000 0000 0000
    0001cc0 0000 0000 504d 3255 305f 0000 7220 6e75
    0001cd0 696e 676e 0d0a 0000 0000 0000 7220 7065
    0001ce0 726f 7374 203a 6c41 206c 6574 7473 2073
    0001cf0 6168 6576 7020 7361 6573 0a64 000d 0000
    0001d00 0000 0000 0a0d 4d00 5052 4352 a000 7002
    0001d10 0000 0000 0002 0000 0001 0000 a000 7002
    0001d20 0000 0000 06b8 0000 0000 0000 0000 0000
    0001d30 1101 5800 ec21 927c 003f 9100 10e1 5800
    0001d40 0020 d63f 207f d503 0400 9100 0000 1400
    0001d50 0000 0000 0000 0000 0000 0000 0000 0000
    *
    0001f50 a220 7002 0000 0000 a230 7002 0000 0000
    0001f60 7bfd a9be 00c0 52a0 ff81 d297 38e1 f2a8
    0001f70 03fd 9100 1be0 b900 57c0 5297 1bc0 72b8
    0001f80 1fff b900 0021 b940 003f 6b00 0200 5400
    0001f90 1be0 b940 0401 5100 1be1 b900 ffa0 35ff
    0001fa0 0000 9000 b000 f941 004e 9400 0000 9000
    0001fb0 b400 f941 004b 9400 ff80 d297 38e0 f2a8
    0001fc0 57c1 5297 1bc1 72b8 0001 b900 ff80 d283
    0001fd0 38e0 f2a8 57c3 5297 1bc3 72b8 ff82 d29b
    0001fe0 38e2 f2a8 201f d503 0001 b940 0800 9140
    0001ff0 003f 6b03 0081 5400 1fe1 b940 0421 1100
    0002000 1fe1 b900 001f eb02 ff01 54ff 1fe0 b940
    0002010 181f 7100 00a0 5400 59c0 529f dda0 72bf
    0002020 7bfd a8c2 03c0 d65f 0000 9000 b000 f941
    0002030 002c 9400 0000 9000 b800 f941 0029 9400
    0002040 ff81 d283 38e1 f2a8 ff82 d287 38e2 f2a8
    0002050 59c0 529f dda0 72bf 0020 b900 1821 9140
    0002060 0040 b900 ff83 d297 38e3 f2a8 0040 b920
    0002070 0020 b900 0020 b920 0060 b900 59c0 529f
    0002080 dda0 72bf 7bfd a8c2 03c0 d65f 201f d503
    0002090 a6b8 7002 0000 0000 a6c0 7002 0000 0000
    00020a0 a6d0 7002 0000 0000 0000 0000 0000 0000
    00020b0 1c00 1200 0282 d280 1402 f2a8 201f d503
    00020c0 0041 b940 ffe1 362f 1401 d2a8 0020 b900
    00020d0 03c0 d65f 201f d503 201f d503 201f d503
    00020e0 0003 3940 0143 3400 0282 d280 1402 f2a8
    00020f0 1404 d2a8 201f d503 0041 b940 ffe1 362f
    0002100 0083 b900 1c03 3840 ff83 35ff 03c0 d65f
    0002110 83ff d100 1c01 5304 23e3 9100 2604 d286
    0002120 6644 f2a6 2702 d287 4c22 f2ac a684 f2c6
    0002130 e6c4 f2e6 8c62 f2cc cca2 f2ec 8be4 a900
    0002140 1c00 1200 63ff 3900 0282 d280 1402 f2a8
    0002150 c864 3861 201f d503 0041 b940 ffe1 362f
    0002160 1402 d2a8 0c00 1200 0281 d280 1401 f2a8
    0002170 0044 b900 c862 3860 0020 b940 ffe0 362f
    0002180 1400 d2a8 0002 b900 83ff 9100 03c0 d65f
    0002190 83ff d100 2601 d286 6641 f2a6 2702 d287
    00021a0 4c22 f2ac a681 f2c6 e6c1 f2e6 23e3 9100
    00021b0 8c62 f2cc cca2 f2ec 8be1 a900 7c01 531c
    00021c0 7c04 5318 63ff 3900 0282 d280 1402 f2a8
    00021d0 c866 3861 201f d503 0041 b940 ffe1 362f
    00021e0 1405 d2a8 0c81 1200 0282 d280 1402 f2a8
    00021f0 00a6 b900 c866 3861 0041 b940 ffe1 362f
    0002200 1404 d2a8 5c01 d354 2602 d286 6642 f2a6
    0002210 2705 d287 4c25 f2ac 0086 b900 a682 f2c6
    0002220 e6c2 f2e6 8c65 f2cc cca5 f2ec 97e2 a900
    0002230 5c04 d350 63ff 3900 0282 d280 1402 f2a8
    0002240 c866 3861 201f d503 0041 b940 ffe1 362f
    0002250 1405 d2a8 0c81 1200 0282 d280 1402 f2a8
    0002260 00a6 b900 c866 3861 0041 b940 ffe1 362f
    0002270 1404 d2a8 3c01 d34c 2602 d286 6642 f2a6
    0002280 2705 d287 4c25 f2ac 0086 b900 a682 f2c6
    0002290 e6c2 f2e6 8c65 f2cc cca5 f2ec 97e2 a900
    00022a0 3c04 d348 63ff 3900 0282 d280 1402 f2a8
    00022b0 c866 3861 201f d503 0041 b940 ffe1 362f
    00022c0 1405 d2a8 0c81 1200 0282 d280 1402 f2a8
    00022d0 00a6 b900 c866 3861 0041 b940 ffe1 362f
    00022e0 1401 d2a8 1c04 d344 2602 d286 6642 f2a6
    00022f0 2705 d287 4c25 f2ac 0026 b900 a682 f2c6
    0002300 e6c2 f2e6 8c65 f2cc cca5 f2ec 97e2 a900
    0002310 1c01 1200 63ff 3900 0282 d280 1402 f2a8
    0002320 c864 3864 201f d503 0040 b940 ffe0 362f
    0002330 1402 d2a8 0c20 1200 0281 d280 1401 f2a8
    0002340 0044 b900 c862 3860 0020 b940 ffe0 362f
    0002350 1400 d2a8 0002 b900 83ff 9100 03c0 d65f
    0002360 03e6 aa00 7bfd a9bf 03e0 2a01 03fd 9100
    0002370 00c5 3940 03e8 2a02 0125 3400 0284 d280
    0002380 1404 f2a8 1407 d2a8 0083 b940 ffe3 362f
    0002390 00e5 b900 1cc5 3840 ff85 35ff ff7d 97ff
    00023a0 01a8 3400 0000 9000 5803 f943 0281 d280
    00023b0 1401 f2a8 01a2 5280 1404 d2a8 201f d503
    00023c0 0020 b940 ffe0 362f 0082 b900 1c62 3840
    00023d0 ff82 35ff 7bfd a8c1 03c0 d65f 201f d503
    00023e0 a6f8 7002 0000 0000 a6b8 7002 0000 0000
    00023f0 0044 0000 0000 0000 0000 0000 504d 3255
    0002400 315f 0000 7220 6e75 696e 676e 0d0a 0000
    0002410 0000 0000 7220 7065 726f 7374 203a 6c41
    0002420 206c 6574 7473 2073 6168 6576 7020 7361
    0002430 6573 0a64 000d 0000 0000 0000 0a0d 4d00
    0002440
    

    This appimage is built in SDK, so I think that it is no problem.

    (Created by "make all" in packages directory)

    Regards,

    Rei

  • Hi Rei,

    The magic string is there and as you mentioned that it is an SDK application so that shouldn't be an issue.

    Let me get hold of an am65xx evm to replicate this. I will keep you posted.

    Regards,

    Karan

  • Hi Rei,

    Can you please confirm what is you Silicon Revision is it SR1.0 or SR2.0?

    Regards,

    Karan

  • Hi Karan,

    I appreciate your cooperation. This is a complicated situation.

    Customer confirmed with SR2.0. Then "Invalid magic number" occurred.
    I confirmed with my SR1.0 board. In case of SR1.0, it cannot be written to EEPROM (OSPI).

    I think revisions are also involved in the evaluation of OSPI. I should check it with SR2.0, but I have lent it to the customer.

    Regards,

    Rei

  • Hi Rei,

    I too do not have a AM65xx EVM handy as working from home. I'm checking internally with my colleague who has it to reproduce the issue.

    Regards,

    Karan 

  • Hi Rei,

    I am able to successfully flash and run the prebuilt binary on my setup(SR1.0). I have followed the below sequence:

    1. did UART BOOTMODE settings : SW2 - all_zero, SW3 - B0101000000
    2. switch on the board, and mark the com port number by opening minicom/teraterm and seeing CCC character on the console.
    3. Close the teraterm/minicom.
    4. Open the command line interface from uniflash root folder.
    5. give the following commands: 
      1. dslite.bat --mode processors -c COM6 -f C:\ti\uniflash_6.2.0\processors\FlashWriter\am65xx_idk\uart_am65xx_idk_flash_programmer.tiimage -i 0
      2. dslite.bat --mode processors -c COM6 -f C:\ti\pdk_am65xx_07_01_00_55\packages\ti\boot\sbl\binary\am65xx_idk\ospi\bin\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0
      3. dslite.bat --mode processors -c COM6 -f c:\ti\pdk_am65xx_07_01_00_55\packages\ti\drv\sciclient\soc\V0\sysfw.bin -d 3 -o 80000
      4. C:\ti\pdk_am65xx_07_01_00_55\packages\ti\boot\sbl\example\k3MulticoreApp\binary\am65xx\sbl_baremetal_boot_test_am65xx_idk_all_coresTestApp_release.appimage -d 3 -o 100000
    6. Change the BOOTMODE settings to OSPI mode : SW2 - all_zero, SW3 - B1000000000
    7. power cycle the board and see the logs on COM6.

    note: in my case MCU port was COM6, make sure to change to your respective port number while giving the command.

    Also, from end user perspective, the only difference between SR1.0 and SR2.0 is which "SYSFW" file you are choosing. To select between "SYSFW" files, there is a readme given in "<uniflash_root_folder>\processors\FlashWriter\am65xx_idk\".

    • can you confirm that are you using prebuilt binaries, or you are building them freshly?
  • Hi Anubhav,

    Thank you very much. I was also able to write with SR1.0. As you say, sysfw was wrong.
    However, I don't know if it was successful because nothing shows up on the COM port.

    I used the pre-built binary and the newly Build it (make all), but they don't show up on the COM port.
    And I tried the following and got an "invalid magic number".
    SW3-B1000000100

    Case of SW3-B1000000000,
    If we can't see the log, does that mean it is failing? What do you see in your log?

    Regards,
    Rei

  • Hi,

    It's great that, now you are able to flash the binary. Can you build and flash the led diagnostic binary and see where leds are toggling or not, So that we can narrow it down to application or UART issue.

  • Hi,

    I tried the LED example.
    >cd C:\ti\pdk_am65xx_07_01_00_55\packages\ti\drv\gpio>
    >gmake

    Strangely, appimage is 0KB.
    <pdk>\packages\ti\binary\GPIO_Baremetal_LedBlink_TestApp\bin\am65xx_idk\xxx.appimage

    Is there a simple appimage to check?

    I have run the template example in CCS. I can check the UART log.

    Regards,
    Rei

  • Is there a simple appimage to check?

    You can build the led diagnostic under C:\ti\pdk_am65xx_07_01_00_55\packages\ti\board\diag\led.

    >got to C:\ti\pdk_am65xx_07_01_00_55\packages\ti\build

    >open CLI and give command : gmake board_diag_led BOARD=am65xx_evm CORE=mpu1_0

    >it will build the binary inside C:\ti\pdk_am65xx_07_01_00_55\packages\ti\binary folder.

  • Hi,

    My customers and I have tried it, but without success. (SR1.0 and SR2.0)

    Since the LEDs on the EVM don't change, I'm assuming that appimage is not being written.
    When booting OSPI, I tried following pin settings.

    SW3-B1000000100
    SW3-B1000000000

    We think that the problem is with the flash, not the UART. What do you see in your environment? What could be the cause?
    Customers are also investigating the cause. They raised the log level in the SBL and tried to build it again, they also customized it to output a Magic Number.

    SBL Revision: 01.00.10.00 (May 17 2021 - 18:28:54)
    SYSFW  ver: 20.8.5--v2020.08b (Terrific Lla
    Sciclient_setBoardConfigHeader... PASSED
    Setting up AVS ...
    Common rail: Slave:0x0, Res:0x0 @ 0mV
    Initializing GTC ...Begin parsing user application
    Calling Sciclient_procBootRequestProcessor, ProcId 0x20...
    Calling Sciclient_procBootRequestProcessor, ProcId 0x21...
    Calling Sciclient_procBootRequestProcessor, ProcId 0x22...
    Calling Sciclient_procBootRequestProcessor, ProcId 0x23...
    Calling Sciclient_procBootRequestProcessor, ProcId 0x1...
    Calling Sciclient_procBootRequestProcessor, ProcId 0x2...
    SBL_OSPIBootImage : NON Secure Boot
    ospiFunClk = 133333333 Hz
    Ospi Read speed for 0x4 bytes from offset 0x100000 = 0 Mbytes per sec
    Searching for X509 certificate ...not found
    before fp_readData. Magic Number = 0x5254534d
    Ospi Read speed for 0x10 bytes from offset 0x100000 = 0 Mbytes per sec
    Invalid magic number in Single image header
    Magic Number = 0x5b   /////// logging the Magic Number
    SBL_ospiClose called
    Sciclient_procBootReleaseProcessor, ProcId 0x20...
    Sciclient_procBootReleaseProcessor, ProcId 0x21...
    Sciclient_procBootReleaseProcessor, ProcId 0x22...
    Sciclient_procBootReleaseProcessor, ProcId 0x23...
    Sciclient_procBootReleaseProcessor, ProcId 0x1...
    Sciclient_procBootReleaseProcessor, ProcId 0x2...
    

    It could be that they are not reading the correct location or that writing to the flash is failing.
    Other than the Uniflash log, is there any other way to check if the flash is being written correctly?
    We just want to do OSPI Boot with AM654x IDK. 

    Regards,
    Rei

  • Hi,

    As mentioned earlier, it is working on my setup. Can you verify whether OSPI diagnostic test is passing on your setup.

  • I did the OSPI diagnosis.

    SW2 - all zero sw3 - 0101000000
    dslite.bat --mode processors -c COM4 -f C:\ti\uniflash_6.2.0\processors\FlashWriter\am65xx_idk\uart_am65xx_idk_flash_programmer.tiimage -i 0
    dslite.bat --mode processors -c COM4 -f C:\ti\pdk_am65xx_07_01_00_55\packages\ti\boot\sbl\binary\am65xx_idk\ospi\bin\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0
    dslite.bat --mode processors -c COM4 -f C:\ti\pdk_am65xx_07_01_00_55\packages\ti\drv\sciclient\soc\V0\sysfw.bin -d 3 -o 80000
    dslite.bat --mode processors -c COM4 -f C:\ti\pdk_am65xx_07_01_00_55\packages\ti\binary\board_diag_ospi\bin\am65xx_idk\board_diag_ospi_mpu1_0_release.appimage -d 3 -o 100000
    SW2 - all zero sw3 - 1000000000

    However, the behavior remains the same. Is the EVM you are using GPEVM?
    I would like to know the difference between yours and mine.

    Regards,
    Rei

  • Hi,

    load the OSPI diag from CCS, not from uniflash and confirm whether it is passing.

    Also, I am attaching the binaries that i have tested in my environment. I have tested those binaries on SR1.0.

    You can put the binaries in respective path and follow the sequence that i mentioned earlier. For your reference, i am again posting the commands:

    • dslite.bat --mode processors -c COM6 -f C:\ti\uniflash_6.2.0\processors\FlashWriter\am65xx_idk\uart_am65xx_idk_flash_programmer.tiimage -i 0
    • dslite.bat --mode processors -c COM6 -f C:\ti\pdk_am65xx_07_01_00_55\packages\ti\boot\sbl\binary\am65xx_idk\ospi\bin\sbl_ospi_img_mcu1_0_release.tiimage -d 3 -o 0
    • dslite.bat --mode processors -c COM6 -f c:\ti\pdk_am65xx_07_01_00_55\packages\ti\drv\sciclient\soc\V0\sysfw.bin -d 3 -o 80000
    • dslite.bat --mode processors -c COM6 -f C:\ti\pdk_am65xx_07_01_00_55\packages\ti\binary\board_diag_led\bin\am65xx_idk\board_diag_led_mcu1_0_release.appimage -d 3 -o 100000

    am65xx_evm_uniflash_binaries.zip

  • Hi,

    Thank you very much. I used CCS to load the diagnostic images for OSPI and LED. These worked fine.
    (CCS can't load appimage, so I used .xa53fg)

    From the result, I think that the problem is in OSPI writing or Booting. Your image file is probably the same as mine, but I will check.

    By the way, I suspect the EVM pin settings. Old SDK user's guide and the current one, the instructions for the pin jacks have changed (except for the Boot pin).

    Could you take a picture of front and back of your EVM?

  • Could you take a picture of front and back of your EVM?

    PFAHardware_images.zip

  • Hi,

    Thanks to your support it is working. The cause is POR pin on the back. 

    I had J8 set to [1-2] according to the Developer's guide, but at OSPI Boot I had to set it to [2-3].

    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_how_to_guides.html?highlight=am65xevm#minimum-hardware-setup-required-to-connect-to-evm

    Thank you very much!

    Regards,

    Rei