Hello
We are designing AM335x device based on AM335xevm_SK kit.
We need to use xdma_intro0 on A15 ball in gpio0[19] mode (mode 7). I have configured everything but could not really able to detect SD card properly.
im using mmcsdlib() from starterware to configure. i have configured all the others pins, clock correctly. but my code MMCSDCardPresent() always returns "1".
According to the schematic,
it is always connected to 3.3 v through a resistor 10k when open. when a card is inserted, it should be connected to GND. as per the schematic, it is a Input pin.
for the CD pin , i have configured this way.
GPIOModuleClkConfig( 0 );
// 1
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_XDMA_EVENT_INTR(0)) = (1 << CONTROL_CONF_XDMA_EVENT_INTR0_CONF_XDMA_EVENT_INTR0_PUDEN_SHIFT) | (1 << CONTROL_CONF_XDMA_EVENT_INTR0_CONF_XDMA_EVENT_INTR0_PUTYPESEL_SHIFT) | (1 << CONTROL_CONF_XDMA_EVENT_INTR0_CONF_XDMA_EVENT_INTR0_RXACTIVE_SHIFT) | (GPIO_PAD_MODE_7);
// Enabling the GPIO module
GPIOModuleEnable(SOC_GPIO_0_REGS);
// Resetting the GPIO module
GPIOModuleReset(SOC_GPIO_0_REGS);
GPIODirModeSet(SOC_GPIO_0_REGS, 19, GPIO_DIR_INPUT);
GPIOPinWrite(SOC_GPIO_0_REGS, 19, GPIO_PIN_HIGH);
im not able to find out whats wrong, is not pin mux wrong?? or do i need to do additional settings for gpio or so?
Thanks,
M.Shradhanand