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.

REG SD Card

i want a sd card to be detected on my am335x board. here the problem is that im facing a issue which says card is always present on the board.

MMCSDCardPresent(&ctrlInfo) always returns 1. here gpio for this is (gpio0 , pin 19) for A15 ball. the SD CD pin is always high (connected from 3.3 v through 10k register) when no card is present and when there is a card inserted, this pin goes low.

when configuing for GPIO0[19], i have selected the pin as Input. and tried writing HIGH. when i read the same pin after i could see that some number is 0x00080000. this read i have configured in the same function call of pinmux(). but when i come out of the same function and try reading the pin again (GPIO0[19]), i could see value zero.

im not able to understand why this is happening?