Spaces:
Sleeping
Sleeping
Ticket Name: RTOS/TDA2EVM5777: How to detect SD card insert/remove event in VisionSDK | |
Query Text: | |
Part Number: TDA2EVM5777 Other Parts Discussed in Thread: TDA2 Tool/software: TI-RTOS Dear Expert, I'm helping to provide a method to detect SD card(MMC1) insert/remove in VisionSDK bios_all. I'm using original VisionSDK 03.06 with TDA2XEVM5777. Here is my test: Build the original VisionSDK 3.6 bios_all, and boot to menu, dump the MMC register, then unplug sdcard, dump the MMC register. Nothing changed between before and after. Since the register is no change, I tried to call HSMMCSDIsCardInserted API, and get incorrect result. Could you please help provide some guideline to detect a SD card event on bios_all. Thanks & Best Regards! ZM | |
Responses: | |
Hi Ming, I am not sure if we have tested the functionality for card insert/remove in RTOS. Let me check with MMC Linux experts and get back to you. Regards, Rishabh | |
Hi Ming, I checked and confirmed that there is no internal card detect. Linux drivers have muxed the card detect pin as a GPIO and software uses that to detect whether a card is inserted or not. You can implement something similar in the RTOS software. Hope this helps. Regards, Rishabh | |
Hi Rishabh: At PDK package just can raw read MMC2 interface eMMC card. Try to modified those project support MMC1 interface but failed at my side. We did not find MMC1 card insert detect and fat system mount example at BIOS system. Customer want to use TDA2x pin W7 (MMC1_SDCD) probe the card exist or not. Best Regards! Han Tao PDK example folder \PROCESSOR_SDK_VISION_03_05_00_00\ti_components\drivers\pdk_01_10_01_06\packages\ti\csl\example\mmcsd | |
Hi Tao, MMC1 is used at multiple places in PDK for TDA2x. You can use any of these for referring to MMC1 code. 1. TDA2 SBL uses MMC1 for SD boot. 2. stw_lld has one example for MMC1 present here: PROCESSOR_SDK_VISION_03_06_00_00\ti_components\drivers\pdk_01_10_02_07\packages\ti\drv\stw_lld\examples\mmcsd\sd_file_io\main.c Fatlib code is present here: PROCESSOR_SDK_VISION_03_06_00_00\ti_components\drivers\pdk_01_10_02_07\packages\ti\drv\stw_lld\fatlib 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 | |
Hi Rishabh: You can close this item now. If customer have updated information, I will create new request for it. Best Regards! Han Tao | |
Hi Tao, Thanks for the confirmation. Regards, Rishabh | |