Tool/software: TI-RTOS
Hi,
I couldn't find examples of UMS or tftp client of TI RTOS in vision sdk.
They are necessary for firmware update when using eMMC or SD card as a main storage.
Can you provide the example?
Thanks.
HJ Kim
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.
Tool/software: TI-RTOS
Hi,
I couldn't find examples of UMS or tftp client of TI RTOS in vision sdk.
They are necessary for firmware update when using eMMC or SD card as a main storage.
Can you provide the example?
Thanks.
HJ Kim
Hi Rishabh,
I am currently developing boot and firmware updating for eMMC RTOS in TDA2Px EVB
Our custom board has only eMMC as storage.
Booting from eMMC is ok, and firmware updating is under developing.
Firmware updating using ethernet in RTOS is necessary.
There is some DAM errs when eMMC is used and ethernet firmware update is used. DMA number for eMMC was assigned correctly as TX=46 & RX=47.
[IPU1-0] 67.171475 s: Assertion @ Line: 103 in file_api_dma.c: edma3Result==EDMA3_DRV_SOK : failed !!!
[IPU1-0] 67.171872 s: Assertion @ Line: 103 in file_api_dma.c: edma3Result==EDMA3_DRV_SOK : failed !!!
Thanks.
HJ Kim
Hi Rishabh,
EDMA channels were automatically allocated by using MMC2_INST instead of MMC1_INST as below
file_api.c File_init(MMC2_INST) -> HSMMCSDInit(MMC_INST_t num) -> HSMMCSDControllerSetup(MMC_INST_t num)
Are EDMA resources for eMMC not initialized in RTOS? If not, how to prepare them?
Thanks,
HJ Kim
Hi Shiju,
I think configuration of FATFS_PROC_TO_USE should be ok.
Ii was assigned to IPU1_0 as below.
vision_sdk/build$ make showconfig | grep FATFS_PROC_TO_USE
# FATFS_PROC_TO_USE=ipu1_0 [options: ipu1_0 none]
If SD (MMC1_INST) was used , it worked well.
But eMMC (MMC2_INST) was used, there was dma alloc failure as below.
IPU1-0] 67.171475 s: Assertion @ Line: 103 in file_api_dma.c: edma3Result==EDMA3_DRV_SOK : failed !!!
[edma3Result = EDMA3_DRV_requestChannel() ]
I assume that there are some issues at configuration of EDMA resources.
Regards,
HJ Kim
Hi Shiju,
Thanks a lot for your support.
The title of this thread is different from current issues.
I'd like to open a new thread as "EDMA3 alloc problem for eMMC of TDA2Px RTOS"
https://e2e.ti.com/support/processors/f/791/t/784890
Regards,
HJ Kim