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.

RTOS/TDA3XEVM: Qspi flash in tda3x evm

Part Number: TDA3XEVM

Tool/software: TI-RTOS

Hi,

I was using qspi flash writer and debugging the application to customize according to our needs, I'm using scripting console to load the program to ram location (0x80500000). After loading the firmware I looked into the memory browser of (0x80500000)(gAppReadBuff). The all address from (0x80500000) shows zero in the memory browser. Even I compared the value with dataval  variable, but i'm getting the zero values. Could we know what is the reason for the null values?

uint32_t dataval = *dsttest;
printf("srctest=0x%.8x....\r\n", *srctest);        
printf("dataval=0x%.8x....\r\n",(uint32_t) dataval);

Regards

Prakash

  • Hi Prakash,

    Can you please post logs from the qspi flash writer? It could be an issue with the host communicating with the target EVM.

    Regards

    Shravan

  • Hi Prakash,

    Are you able to flash the EVM using TI's QSPI flash writer and read back correctly?

    Regards,

    Rishabh

  • Hi,

    It's not booting, If I used the CCS scripting console in qspi flash and its booting using fread mechanism. Please find the logs below for CCS,  I tried flashing the sbl bootloader.

    [Cortex_M4_IPU1_C0]
    QSPI Flash writer application
    Enter Device type to use
    1 - 1 bit read from flash
    2 - 4 bit (Quad) read from flash
    $ > 2

    MID - 20
    DID - ba
    Enter 0 for Erase-Only (without flashing any image)
    Note : File size should be less than 33554432 Bytes.
    Enter the file path to flash: C:\PROCESSOR_SDK\appimage-sample\sbl_qspi_opp_nom_ipu1_0_release.tiimage
    Enter the Offset in bytes (HEX): 0x00
    Erase Options:
    ---------------
    0 -> Erase Only Required Region
    1 -> Erase Whole Flash
    2 -> Skip Erase
    Enter Erase Option:
    1
    Load Options:
    -------------
    0 -> fread using code (RTS Library)
    1 -> load raw using CCS (Scripting console)
    Enter Load Option:
    1
    Use below command in CCS scripting console...
    loadRaw(0x80500000, 0, "C:/PROCESSOR_SDK/appimage-sample/sbl_qspi_opp_nom_ipu1_0_release.tiimage", 32, false);
    Kindly use '/' (forward slash) in the file path
    Enter any alpha-numeric key once loadraw is complete...
    d

    QSPI whole chip erase in progress

    QSPI Erase completed

    QSPI file write started
    file size to write: 109904 Bytes

    QSPI file write completed. Verifying

    ************QSPI flash completed sucessfully*************

  • Hi Prakash,

    What is the value of SYSBOOT when you are trying this?

    Regards,

    Rishabh

  • I set sysboot pins to qspi1_1  sw2 to 00011000 10000001 , for jtag 00111000 10000001.

  • Prakash,

    SYSBOOT is set for QSPI_1 boot. Can you try setting 10011000 10000001.

    Also what is the value of SW8001?

    Do you have any other EVM where you can try this?

    Regards,

    Rishabh

  • sw8001 --> 0100 0001 ,  But option with 0 works fine,

    printf(" 0 -> fread using code (RTS Library)\r\n");
    printf(" 1 -> load raw using CCS (Scripting console)\r\n");
    printf("Enter Load Option: \r\n");

    [Cortex_M4_IPU1_C0]
    QSPI Flash writer application
    Enter Device type to use
    1 - 1 bit read from flash
    2 - 4 bit (Quad) read from flash
    $ > 2

    MID - 20
    DID - ba
    Enter 0 for Erase-Only (without flashing any image)
    Note : File size should be less than 33554432 Bytes.
    Enter the file path to flash: C:\PROCESSOR_SDK\appimage-sample\sbl_qspi_opp_nom_ipu1_0_release.tiimage
    Enter the Offset in bytes (HEX): 0x00
    Erase Options:
    ---------------
    0 -> Erase Only Required Region
    1 -> Erase Whole Flash
    2 -> Skip Erase
    Enter Erase Option:
    1
    Load Options:
    -------------
    0 -> fread using code (RTS Library)
    1 -> load raw using CCS (Scripting console)
    Enter Load Option:
    0
    Reading 109904 bytes from file...
    Read 16384 bytes [14%] from file...
    Read 32768 bytes [29%] from file...
    Read 49152 bytes [44%] from file...
    Read 65536 bytes [59%] from file...
    Read 81920 bytes [74%] from file...
    Read 98304 bytes [89%] from file...
    Read 109904 bytes [100%] from file. Done!!

    QSPI whole chip erase in progress

    QSPI Erase completed

    QSPI file write started
    file size to write: 109904 Bytes

    QSPI file write completed. Verifying

    ************QSPI flash completed sucessfully**************

    After If I set sysboot pins to qspi1_1 or qspi1_4, the sbl is booting fine. 

  • Prakash,

    Can you share a screenshot where you have tried loading via scripting console.

    Regards,

    Rishabh

  • Hi,

    Please find the attached screenshot below,

  • Hi Prakash,

    Please refer to the scripting console usage video: http://software-dl.ti.com/ccs/esd/documents/ccs_scripting_console.html

    Regards,

    Rishabh

  • Hi,

    I haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Regards,
    Rishabh