AM2634: Error in flashing the code using the UNIFLASH.

Part Number: AM2634
Other Parts Discussed in Thread: UNIFLASH, SYSCONFIG

Tool/software:

Hi Ti family,

I tried to flash the code (gpio_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang with flash initialized) to my am2634 custom board via jtag using uniFlash software but i am getting following error("Timed out waiting target to halt").

I am uploading the sbl at 0x60000000 and application image at 0x60080000(sbl-used here is prebuilt sbl and appimage - appimage generated after building the above example file)

Following are the screenshot of the uniflash setting and error-

Note - 1. While flashing the code the state of the "cortex_R0_5" after error is Suspended
           2. I also tried reducing the input frequency for qspi flash driver even then error persist.


   


    


please guide in resolving the issue.

Thanks and Regards.

   


   

  • Hi Tej,

    Thank you for the query,

    Can you please help me with the below details:

    1. Which version of Uniflash tool is used? (please use the latest Uniflash version available )
    2.  Are you using a custom flash or the default flash as in Control Card.?

    I tried to flash the code (gpio_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang with flash initialized) to my am2634 custom board via jtag using uniFlash software but i am getting following error("Timed out waiting target to halt").

    Are you using a custom flash or the default flash as in Control Card.?
    If you are using the default flash then you need not tick this custom flash option.Uniflash tool will pick the default flasher binary inbuilt in Uniflash.

    If not then you will have to update the sysconfig of the below 2 projects:

    • C:\ti\mcu_plus_sdk_am263x_10_02_00_13\examples\drivers\boot\sbl_qspi\am263x-cc\r5fss0-0_nortos
    • C:\ti\mcu_plus_sdk_am263x_10_02_00_13\tools\flasher\jtag_uniflash\am263x-cc\r5fss0-0_nortos

    sbl-used here is prebuilt sbl

    I see sbl_jtag_uniflash.release.tiimage is used here. This is used to flash the program via CCS.
    Please use C:\ti\mcu_plus_sdk_am263x_10_02_00_13\tools\boot\sbl_prebuilt\am263x-cc\sbl_qspi.release.tiimage file instead.

    If there is provision to change the bootmode in your custom board,  then please put the device in DEVBOOT mode.

    Thanks & Regards,
    Rijohn


  • Hi Rijohn,

    Can you please help me with the below details:

    1. Which version of Uniflash tool is used? (please use the latest Uniflash version available )
    2.  Are you using a custom flash or the default flash as in Control Card.?

      1. I was using uniflash version 9.2.0

      2. I am using default flash(particularly s25FL256SAGNFI013) in my card.


    1. Now when i tried to flash the (C:\ti\mcu_plus_sdk_am263x_09_01_00_41\tools\flasher\jtag_uniflash\am263x-cc\r5fss0-0_nortos_ti_arm_clang) code using Uniflash(9.2.0) by changing sbl image to sbl.qspi.release.tiimage and not ticking any custom flash option, even then i am getting following error.

    2. But using Uniflash(9.3.0) i am not able to select the previously generated .appimage file 



    3. I tried to flash the "C:\ti\mcu_plus_sdk_am263x_09_01_00_41\example\driver\boot\sbl_jtag_uniflash\sbl_jtag_uniflash_am263x-cc_r5fss0-0_nortos_ti-arm-clang" using CCS but the program is never getting in suspended or termination state and is continously running.

    4. Following is screenshot of schematic design for our custom card

    If there is provision to change the bootmode in your custom board,  then please put the device in DEVBOOT mode.

    My board is already DEVBOOT mode.


    SOP0 (N1) -> 1

    SOP1 (N4) -> 1

    SOP2 (A11) -> 0

    SOP3 (C10) -> 1



    thanks and regards.

  • Hi Tej,

    From Uniflash 9.3 onwards, appimage support has been removed. Only .mcelf binaries can be used as per SDK 11.00. Its documented here: https://software-dl.ti.com/mcu-plus-sdk/esd/AM263X/11_00_00_19/exports/docs/api_guide_am263x/RELEASE_NOTES_11_00_00_PAGE.html#autotoc_md454

    Can you upgrade to SDK 11.00 and try the sbl_jtag_uniflash example?

    Regards,
    Aswathi

  • Hi Aswathi,

    Can you upgrade to SDK 11.00 and try the sbl_jtag_uniflash example?

    I upgraded to SDK 11.0 and tried the sbl_jtag_uniflash example but i am getting following error-



    Following is my setting in sysconfig based on the schematic i pasted in last reply-

    Following is screenshot of schematic design for our custom card

       






    *** DOUBT***

      2. I am using default flash(particularly s25FL256SAGNFI013) in my card.

       The above mentioned flash we are using in our design but flash considered in evalkit is "s25FL128SA". Shall i consider "s25FL256SAGNFI013"  as default flash or custom flash.

    If i have to consider (s25FL256SAGNFI013) a custom flash then what are modification i need to do in sysconfig and uniflash setting to make it work.




    Thanks and Regards.

  • Hi Tej,

    Please correct me if I am wrong, I see that you are using the gpio application binary as custom flasher. 

    By looking at the name of the binary and the path mentioned in custom flasher link, I see this is the gpio binary. 

    You need to use the custom flasher binary at this place. 

    Please see the below link to know more about custom flasher.

    https://software-dl.ti.com/mcu-plus-sdk/esd/AM263X/10_02_00_13/exports/docs/api_guide_am263x/TI_UNIFLASH_TOOL.html

    Please see the Custom Flash Support section

    Regards,

    Aswin