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/AM3358: How can i program my nand flash on AM3358 platform with TI-RTOS running?

Part Number: AM3358
Other Parts Discussed in Thread: UNIFLASH

Tool/software: TI-RTOS

Hi,

  I found Uniflash tool is developed for UBOOT/Linux product.  If we use TI-RTOS instead Linux, only SPL is need to boot system and Uboot will not be used.

Can we still use Uniflash to program my flash or how to do it? If not, which flash tool should i use to download image to my board?

Any suggestion would be appreciated..

Thanks,

Marshal

  • Marshal,

    Uniflash has now been ported to work for both Linux and RTOS use cases. Please refer to the documentation for using this utility that is provided from here:
    software-dl.ti.com/.../Board_EVM_Abstration.html

    Please try this utility out and let us know if you have any follow up questions. We also provide CCS based utility for this programming that is described here:
    software-dl.ti.com/.../Foundational_Components.html

    Hope this helps.


    Regards,
    Rahul
  • Hi Rahul,
    Thanks a lot for your information! It's helpful for me.
    But I've still some questions as below,
    1. No AM335x or Sitara device can be select to support from the panel of Uniflash tool version 4.5;
    2. From the link you gave, it seems that CLI needed use to download program to boarad, i'll try it .
    3. CCS Uniflash Version 3.4 can be used to download program with TI-RTOS to board as well? I've tried it referring to the guide processors.wiki.ti.com/.../Sitara_Uniflash_Quick_Start_Guide. It seemed that SBL/Uboot is needed, which means it's only for linux?
    4. Can i use UI option/menu in the panel to download TI-RTOS image without uboot to my board like the guide above?
    Thanks!
  • The description in the wiki article "Sitara Uniflash Quick Start guide" only applies to older version of Uniflash which was designed only for the Linux usecase. The Uniflash that is in Processor SDK RTOS is desgined to support both the Linux and the RTOS usecase. In case of RTOS the secondary bootloader is referred to as (SBL) and in Linux the bootloader is referred to as Secondary program loader(SPL) and UBoot. so the description indicates that you can use the new tool to flash both Linux and RTOS bootloaders.

    Please do not refer to the wiki article as it doesn`t apply to the RTOS usecase.

    Regards,
    Rahul
  • Thanks Rahul!
    Can i use USB cable to download my large target binary image to board? UART transfer rate is slow and will take more time.

  • No curently USB download is not supported with the tool. To support flashing using USB on all devices that we support, we need support for USB DFU boot on all the devices. While AM335x has this some others didn`t so to address this issue for all the devices we selected UART as it is supported across all platforms. There is a plan to extend this using other modes but will need to check whether USB is a priority.

    Regards,
    Rahul
  • Ok.

    I'll try UART downloading firstly and keep you posted on the result.

    Thank you!

  • Hi Rahul,
    I can download flashwriter programe to my board referring to the guide via UART and it seems work normally. But bootloader failed to write to flash. After reading source code, I found that only SPI/QSPI flash write supported . The Flash is used on my board is nand flash with GPMC interface. Do i have to port the GPMC flash driver to the flashwriter utility in order to support download my image to flash?
     Where can i get the flashwriter utility supporting GPMC NAND flash for Uniflash CLI download?

  • Uniflash supported in Processor SDK RTOS doesn`t currently support the GPMC NAND interface as you can see from here:
    software-dl.ti.com/.../Board_EVM_Abstration.html

    The only flash programming option available in processor SDK RTOS for NAND programming is described in the article here:
    software-dl.ti.com/.../Foundational_Components.html

    WE need to check if the enhancement to Uniflash to support GPMC NAND is planned to provide an estimate on when this will be available.

    Regards,
    Rahul