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.

MCU-PLUS-SDK-AM263X: SBL JTAG Uniflash, Verfication always successful even with wrong file

Part Number: MCU-PLUS-SDK-AM263X
Other Parts Discussed in Thread: UNIFLASH

Hi all,

I am testing AM263x CC board, downloading "SBL JTAG Uniflash" example code (AM263x MCU+ SDK: SBL JTAG Uniflash (ti.com)) through CCS Version 12.4.0.

My first issue is that I should run it in debugger mode in order to be able to send commands. 

And more important thing is that after flash writing a sample file into flash and getting "SUCCESS" message, when I verify it, I always get "VERIFY SUCCESS" although I have provided a different file for verification.

Can you check the code if it really verify the content of the flash or not?

BR

Saman

  • Hi Saman,

    I did the following steps to load and write sbl_null.release.tiimage at 0x0 in flash, then load and compare it with the sbl_qspi.release.tiimage. It returns the error, so the program worked as expected:

    ----------------------

    [Cortex_R5_0]

    ==================
    JTAG Uniflash Menu
    ==================

    1: Erase Complete Flash
    2: Write File to Flash and Verify
    3: Verify file in Flash

    x: Exit

    Enter Choice: 1
    [FLASH WRITER] Erasing complete flash ...
    [FLASH WRITER] This can take few minutes, so please wait ...
    [FLASH WRITER] Erasing complete flash ... SUCCESS !!!


    ==================
    JTAG Uniflash Menu
    ==================

    1: Erase Complete Flash
    2: Write File to Flash and Verify
    3: Verify file in Flash

    x: Exit

    Enter Choice: 2

    Enter file name along with path to write or verify : C:\ti\mcu_plus_sdk_am263x_09_00_00_33\tools\boot\sbl_prebuilt\am263x-cc\sbl_null.release.tiimage
    Enter flash offset (in hex format) : 0
    Enter below command in CCS scripting console to load the file data to memory.
    AFTER the file load is done, enter '1' to continue ...

    loadRaw(0x70040020, 0, "C:/ti/mcu_plus_sdk_am263x_09_00_00_33/tools/boot/sbl_prebuilt/am263x-cc/sbl_null.release.tiimage", 32, false);
    1
    [FLASH WRITER] Flashing success!!...


    ==================
    JTAG Uniflash Menu
    ==================

    1: Erase Complete Flash
    2: Write File to Flash and Verify
    3: Verify file in Flash

    x: Exit

    Enter Choice: 3

    Enter file name along with path to write or verify : C:\ti\mcu_plus_sdk_am263x_09_00_00_33\tools\boot\sbl_prebuilt\am263x-cc\sbl_qspi.release.tiimage
    Enter flash offset (in hex format) : 0
    Enter below command in CCS scripting console to load the file data to memory.
    AFTER the file load is done, enter '1' to continue ...

    loadRaw(0x70040020, 0, "C:/ti/mcu_plus_sdk_am263x_09_00_00_33/tools/boot/sbl_prebuilt/am263x-cc/sbl_qspi.release.tiimage", 32, false);
    1
    [FLASH WRITER] Verify Failed !!!


    ==================
    JTAG Uniflash Menu
    ==================

    1: Erase Complete Flash
    2: Write File to Flash and Verify
    3: Verify file in Flash

    x: Exit

    Enter Choice:

    ---------------------- 

    The key point here is the execution of

    loadRaw(0x70040020, 0, "C:/ti/mcu_plus_sdk_am263x_09_00_00_33/tools/boot/sbl_prebuilt/am263x-cc/sbl_null.release.tiimage", 32, false); and

    loadRaw(0x70040020, 0, "C:/ti/mcu_plus_sdk_am263x_09_00_00_33/tools/boot/sbl_prebuilt/am263x-cc/sbl_qspi.release.tiimage", 32, false);

    in the script console, because the program just writes/compares the memory location 0x70040020 to/with the content in flash. The program does

    not read the file from the disk. It is the above CCS script commands read the file from disk to memory location 0x70040020 on AM263x CC.

    Best regards,

    Ming