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.

AM2434: How to format the eMMC in AM2434-EVM

Part Number: AM2434
Other Parts Discussed in Thread: UNIFLASH,

Dear TI experts,

  In my project, I need a way to remove all data from the eMMC. I haven't found an effective way to format the eMMC in AM2434-EVM.

Regards,

Weijian

  • Hi Karan

    I used UniFlash_8.6.0 and was able to write "sbl.tiimage" and ".appimage" files to Flash. However, on the AM2434-EVM, it seems that the tool could not write files to the eMMC. Unfortunately, I also did not find a way to format the eMMC memory.

    Can you explain the steps to format the eMMC in detail? Thank you very much.

    Regards,

    Weijian 

  • Hi Weijian,

    Please use UART Uniflash script from the MCU+ SDK itself to flash the eMMC

    https://dev.ti.com/tirex/explore/content/mcu_plus_sdk_am243x_09_01_00_41/docs/api_guide_am243x/TOOLS_FLASH.html#TOOLS_FLASH_UART_UNIFLASH

    You can use the below shown config file with UART Uniflash

    ~/ti/mcu_plus_sdk/am243x/09_01_00_41/examples/drivers/boot/sbl_emmc/am243x-evm/r5fss0-0_nortos
    ❯ cat default_sbl_emmc.cfg
    #-----------------------------------------------------------------------------#
    #                                                                             #
    #      DEFAULT CONFIGURATION FILE TO BE USED WITH THE FLASHWRITER SCRIPT      #
    #                                                                             #
    #-----------------------------------------------------------------------------#
    #
    # By default this config file,
    # - points to pre-built flash writer, bootloader for this EVM
    # - The application image points to relative path of the ipc rpmsg linux application image for this EVM
    #   - Make sure this application is built before running this script
    # - You can customized this config file to point to your own bootloader and/or application images
    # - You can use --operation=flashverify-emmc if you just want to verify the flash contents and not flash the file.
    #
    
    # First point to sbl_uart_uniflash binary, which function's as a server to flash one or more files to eMMC
    --flash-writer=sbl_prebuilt/am243x-evm/sbl_uart_uniflash.release.hs_fs.tiimage
    
    # Now send one or more files to flash or flashverify as needed. The order of sending files does not matter
    
    # When sending bootloader make sure to flash at offset 0x0. ROM expects bootloader at offset 0x0 of eMMC
    --file=../../examples/drivers/boot/sbl_emmc/am243x-evm/r5fss0-0_nortos/ti-arm-clang/sbl_emmc.release.hs_fs.tiimage --operation=flash-emmc --flash-offset=0x0
    
    # When sending application image, make sure to flash at offset 0x800000 (default) or to whatever offset your bootloader is configured for
    --file=../../examples/drivers/ipc/ipc_rpmsg_echo/am243x-evm/system_freertos_nortos/ipc_rpmsg_echo_system.release.appimage.hs_fs --operation=flash-emmc --flash-offset=0x800000
    

    Regards,

    Prashant

  • Hi Karan

    Following the method you suggested, I would encounter the following error.

    Regards,

    Weijian 

  • Hi Karan

    My board is non hsfs board (AM2434_EVMTMDS243GPEVM) .

    I tried many times, but still got the error message. What can I do to solve this problem?

    Regards,

    Weijian

  • Hi Weijian,

    How are you generating the GP images in MCU+ SDK v9.1. The GP support has been dropped since MCU+ SDK v9.x

    Regards,

    Prashant

  • Hi Karan,

    I made the following changes:
    (1) I select the "sbl_uart_uniflash.release.tiimage" file from MCU_SDK_AM243X_08_06_00_45.


    (2) I modify "makefile_ccs_bootimage_gen" in sbl_emmc_example(mcu_sdk_09_01) to generate the".tiimage" file.

    Regards,

    Prashant

  • Hi Weijian,

    I see.

    (2) I modify "makefile_ccs_bootimage_gen" in sbl_emmc_example(mcu_sdk_09_01) to generate the".tiimage" file.

    Even if you can generate GP image with that hack and let's say the flashing is successful, the flashed SBL_EMMC simply won't boot. The GP images require GP SysFw binary but there is no GP SysFw binary in MCU+ SDK v9.1.

    ~/ti/mcu_plus_sdk/am243x/09_01_00_41
    ❯ ls -l source/drivers/sciclient/soc/am64x_am243x/sysfw*bin
    -rw-r--r-- 1 p-shivhare p-shivhare 225280 Dec 13 20:28 source/drivers/sciclient/soc/am64x_am243x/sysfw-hs-enc.bin
    -rw-r--r-- 1 p-shivhare p-shivhare   1684 Dec 13 20:28 source/drivers/sciclient/soc/am64x_am243x/sysfw-hs-enc-cert.bin
    -rw-r--r-- 1 p-shivhare p-shivhare 225280 Dec 13 20:28 source/drivers/sciclient/soc/am64x_am243x/sysfw-hs-fs-enc.bin
    -rw-r--r-- 1 p-shivhare p-shivhare   1684 Dec 13 20:28 source/drivers/sciclient/soc/am64x_am243x/sysfw-hs-fs-enc-cert.bin
    

    You would need to use MCU+ SDK v8.6 for GP devices.

    Regards,

    Prashant

  • Hi,Prashant

    A few days ago, I received an updated AM2434-EVM, so this issue has been resolved.

    Thank you for your reply.

    Regards,

    Weijian